:root {
  --ink: #061315;
  --ink-2: #0d2326;
  --paper: #f4fbfa;
  --mist: #dff4f1;
  --panel: rgba(255, 255, 255, 0.76);
  --line: rgba(6, 19, 21, 0.13);
  --line-dark: rgba(244, 251, 250, 0.18);
  --text: #102527;
  --muted: rgba(16, 37, 39, 0.68);
  --white: #ffffff;
  --cyan: #61dbe0;
  --blue: #2678ff;
  --lime: #bcf75c;
  --red: #ff5d4d;
  --radius: 24px;
  --radius-sm: 15px;
  --shadow: 0 28px 90px rgba(6, 19, 21, 0.16);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f4fbfa 0%, #eef8f6 34%, #f7fbf7 68%, #071416 100%);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 120;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: max(10px, env(safe-area-inset-top)) clamp(16px, 4vw, 34px) 10px;
  border-bottom: 1px solid rgba(244, 251, 250, 0.12);
  background: rgba(5, 13, 15, 0.62);
  color: var(--white);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(244, 251, 250, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-button span {
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.brand-lockup {
  justify-self: center;
  display: grid;
  gap: 2px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-lockup strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-lockup span {
  color: rgba(244, 251, 250, 0.62);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.topbar-cta {
  padding: 11px 13px;
  border: 1px solid rgba(188, 247, 92, 0.42);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-panel {
  position: fixed;
  top: calc(66px + env(safe-area-inset-top));
  left: 16px;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(244, 251, 250, 0.14);
  border-radius: 20px;
  background: rgba(5, 13, 15, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(244, 251, 250, 0.82);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.section-pad {
  position: relative;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 980px;
  margin: 0 0 clamp(26px, 5vw, 52px);
}

.section-label {
  margin: 0 0 13px;
  color: #0c7a7d;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 18px;
  max-width: 1040px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8.4vw, 7.2rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2.2rem, 6.8vw, 6.1rem);
  line-height: 0.9;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  font-weight: 650;
  line-height: 1.62;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-carousel,
.hero-slide,
.hero-shader {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 1400ms ease, transform 6000ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 13, 0.72), rgba(3, 11, 13, 0.44) 46%, rgba(3, 11, 13, 0.2)),
    linear-gradient(180deg, rgba(3, 11, 13, 0.2), rgba(3, 11, 13, 0.82));
}

.hero-shader {
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 112px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 88%);
  animation: gridDrift 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(112px, 18vh, 190px) clamp(18px, 5vw, 72px) clamp(34px, 7vh, 72px);
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero .section-label {
  color: var(--lime);
}

.hero-lede {
  max-width: 820px;
  color: rgba(244, 251, 250, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--lime);
  color: #081312;
}

.button.secondary {
  border-color: rgba(244, 251, 250, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.button.secondary.dark {
  border-color: rgba(6, 19, 21, 0.18);
  background: rgba(6, 19, 21, 0.06);
  color: var(--ink);
}

.hero-proof {
  display: grid;
  gap: 10px;
}

.hero-proof div {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(244, 251, 250, 0.17);
  border-radius: 20px;
  background: rgba(7, 16, 18, 0.34);
  backdrop-filter: blur(18px);
}

.hero-proof strong {
  color: var(--lime);
  font-size: 30px;
  line-height: 1;
}

.hero-proof span {
  color: rgba(244, 251, 250, 0.82);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  background: var(--paper);
}

.editorial-flow {
  max-width: 780px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  min-height: 460px;
  display: grid;
  grid-template-rows: 185px auto 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 70px rgba(6, 19, 21, 0.08);
  text-align: left;
  cursor: pointer;
}

.match-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 18px;
}

.match-card span,
.match-card em {
  color: #0c7a7d;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-card h3 {
  color: var(--ink);
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.match-card em {
  color: var(--red);
  font-style: normal;
}

.domain {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #e8f6f4;
}

.domain-visual img,
.assistant-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.governance,
.proof,
.site-footer {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 120, 130, 0.16), transparent 38%),
    linear-gradient(180deg, #061315, #0a181a);
}

.governance .section-label,
.proof .section-label {
  color: var(--lime);
}

.governance h2,
.proof h2,
.governance p,
.proof p,
.site-footer p {
  color: var(--white);
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.editorial-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.editorial-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 251, 250, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 760;
}

.flow-diagram {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(188, 247, 92, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.flow-diagram span {
  padding: 18px;
  border: 1px solid rgba(244, 251, 250, 0.14);
  border-radius: 18px;
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 950;
  text-transform: uppercase;
}

.flow-diagram i {
  width: 2px;
  height: 20px;
  margin-left: 24px;
  background: var(--lime);
}

.memory {
  background: var(--paper);
}

.memory-columns,
.explore-list,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.memory-columns article,
.explore-list article {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.bounded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(38, 120, 255, 0.08), transparent 38%),
    #edf8f7;
}

.assistant-card {
  display: grid;
  gap: 18px;
}

.assistant-card div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.explore {
  background: linear-gradient(180deg, #f6fbfa, #e7f6f4);
}

.explore-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-grid a {
  min-height: 172px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  text-decoration: none;
}

.proof-grid strong {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.proof-grid span {
  color: rgba(244, 251, 250, 0.7);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.faq {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 960px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

details p {
  padding: 0 20px 20px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(188, 247, 92, 0.16), transparent 48%),
    var(--ink);
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta .section-label {
  color: var(--lime);
}

.site-footer {
  display: grid;
  gap: 15px;
  padding: 28px clamp(18px, 5vw, 72px) 34px;
  border-top: 1px solid var(--line-dark);
}

.footer-line,
.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}

.footer-line {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-line strong,
.footer-line a,
.footer-links a,
.footer-meta span {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.footer-line strong {
  color: var(--lime);
  text-transform: uppercase;
}

.footer-line span,
.footer-meta span,
.footer-links span {
  color: rgba(244, 251, 250, 0.56);
}

.footer-line a,
.footer-links a {
  color: rgba(244, 251, 250, 0.86);
}

.footer-links a {
  display: inline-grid;
  gap: 2px;
  max-width: 190px;
  text-transform: uppercase;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: var(--paper);
}

.modal-scroll {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 251, 250, 0.28);
  border-radius: 999px;
  background: rgba(6, 19, 21, 0.62);
  color: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.modal-hero {
  position: relative;
  min-height: 64svh;
  display: flex;
  align-items: end;
  padding: clamp(84px, 16vh, 150px) clamp(20px, 6vw, 80px) clamp(38px, 7vw, 70px);
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(6, 19, 21, 0.76), rgba(6, 19, 21, 0.2)),
    var(--modal-bg);
  background-size: cover;
  background-position: center;
}

.modal-hero h2,
.modal-hero .section-label {
  color: var(--white);
}

.modal-hero .section-label {
  color: var(--lime);
}

.modal-body {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 78px) clamp(20px, 5vw, 42px);
}

.modal-body p {
  color: rgba(16, 37, 39, 0.78);
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
}

.modal-body h3 {
  margin-top: 30px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-112px, -112px, 0); }
}

@media (max-width: 1080px) {
  .hero-inner,
  .intro,
  .domain,
  .bounded,
  .governance-layout,
  .cta {
    grid-template-columns: 1fr;
  }

  .match-grid,
  .memory-columns,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .brand-lockup span,
  .topbar-cta {
    display: none;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(3, 11, 13, 0.6), rgba(3, 11, 13, 0.28)),
      linear-gradient(180deg, rgba(3, 11, 13, 0.14), rgba(3, 11, 13, 0.76));
  }

  .hero-slide {
    background-position: 55% center;
  }

  .hero-inner {
    min-height: 100svh;
    padding-top: 102px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.6vw, 3.1rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.8rem);
  }

  .hero-actions,
  .hero-proof,
  .match-grid,
  .memory-columns,
  .explore-list,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 13px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.18;
  }

  .hero-proof div {
    min-height: 92px;
  }

  .match-card {
    min-height: 390px;
  }

  .domain-visual img,
  .assistant-card img {
    aspect-ratio: 4 / 3;
  }

  .footer-line,
  .footer-links,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .footer-links a {
    max-width: none;
  }

  .modal-hero {
    min-height: 58svh;
    background-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
