/* =========================================================
   cupidconnect.cc
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #08090D;
  --bg-2: #0D0F15;
  --panel: #11131B;
  --glass: rgba(18, 20, 29, .72);
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --text: #EEEAE4;
  --text-2: #A6A8B2;
  --text-3: #6C707C;

  --amber: #FFB86B;
  --amber-2: #FF9C52;
  --rose: #FF6B8B;
  --grad: linear-gradient(120deg, var(--amber) 0%, var(--rose) 100%);
  --on-grad: #1B0D0A;

  --av-j: #5B6CFF;   /* Jonah */
  --av-m: #E0795A;   /* Maya */

  --display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --gutter: clamp(16px, 4.5vw, 48px);
  --max: 1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
em { font-style: normal; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
::selection { background: var(--amber); color: var(--on-grad); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--on-grad);
  border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Type helpers
   --------------------------------------------------------- */
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .one__line em, .final__title em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: 20px;
}
.mono-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.muted { color: var(--text-2); }

.sec-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }

.link {
  color: var(--text);
  background: linear-gradient(90deg, var(--amber), var(--rose)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: color .3s, background-size .4s var(--ease);
}
.link:hover { color: var(--amber); background-size: 100% 2px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  --h: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .4s var(--spring), box-shadow .4s var(--ease), border-color .3s, background-color .3s, color .3s;
}
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn svg { transition: transform .4s var(--spring); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn--glow {
  background: var(--grad);
  color: var(--on-grad);
  box-shadow: 0 0 0 1px rgba(255, 184, 107, .35), 0 12px 32px -12px rgba(255, 107, 139, .65);
}
.btn--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 184, 107, .5), 0 18px 44px -12px rgba(255, 107, 139, .85); }
.btn--glow:hover::after { transform: translateX(120%); }

.btn--ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 184, 107, .5); background: var(--surface-2); }

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 9, 13, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.menu-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { transition: transform .6s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.03em;
}
.brand__word b {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 14px; height: 2px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 10px var(--rose);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
}
.nav__login:hover { border-color: var(--line-2); background: var(--surface); }

.nav__burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--text);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 28px;
  background: rgba(8, 9, 13, .97);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 8.5vw, 42px);
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu__links span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--amber); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: grid; gap: 10px; }
.menu__foot .btn { width: 100%; }

/* ---------------------------------------------------------
   Load + reveal
   --------------------------------------------------------- */
.js .load,
.js .reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .is-loaded .load,
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(32px, 6vh, 70px)) 0 clamp(60px, 9vh, 100px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  left: var(--gx, 70%);
  top: var(--gy, 40%);
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 139, .16), rgba(255, 184, 107, .08) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 961px) { .hero__title .ln { white-space: nowrap; } }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.tag__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 184, 107, .6);
  animation: beacon 2.4s var(--ease) infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 107, .6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(255, 184, 107, 0); }
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.2rem + 3.5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 28px;
}
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.2s var(--ease);
}
.ln:nth-child(2) > span { transition-delay: .1s; }
.ln:nth-child(3) > span { transition-delay: .2s; }
.is-loaded .ln > span { transform: none; }

.hero__lede { max-width: 34rem; color: var(--text-2); font-size: clamp(16.5px, 1.3vw, 18.5px); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; padding-bottom: 60px; }
.arc { width: 100%; height: auto; overflow: visible; }
.arc__guide { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.arc__trail { fill: none; stroke: url(#arcGrad); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 107, 139, .6)); }
.arc__node { fill: var(--amber); filter: drop-shadow(0 0 8px var(--amber)); }
.arc__node--b { fill: var(--rose); filter: drop-shadow(0 0 8px var(--rose)); }
.arc__halo { transform-box: fill-box; transform-origin: center; animation: halo 3.6s ease-in-out infinite; }
.arc__halo--b { animation-delay: -1.8s; }
.arc.is-hit .arc__halo--b { animation: hit .9s var(--ease); }
@keyframes halo {
  0%, 100% { transform: scale(.85); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes hit {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.9); opacity: 1; }
  100% { transform: scale(1); opacity: .8; }
}
.arc__arrow path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.arc__arrow { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.arc__label { font-family: var(--mono); font-size: 13px; fill: var(--text-3); text-anchor: middle; }

.chat {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(330px, 68%);
  padding: 14px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat__who { display: flex; flex-direction: column; line-height: 1.25; }
.chat__who strong { font-size: 14.5px; }
.chat__who span { font-size: 12px; color: var(--text-3); }
.chat__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 184, 107, .1);
}

.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.av.lg { width: 52px; height: 52px; font-size: 20px; }
.av--j { background: linear-gradient(140deg, #8190FF, var(--av-j)); }
.av--m { background: linear-gradient(140deg, #F7A27F, var(--av-m)); }

.chat__body {
  height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 12px 0 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.msg {
  max-width: 84%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.42;
  border-radius: 15px;
  animation: msgIn .55s var(--spring) both;
}
.msg--them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; transform-origin: 0 100%; }
.msg--me { align-self: flex-end; background: var(--grad); color: var(--on-grad); font-weight: 500; border-bottom-right-radius: 4px; transform-origin: 100% 100%; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
  to { opacity: 1; transform: none; }
}
.chat__body.is-clearing > * { animation: msgOut .45s var(--ease) forwards; }
@keyframes msgOut { to { opacity: 0; transform: translateY(-14px); } }
.typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  padding: 12px 13px;
  border-radius: 15px;
  border-bottom-left-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  animation: msgIn .4s var(--spring) both;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: dots 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat__compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
}
.chat__input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat__input.is-typing { color: var(--text); }
.chat__input.is-typing::after {
  content: "";
  display: inline-block;
  width: 1.5px; height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--amber);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat__send {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: var(--on-grad);
}

/* ---------------------------------------------------------
   One, not everyone
   --------------------------------------------------------- */
.one { position: relative; }
.one__pin {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 100px 0;
}
.one__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.one__text {
  position: relative;
  padding-top: clamp(80px, 14vh, 150px);
  display: grid;
  justify-items: center;
  text-align: center;
}
.one__text > * { grid-column: 1; }
.one__line {
  grid-row: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 4.2vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.one__line--a { display: none; }
.one__sub { grid-row: 3; margin-top: 24px; max-width: 32rem; color: var(--text-2); font-size: 17px; }

/* pinned scene, enabled by JS */
.one.is-scene { height: 280vh; }
.one.is-scene .one__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 0; }
.one.is-scene .one__line--a { display: block; opacity: calc(1 - var(--b, 0)); transform: translateY(calc(var(--b, 0) * -30px)); filter: blur(calc(var(--b, 0) * 8px)); }
.one.is-scene .one__line--b { opacity: var(--b, 0); transform: translateY(calc((1 - var(--b, 0)) * 30px)); filter: blur(calc((1 - var(--b, 0)) * 8px)); }
.one.is-scene .one__sub { opacity: var(--s, 0); transform: translateY(calc((1 - var(--s, 0)) * 16px)); }

/* ---------------------------------------------------------
   How it works — ring stepper
   --------------------------------------------------------- */
.how { padding: clamp(100px, 13vw, 170px) 0; }
.how__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
}
.how__sticky { position: sticky; top: 120px; }
.how__sticky .h2 { margin-bottom: 20px; }
.how__sticky .muted { max-width: 28rem; }

.ring { position: relative; width: 210px; height: 210px; margin-top: 48px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.ring__fill {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  filter: drop-shadow(0 0 8px rgba(255, 107, 139, .55));
  transition: stroke-dashoffset .8s var(--ease);
}
.ring__inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__n { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.ring__n.flip { animation: flip .5s var(--ease); }
@keyframes flip {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.ring__of { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 4px; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  position: relative;
  padding: 30px 30px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: .4;
  transition: opacity .6s var(--ease), border-color .6s, background-color .6s, transform .6s var(--ease);
}
.step.is-active {
  opacity: 1;
  border-color: rgba(255, 184, 107, .35);
  background: linear-gradient(160deg, rgba(255, 184, 107, .07), rgba(255, 107, 139, .03) 60%, transparent);
  transform: translateX(-6px);
}
.step__k { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 10px 0 10px;
}
.step p { color: var(--text-2); }

/* ---------------------------------------------------------
   Introduction — decrypting dossier
   --------------------------------------------------------- */
.intro { padding: clamp(100px, 13vw, 170px) 0; }
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.intro__copy .h2 { margin-bottom: 24px; }
.intro__copy .muted { max-width: 30rem; margin-bottom: 14px; font-size: 17px; }

.dossier {
  position: relative;
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 26px;
  border-radius: 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 80px -40px rgba(255, 107, 139, .35);
}
.dossier__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; }
.dossier__k { color: var(--text-3); }
.dossier__live { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.dossier__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: beacon 2.4s var(--ease) infinite; }
.dossier__pair { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dossier__hi {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.dossier__rows { border-top: 1px solid var(--line); margin-bottom: 22px; }
.dossier__rows div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dossier__rows dt { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.dossier__rows dd { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--text); }
.dossier__rows dd.is-scrambling { color: var(--amber); }

.dossier__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.chip--fill { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.chip--quiet { background: none; border-color: transparent; color: var(--text-3); }

/* ---------------------------------------------------------
   Platform — glow cards
   --------------------------------------------------------- */
.platform { padding: clamp(100px, 13vw, 170px) 0; }
.glows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.glow {
  --x: 50%; --y: 0%;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .02);
  isolation: isolate;
}
.glow::before {
  /* rotating gradient border */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, .08) 0 55%, var(--amber) 70%, var(--rose) 82%, rgba(255, 255, 255, .08) 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .35;
  animation: orbit 7s linear infinite;
  transition: opacity .5s var(--ease);
}
.glow::after {
  /* cursor light */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--x) var(--y), rgba(255, 184, 107, .09), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
}
.glow:hover::before { opacity: 1; animation-duration: 3s; }
.glow:hover::after { opacity: 1; }
@keyframes orbit { to { --angle: 360deg; } }
.glow__k { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.glow h3 {
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.glow p { color: var(--text-2); font-size: 15.5px; }

/* ---------------------------------------------------------
   Membership — vault
   --------------------------------------------------------- */
.membership { padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 13vw, 170px); }
.vault {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-areas:
    "lock copy"
    ".    flow"
    ".    incl"
    ".    cta";
  gap: 32px clamp(28px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 30px;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(255, 184, 107, .1), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(255, 107, 139, .08), transparent 60%),
    var(--panel);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.vault__lock { grid-area: lock; }
.vault__copy { grid-area: copy; max-width: 44rem; }
.vault__copy .h2 { margin-bottom: 20px; }
.vault__copy .muted { margin-bottom: 12px; }

.vault__lock svg { width: 120px; height: auto; overflow: visible; }
.vault__shackle {
  fill: none;
  stroke: var(--amber);
  stroke-width: 6;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 60px 42px;
  transition: transform 1s var(--spring) .5s;
}
.vault__body {
  fill: rgba(255, 184, 107, .1);
  stroke: var(--amber);
  stroke-width: 2;
  transition: fill .8s .9s;
}
.vault__hole { fill: var(--amber); }
.vault__hole-line { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.vault.is-in .vault__shackle { transform: translateY(-9px) rotate(28deg); }
.vault.is-in .vault__body { fill: rgba(255, 184, 107, .2); }
.vault.is-in .vault__lock svg { filter: drop-shadow(0 0 22px rgba(255, 184, 107, .5)); transition: filter 1s 1s; }

.flow {
  grid-area: flow;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  counter-reset: f;
}
.flow li {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  transition: color .4s, border-color .4s, background-color .4s, box-shadow .4s;
}
.flow li + li { margin-left: 34px; }
.flow li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2) 50%, transparent 50%) 0 0 / 6px 1px;
}
.vault.is-in .flow li { color: var(--text); border-color: rgba(255, 184, 107, .45); background: rgba(255, 184, 107, .06); }
.vault.is-in .flow li:last-child { background: var(--grad); color: var(--on-grad); border-color: transparent; box-shadow: 0 0 24px -4px rgba(255, 107, 139, .7); }
.vault.is-in .flow li + li::before { animation: march 1s linear infinite; background-image: linear-gradient(90deg, var(--amber) 50%, transparent 50%); }
.vault.is-in .flow li:nth-child(1) { transition-delay: .6s; }
.vault.is-in .flow li:nth-child(2) { transition-delay: .8s; }
.vault.is-in .flow li:nth-child(3) { transition-delay: 1s; }
.vault.is-in .flow li:nth-child(4) { transition-delay: 1.2s; }
.vault.is-in .flow li:nth-child(5) { transition-delay: 1.4s; }
@keyframes march { to { background-position: 12px 0; } }

.vault__incl {
  grid-area: incl;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.vault__incl li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.vault__incl li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(255, 184, 107, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5 8.8 13.3 14 7.5' fill='none' stroke='%23FFB86B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.vault__cta { grid-area: cta; justify-self: start; }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq { padding: clamp(80px, 11vw, 150px) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq__grid > header { position: sticky; top: 120px; }
.faq__grid > header .h2 { margin-bottom: 20px; }
.faq__grid > header .muted { max-width: 24rem; }

.acc { display: flex; flex-direction: column; gap: 10px; }
.acc__item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s, background-color .35s;
}
.acc__item:hover { border-color: var(--line-2); }
.acc__item[open] { border-color: rgba(255, 184, 107, .3); background: rgba(255, 184, 107, .03); }
.acc__item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__n { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.acc__q { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.acc__item summary i { position: relative; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); transition: background-color .35s, border-color .35s; }
.acc__item summary i::before,
.acc__item summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.6px;
  background: var(--text);
  translate: -50% -50%;
  transition: rotate .45s var(--spring), background-color .3s;
}
.acc__item summary i::after { rotate: 90deg; }
.acc__item[open] summary i { background: var(--grad); border-color: transparent; }
.acc__item[open] summary i::before,
.acc__item[open] summary i::after { background: var(--on-grad); }
.acc__item[open] summary i::after { rotate: 0deg; }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 20px 20px 64px; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }

/* ---------------------------------------------------------
   Final
   --------------------------------------------------------- */
.final { position: relative; padding: clamp(110px, 15vw, 200px) 0; text-align: center; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  width: min(900px, 140vw);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 107, 139, .18), rgba(255, 184, 107, .07) 50%, transparent 75%);
  pointer-events: none;
}
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__inner .mono-label { justify-content: center; }
.final__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 1.4rem + 5.6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 36px;
}
.final__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 14px 26px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, .8rem + 2.4vw, 2.6rem);
  letter-spacing: -.03em;
  margin-bottom: 30px;
  transition: border-color .4s, box-shadow .5s var(--ease), background-color .4s, transform .5s var(--ease);
}
.final__mail span { overflow-wrap: anywhere; }
.final__mail svg { width: .8em; height: .8em; flex: none; color: var(--amber); transition: transform .5s var(--spring); }
.final__mail:hover {
  border-color: rgba(255, 184, 107, .55);
  background: rgba(255, 184, 107, .05);
  box-shadow: 0 0 60px -12px rgba(255, 107, 139, .55);
}
.final__mail:hover svg { transform: translate(3px, -3px); }
.final__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 36px; background: rgba(8, 9, 13, .7); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a, .foot__links button { font-size: 14px; color: var(--text-2); transition: color .25s; }
.foot__links a:hover, .foot__links button:hover { color: var(--amber); }
.foot__copy { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------
   Login — command palette
   --------------------------------------------------------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.palette.is-open { visibility: visible; pointer-events: auto; }
.palette__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.palette.is-open .palette__scrim { opacity: 1; }

.palette__panel {
  position: absolute;
  left: 50%;
  top: clamp(70px, 14vh, 140px);
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  translate: -50% 0;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 184, 107, .06), 0 0 120px -40px rgba(255, 107, 139, .35);
  opacity: 0;
  transform: scale(.96) translateY(-8px);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.palette.is-open .palette__panel { opacity: 1; transform: none; }

.palette__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--amber);
}
.palette__bar h2 { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.palette__esc {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: color .25s, border-color .25s;
}
.palette__esc:hover { color: var(--text); border-color: var(--text-3); }
.palette__note { padding: 14px 18px 4px; font-size: 13.5px; color: var(--text-2); }

.palette__list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.popt {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  outline: none;
  cursor: default;
  transition: background-color .2s, border-color .2s;
}
a.popt { cursor: pointer; }
.popt.is-active { background: var(--surface-2); border-color: var(--line); }
.popt.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.popt__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
}
.popt__ico--glow { background: var(--grad); color: var(--on-grad); }
.popt h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.popt p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.popt strong { color: var(--amber); font-weight: 500; }
.popt__enter {
  align-self: center;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  opacity: 0;
  transition: opacity .2s;
}
.popt.is-active .popt__enter { opacity: 1; }

.palette__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 6px; }
.palette__copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 107, .3);
  transition: background-color .25s;
}
.palette__copy:hover { background: rgba(255, 184, 107, .1); }

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(255, 184, 107, .35);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero__grid,
  .how__grid,
  .intro__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 540px; width: 100%; margin: 0 auto; }
  .how__sticky, .faq__grid > header { position: static; }
  .ring { display: none; }
  .step, .step.is-active { opacity: 1; transform: none; }
  .glows { grid-template-columns: 1fr 1fr; }
  .vault {
    grid-template-columns: 1fr;
    grid-template-areas: "lock" "copy" "flow" "incl" "cta";
  }
}

@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__login kbd { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__art { padding-bottom: 0; }
  .chat { position: relative; width: 100%; margin-top: -60px; }
  .glows { grid-template-columns: 1fr; }
  .glow { min-height: 0; }
  .glow h3 { padding-top: 32px; }
  .dossier { padding: 20px; }
  .dossier__rows div { grid-template-columns: 1fr; gap: 2px; }
  .flow { flex-direction: column; align-items: flex-start; gap: 0; }
  .flow li + li { margin-left: 0; margin-top: 18px; }
  .flow li + li::before {
    right: auto; left: 22px; top: auto; bottom: 100%;
    width: 1px; height: 18px;
    background: linear-gradient(var(--line-2) 50%, transparent 50%) 0 0 / 1px 6px;
  }
  .vault.is-in .flow li + li::before { animation: none; background-image: linear-gradient(var(--amber) 50%, transparent 50%); }
  .final__mail { font-size: clamp(16px, 5vw, 22px); padding: 14px 18px; gap: 10px; }
  .final__mail span { overflow-wrap: normal; white-space: nowrap; }
  .vault__incl { grid-template-columns: 1fr; }
  .vault__cta { justify-self: stretch; }
  .acc__item summary { grid-template-columns: 28px 1fr 28px; padding: 16px; }
  .acc__body p { padding: 0 16px 18px 54px; }
  .final__row .btn { flex: 1 1 100%; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .palette__panel { top: auto; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; max-height: 92svh; transform: translateY(40px); }
  .palette__foot span { display: none; }
  .palette__copy { margin-left: 0; width: 100%; padding: 12px; font-size: 12.5px; }
  .popt__enter { display: none; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .load, .js .reveal { opacity: 1; transform: none; filter: none; }
  .ln > span { transform: none; }
}
