:root {
  --ink: #050507;
  --paper: #f4f4f8;
  --muted: rgba(5, 5, 7, 0.68);
  --blue: #6f83ff;
  --violet: #a9a8ff;
  --black: #000;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.ref-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 27px 44px;
  color: #050507;
}

.language-link,
.utility-nav,
.utility-nav a,
.language-toggle {
  font-size: 0.98rem;
  font-weight: 500;
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.language-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.utility-nav a,
.language-toggle {
  opacity: 0.92;
}

.utility-nav a:hover,
.language-toggle:hover {
  opacity: 1;
}

.ref-actions,
.hero-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.dark-pill,
.ghost-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 640;
}

.dark-pill {
  background: #000;
  color: #fff;
}

.ghost-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #08080a;
  backdrop-filter: blur(18px);
}

.ref-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e8eaff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.5), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 67%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(960px, calc(100% - 44px));
  padding-bottom: 176px;
  padding-top: 30px;
  text-align: center;
  transform: translateY(18px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 25px;
  font-size: clamp(3.35rem, 5vw, 5.9rem);
  font-weight: 430;
  line-height: 0.96;
}

.hero-center > p {
  max-width: 850px;
  margin-bottom: 36px;
  color: rgba(5, 5, 7, 0.82);
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.42;
}

.ref-portal-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: min(1150px, 100%);
  height: 168px;
}

.portal-bubble {
  display: grid;
  justify-items: center;
  width: 186px;
  max-height: 52px;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  padding: 15px 24px 17px;
  background: #000;
  color: #fff;
  backdrop-filter: blur(18px);
  font-weight: 640;
  line-height: 1.2;
  text-align: center;
  transition: max-height 170ms ease;
}

.portal-bubble.is-primary {
  width: 216px;
  background: #000;
  color: #fff;
}

.portal-detail {
  width: 100%;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 520;
  line-height: 1.34;
  opacity: 0;
  transition: none;
}

.portal-foot {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 650;
  opacity: 0;
  transition: none;
}

.portal-bubble.is-primary .portal-detail {
  color: rgba(255, 255, 255, 0.68);
}

.portal-bubble.is-primary .portal-foot {
  color: rgba(255, 255, 255, 0.92);
}

.portal-bubble:hover,
.portal-bubble:focus-visible,
.portal-bubble.is-open {
  max-height: 168px;
}

.portal-bubble:hover .portal-detail,
.portal-bubble:hover .portal-foot,
.portal-bubble:focus-visible .portal-detail,
.portal-bubble:focus-visible .portal-foot,
.portal-bubble.is-open .portal-detail,
.portal-bubble.is-open .portal-foot {
  opacity: 1;
}

.fold-marquee {
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
  z-index: 2;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  align-items: center;
  animation: refMarquee 34s linear infinite;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 465px;
  min-height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 25px 28px 20px;
  background: #050507;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.quote-card p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-weight: 640;
  line-height: 1.32;
}

.quote-card cite {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 640;
}

@keyframes refMarquee {
  to {
    transform: translateX(-50%);
  }
}

.black-band {
  padding: 128px 44px 150px;
  background: #000;
  color: #fff;
}

.black-heading {
  display: grid;
  justify-items: center;
  width: min(960px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.black-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 5vw, 6.2rem);
  font-weight: 520;
  line-height: 0.96;
}

.black-heading p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
  line-height: 1.58;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.68fr);
  gap: 54px;
  align-items: center;
  width: min(1380px, 100%);
  margin: 0 auto;
}

.contact-split {
  margin-top: 84px;
}

.feature-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 8px;
  background: #6886ff;
}

.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
}

.floating-card {
  position: absolute;
  right: 11%;
  bottom: 13%;
  width: min(360px, 70%);
  border-radius: 8px;
  padding: 26px;
  background: #050507;
  color: #fff;
}

.floating-card p {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1.08rem;
}

.floating-card span,
.feature-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.56;
}

.contact-card {
  top: 50%;
  right: 50%;
  bottom: auto;
  width: min(540px, calc(100% - 72px));
  padding: 36px;
  transform: translate(50%, -50%);
}

.lucy-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.lucy-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 650;
}

.lucy-form input,
.lucy-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  outline: none;
  resize: vertical;
}

.lucy-form input::placeholder,
.lucy-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.lucy-form input:focus,
.lucy-form textarea:focus {
  border-color: rgba(181, 184, 255, 0.52);
}

.contact-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.call-lucy,
.contact-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 680;
  cursor: pointer;
}

.call-lucy {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #050507;
}

.contact-actions button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.copy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 30px;
  border-radius: 999px;
  padding: 0 25px;
  background: #fff;
  color: #050507;
  font-weight: 700;
}

.feature-copy h3 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4vw, 5.25rem);
  font-weight: 520;
  line-height: 1.05;
}

.feature-copy p {
  font-size: 1.08rem;
}

.subpage-body {
  min-height: 100vh;
  background: #000;
  color: #fff;
}

.subpage-header {
  position: fixed;
  color: #fff;
}

.subpage-header .dark-pill {
  background: #fff;
  color: #050507;
}

.subpage-hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 44px 44px;
  background: #000;
}

.video-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 156px);
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.video-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12) 58%, rgba(105, 105, 170, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
}

.gop-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22) 58%, rgba(110, 118, 160, 0.16)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
}

.assistant-frame img,
.consulting-frame img {
  filter: saturate(1.06) contrast(1.02) brightness(0.82);
}

.video-title {
  position: absolute;
  left: clamp(28px, 7vw, 112px);
  top: 50%;
  z-index: 1;
  width: min(760px, calc(100% - 56px));
  transform: translateY(-50%);
}

.video-title p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 650;
}

.video-title h1 {
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 7.4rem);
  font-weight: 520;
  line-height: 0.98;
}

.subpage-band {
  padding-top: 118px;
}

.simple-subpage {
  display: grid;
  min-height: 68vh;
  place-items: center;
  background:
    radial-gradient(circle at 72% 30%, rgba(155, 156, 245, 0.24), transparent 26rem),
    #000;
}

.simple-title {
  position: static;
  width: min(980px, calc(100% - 44px));
  text-align: center;
  transform: none;
}

.index-list {
  display: grid;
  width: min(1040px, 100%);
  margin: 0 auto 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px 0;
}

.index-list span {
  font-size: clamp(1.5rem, 2.4vw, 2.7rem);
  font-weight: 650;
}

.index-list em {
  color: rgba(255, 255, 255, 0.54);
  font-style: normal;
}

.legal-page {
  min-height: 100vh;
  background: #000;
  color: #fff;
}

.legal-main {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 150px 0 110px;
}

.legal-main h1 {
  color: #fff;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.legal-main section {
  margin-top: 46px;
}

.legal-main h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.legal-main p,
.legal-main li {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ref-header {
    position: relative;
    grid-template-columns: 1fr auto;
    background: #000;
    color: #fff;
    padding: 22px 18px;
  }

  .ref-actions {
    justify-self: end;
  }

  .ref-header .ghost-pill {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
  }

  .ref-header .dark-pill {
    background: #fff;
    color: #050507;
  }

  .ref-hero {
    min-height: 940px;
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .ref-portal-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .portal-bubble,
  .portal-bubble.is-primary {
    width: min(206px, calc(50vw - 22px));
  }

  .fold-marquee {
    bottom: 38px;
  }
}

@media (max-width: 560px) {
  .ref-header {
    grid-template-columns: 1fr;
  }

  .utility-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .ref-actions,
  .ref-portal-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-center {
    justify-items: start;
    width: calc(100% - 36px);
    padding-top: 26px;
    padding-bottom: 190px;
    text-align: left;
  }

  h1 {
    font-size: clamp(3.25rem, 14vw, 4.9rem);
  }

  .portal-bubble,
  .portal-bubble.is-primary {
    justify-items: start;
    width: 100%;
    text-align: left;
  }

  .quote-card {
    width: 335px;
    min-height: 148px;
    padding: 22px 22px 18px;
  }

  .black-band {
    padding: 92px 18px 90px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: 230px auto 0;
    transform: none;
  }

  .subpage-header {
    position: relative;
  }

  .subpage-hero {
    min-height: auto;
    padding: 22px 18px;
  }

  .video-hero {
    min-height: 78vh;
  }

  .video-title {
    left: 24px;
    width: calc(100% - 48px);
  }

  .legal-main {
    padding-top: 80px;
  }
}
