@font-face {
  font-family: "Fefer Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #18182b;
  --muted: #66647c;
  --paper: #f7f7fc;
  --white: #ffffff;
  --blue: #3458db;
  --blue-dark: #233ea5;
  --violet: #8267e8;
  --pink: #ff83b5;
  --sky: #6fdcff;
  --yellow: #ffd45d;
  --green: #84ff82;
  --teal: #001e1e;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", "Avenir Next", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fefer Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

.site-shell { min-height: 100vh; background: linear-gradient(180deg, #fbfbff 0%, #f3f1fa 48%, #f8f8fc 100%); }

.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  height: 86px;
  padding: 0 clamp(20px, 4vw, 66px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark { width: fit-content; font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -0.055em; }
.header-status { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #4d4b65; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(132, 255, 130, 0.2); animation: statusPulse 2s ease-in-out infinite; }
.site-header nav { display: flex; justify-content: flex-end; gap: 9px; }

.nav-pill, .button, .say-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(37, 37, 76, 0.12);
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease, filter 200ms ease;
}

.nav-pill::before, .button::before, .say-button::before {
  content: "";
  position: absolute;
  inset: 1px 10% 55%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,0));
  opacity: .48;
  pointer-events: none;
}

.nav-pill:hover, .button:hover, .say-button:hover { transform: translateY(-3px) scale(1.025); filter: saturate(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 16px 34px rgba(48, 47, 98, .18); }
.nav-pill:active, .button:active, .say-button:active { transform: translateY(0) scale(.985); }
.nav-pill { height: 44px; min-width: 44px; padding: 0 17px; font: 700 12px var(--body); }
.nav-x { color: #4a4961; background: rgba(255,255,255,.7); backdrop-filter: blur(18px); }
.nav-buy { gap: 18px; color: white; background: linear-gradient(135deg, #5175ee, #6549cf); border-color: rgba(255,255,255,.28); }

.hero {
  position: relative;
  min-height: 920px;
  padding: 150px clamp(22px, 6vw, 98px) 100px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 4vw;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  width: 760px;
  height: 760px;
  top: -370px;
  right: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 102, 232, .16), transparent 68%);
}

.hero-copy { position: relative; z-index: 4; max-width: 720px; }
.eyebrow { margin: 0 0 26px; font: 500 clamp(10px, .9vw, 12px) var(--mono); letter-spacing: .07em; color: var(--muted); }
.eyebrow span { display: inline-flex; padding: 8px 11px; margin-right: 7px; border: 1px solid rgba(33, 63, 58, .1); border-radius: 999px; background: rgba(132,255,130,.44); color: #173225; }
h1, h2 { font-family: var(--display); }
h1 { margin: 0; font-size: clamp(100px, 13.2vw, 215px); line-height: .78; letter-spacing: -.105em; color: #263b96; text-shadow: 0 8px 0 rgba(255,255,255,.72), 0 28px 70px rgba(46, 63, 145, .18); }
.hero-description { max-width: 590px; margin: 43px 0 28px; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.56; color: #55546b; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-width: 210px; min-height: 61px; padding: 0 20px 0 25px; justify-content: space-between; gap: 30px; font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.button b { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; font-size: 14px; background: rgba(255,255,255,.18); }
.button-primary { color: white; background: linear-gradient(135deg, #4770ef 0%, #624ad5 70%, #7d60dc 100%); border-color: rgba(255,255,255,.25); }
.button-secondary { color: #34334c; background: rgba(255,255,255,.76); backdrop-filter: blur(18px); }
.button-secondary b { background: #222235; color: white; }
.launch-lockup { margin-top: 26px; display: flex; align-items: center; gap: 13px; font: 500 10px var(--mono); letter-spacing: .1em; color: #848197; }
.stable-lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.stable-lockup img { width: 29px; height: 29px; object-fit: contain; }

.fefer-stage { position: relative; z-index: 3; min-height: 680px; display: grid; place-items: center; }
.stage-halo { position: absolute; width: min(650px, 94%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.9) 0 18%, rgba(109,220,255,.3) 40%, rgba(149,118,239,.17) 57%, transparent 72%); filter: blur(2px); animation: haloBreathe 5s ease-in-out infinite; }
.stage-halo::before, .stage-halo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(91,85,167,.12); inset: 8%; }
.stage-halo::after { inset: 19%; border-style: dashed; animation: spin 24s linear infinite; }

.fefer-card { position: relative; z-index: 2; width: min(475px, 70%); aspect-ratio: 1; border: 10px solid rgba(255,255,255,.78); border-radius: 44px; overflow: hidden; background: white; box-shadow: 0 34px 100px rgba(49, 49, 108, .23), 0 8px 20px rgba(49,49,108,.12), inset 0 1px 0 white; transform: rotate(2.5deg); animation: cardFloat 4.6s ease-in-out infinite; }
.fefer-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fefer-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.22), transparent 28% 72%, rgba(81,112,239,.07)); pointer-events: none; }
.card-speck { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 5px 13px rgba(28,28,61,.15); }
.speck-one { top: 18px; left: 20px; background: var(--pink); }
.speck-two { top: 18px; left: 39px; background: var(--yellow); }
.speck-three { top: 18px; left: 58px; background: var(--green); }
.voice-chip, .jaw-chip { position: absolute; z-index: 5; padding: 11px 14px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; font: 500 12px var(--mono); box-shadow: 0 12px 30px rgba(45,44,91,.14), inset 0 1px 0 white; backdrop-filter: blur(15px); }
.voice-chip { top: 18%; right: 3%; color: #19267f; background: rgba(127,222,255,.82); transform: rotate(4deg); }
.jaw-chip { left: 5%; bottom: 16%; color: #49327f; background: rgba(209,188,255,.83); transform: rotate(-5deg); }

.hero-aurora { position: absolute; z-index: -2; inset: auto -8% -210px; height: 560px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 3.2vw, 56px); filter: blur(42px) saturate(1.1); opacity: .78; transform: scaleX(1.08); }
.glow-bar { display: block; width: clamp(100px, 15vw, 240px); height: 78%; border-radius: 48% 48% 15% 15%; transform-origin: bottom; animation: auroraRise 7s ease-in-out infinite; }
.glow-one { height: 54%; background: linear-gradient(180deg, rgba(255,131,181,.15), #ff83b5); }
.glow-two { height: 83%; background: linear-gradient(180deg, rgba(112,220,255,.12), #6fdcff); animation-delay: -1.2s; }
.glow-three { height: 67%; background: linear-gradient(180deg, rgba(130,103,232,.1), #8267e8); animation-delay: -2.8s; }
.glow-four { height: 90%; background: linear-gradient(180deg, rgba(132,255,130,.08), #84ff82); animation-delay: -4.1s; }
.glow-five { height: 59%; background: linear-gradient(180deg, rgba(255,212,93,.08), #ffd45d); animation-delay: -5.2s; }

.ticker { position: relative; z-index: 10; overflow: hidden; background: #24223d; color: white; }
.ticker div { width: max-content; padding: 16px 0; display: flex; align-items: center; gap: 25px; white-space: nowrap; font: 500 12px var(--mono); letter-spacing: .08em; animation: tickerMove 25s linear infinite; }
.ticker i { color: var(--green); font-style: normal; }

.badge-trail { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.trail-badge { --badge-color: #84ff82; position: fixed; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 7px; background: var(--badge-color); color: #25243a; font: 500 10px var(--mono); box-shadow: 0 7px 18px rgba(25,25,60,.13); opacity: 0; transform: translate3d(0, 5px, 0) scale(.88) rotate(-2deg); transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1); }
.trail-badge.is-visible { opacity: .9; transform: translate3d(0, 0, 0) scale(1) rotate(0); }

.lore-section { position: relative; padding: clamp(100px, 11vw, 170px) 7vw; display: grid; grid-template-columns: minmax(360px,.9fr) minmax(430px,1.1fr); align-items: center; gap: clamp(60px,8vw,145px); background: linear-gradient(145deg, #f0edfb 0%, #f9f9fd 55%, #e8f8ff 100%); overflow: hidden; }
.lore-section::after { content: "FEFER"; position: absolute; right: -2vw; bottom: -.22em; color: rgba(57,63,140,.035); font-family: var(--display); font-size: 20vw; font-weight: 900; letter-spacing: -.1em; }
.origin-visual { position: relative; z-index: 2; max-width: 540px; margin: auto; }
.origin-frame { padding: 10px; border-radius: 38px; background: rgba(255,255,255,.85); box-shadow: 0 30px 90px rgba(55,53,105,.18); transform: rotate(-2.5deg); overflow: hidden; }
.origin-frame img { display: block; width: 100%; border-radius: 29px; filter: saturate(1.12) contrast(1.03); }
.origin-number { position: absolute; z-index: 4; left: -18px; top: -20px; padding: 10px 14px; border-radius: 999px; background: var(--green); color: #17422d; font: 500 10px var(--mono); box-shadow: 0 11px 26px rgba(42,69,46,.13); transform: rotate(-5deg); }
.specimen-label { position: absolute; z-index: 4; padding: 10px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; font: 500 11px var(--mono); box-shadow: 0 12px 30px rgba(48,47,99,.15); }
.specimen-label-one { right: -32px; top: 22%; color: #603a71; background: rgba(255,146,189,.9); transform: rotate(3deg); }
.specimen-label-two { left: -28px; bottom: 14%; color: #17314c; background: rgba(125,224,255,.9); transform: rotate(-4deg); }
.lore-copy { position: relative; z-index: 2; }
.section-kicker { margin: 0 0 22px; color: #5263ca; font: 500 11px var(--mono); letter-spacing: .1em; }
.lore-copy h2, .protocol-heading h2, .final-copy h2 { margin: 0; font-size: clamp(55px, 6.7vw, 108px); line-height: .9; letter-spacing: -.075em; }
.lore-copy h2 { color: #292847; }
.lore-lead { max-width: 710px; margin: 32px 0; color: #66647c; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.5; }
.facts-grid { margin: 0 0 31px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.facts-grid div { padding: 17px; border: 1px solid rgba(79,75,133,.08); border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 white; }
.facts-grid dt { margin-bottom: 8px; color: #908ca3; font: 500 9px var(--mono); letter-spacing: .08em; }
.facts-grid dd { margin: 0; color: #2e2d49; font-family: var(--display); font-size: clamp(16px,1.6vw,24px); font-weight: 800; }
.say-button { min-height: 56px; padding: 0 18px 0 22px; gap: 28px; border: 1px solid rgba(255,255,255,.72); background: linear-gradient(135deg,#3d63e4,#7055d8); color: white; cursor: pointer; font-size: 13px; font-weight: 750; }
.say-button b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--green); background: rgba(17,17,37,.23); }

.protocol-section { min-height: 790px; padding: clamp(100px,10vw,150px) 7vw; display: grid; grid-template-columns: minmax(350px,.82fr) minmax(520px,1.18fr); align-items: center; gap: 7vw; color: white; background: radial-gradient(circle at 83% 22%, rgba(112,88,210,.48), transparent 30%), linear-gradient(135deg,#1e1d34 0%,#2c2855 58%,#17354f 100%); overflow: hidden; }
.protocol-heading .section-kicker { color: var(--green); }
.protocol-heading > p:last-child { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.66); font-size: 18px; line-height: 1.55; }
.code-staircase { min-height: 470px; display: flex; flex-direction: column; justify-content: center; transform: rotate(-3deg); }
.code-step { width: fit-content; min-width: 72%; padding: 17px 23px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; color: #26243e; font: 500 clamp(16px,1.65vw,26px) var(--mono); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 15px 35px rgba(8,8,24,.2); animation: stepFloat 4.8s ease-in-out infinite; }
.code-step span { display: inline-block; width: 54px; opacity: .52; }
.step-one { margin-left: 28%; background: var(--green); }
.step-two { margin-left: 21%; background: var(--yellow); animation-delay: -.7s; }
.step-three { margin-left: 14%; background: #7de0ff; animation-delay: -1.4s; }
.step-four { margin-left: 7%; background: #ff92bd; animation-delay: -2.1s; }
.step-five { margin-left: 0; background: #bfa4ff; animation-delay: -2.8s; }

.final-cta { position: relative; min-height: 760px; padding: 100px 7vw; display: grid; grid-template-columns: minmax(490px,1.12fr) minmax(380px,.88fr); align-items: center; gap: 4vw; background: linear-gradient(160deg,#fbfbfe 0%,#f0f2fd 100%); overflow: hidden; }
.final-copy { position: relative; z-index: 3; }
.final-copy h2 { color: #272640; font-size: clamp(60px,7.2vw,120px); }
.final-copy h2 span { color: #4d62ca; }
.final-copy .hero-actions { margin-top: 42px; }
.final-fefer { position: relative; min-height: 560px; display: grid; place-items: center; }
.final-fefer img { position: relative; z-index: 2; width: min(480px,86%); border: 9px solid rgba(255,255,255,.78); border-radius: 42px; box-shadow: 0 30px 90px rgba(50,48,104,.2); transform: rotate(3deg); animation: finalBob 4.7s ease-in-out infinite; }
.final-orb { position: absolute; width: min(520px,92%); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg,rgba(125,224,255,.7),rgba(191,164,255,.76) 47%,rgba(132,255,130,.42)); filter: blur(2px); box-shadow: 0 0 0 34px rgba(125,224,255,.08),0 0 0 70px rgba(191,164,255,.05); }

footer { min-height: 150px; padding: 35px 5vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: #1c1b31; color: white; }
.footer-wordmark { font-size: 32px; }
footer > p { margin: 0; color: rgba(255,255,255,.47); font: 500 10px var(--mono); letter-spacing: .08em; text-align: center; }
.footer-brand { display: flex; justify-content: flex-end; align-items: center; gap: 12px; color: rgba(255,255,255,.43); font: 500 9px var(--mono); letter-spacing: .09em; }
.footer-brand .stable-lockup { color: var(--green); }

@keyframes statusPulse { 50% { box-shadow: 0 0 0 9px rgba(132,255,130,0); } }
@keyframes cardFloat { 0%,100% { translate: 0 -5px; rotate: 0deg; } 50% { translate: 0 10px; rotate: -1deg; } }
@keyframes haloBreathe { 50% { transform: scale(1.06); opacity: .77; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auroraRise { 0%,100% { transform: scaleY(.82); opacity: .66; } 50% { transform: scaleY(1.08); opacity: .96; } }
@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes stepFloat { 0%,100% { translate: 0 0; } 50% { translate: 8px -7px; } }
@keyframes finalBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -11px; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-status { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 140px; }
  .hero-copy { max-width: 780px; }
  .fefer-stage { min-height: 620px; }
  .lore-section, .protocol-section, .final-cta { grid-template-columns: 1fr; }
  .lore-copy { order: -1; }
  .origin-visual { width: min(520px,88vw); }
  .protocol-section { gap: 55px; }
  .code-staircase { width: min(730px,94vw); margin: auto; }
  .final-fefer { min-height: 570px; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; padding: 0 17px; }
  .nav-pill { height: 40px; padding: 0 14px; }
  .nav-buy { gap: 9px; }
  .hero { padding: 125px 20px 75px; }
  h1 { font-size: clamp(83px,28vw,130px); }
  .hero-description { margin-top: 34px; }
  .button { width: 100%; }
  .launch-lockup { justify-content: center; }
  .fefer-stage { min-height: 465px; }
  .fefer-card { width: 75%; border-width: 7px; border-radius: 29px; }
  .voice-chip { right: 0; }
  .jaw-chip { left: 0; }
  .hero-aurora { bottom: -155px; height: 410px; }
  .lore-section, .protocol-section, .final-cta { padding-left: 20px; padding-right: 20px; }
  .facts-grid { grid-template-columns: 1fr; }
  .specimen-label-one { right: -3px; }
  .specimen-label-two { left: -3px; }
  .protocol-section { min-height: auto; }
  .code-staircase { min-height: 390px; transform: rotate(-2deg) scale(.96); }
  .code-step { min-width: 88%; padding: 14px 15px; }
  .code-step span { width: 42px; }
  .final-cta { min-height: auto; }
  .final-copy h2 { font-size: 13vw; }
  .final-fefer { min-height: 430px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-wordmark { margin: auto; }
  .footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .badge-trail { display: none; }
}
