:root {
  --black: #050505;
  --black-soft: #0d0d0e;
  --panel: #121214;
  --white: #f7f7f4;
  --muted: #a4a4a1;
  --line: rgba(255, 255, 255, 0.15);
  --red: #e40019;
  --red-dark: #a90012;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--red); color: white; }
.skip-link:focus { top: 16px; }
.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 82px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 250ms ease, background 250ms ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(5, 5, 5, 0.94); }
.brand { height: 58px; display: flex; align-items: center; gap: 10px; }
.brand img { width: 47px; height: 47px; object-fit: contain; }
.brand span { font-size: .92rem; font-weight: 950; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 0.88rem; font-weight: 650; }
.main-nav > a:not(.nav-cta) { position: relative; padding: 10px 0; color: #d4d4d1; transition: color 180ms ease; }
.main-nav > a:not(.nav-cta):hover { color: white; }
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--red); color: white; font: inherit; font-weight: 800; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.nav-cta:hover { background: #ff1029; }
.nav-cta:active { transform: translateY(1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: white; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform 200ms ease; }

.hero {
  min-height: 100svh;
  padding: 150px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 82px);
  position: relative;
}
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: #c9c9c6; font-size: 0.77rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow span { width: 29px; height: 2px; background: var(--red); }
.hero-eyebrow { width: min(100%, 560px); display: grid; grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr); gap: 8px; }
.hero-eyebrow span { width: 100%; }
.hero-eyebrow b { font: inherit; text-align: center; white-space: nowrap; }
.hero h1 { margin: 0; font-size: clamp(4.5rem, 9.5vw, 8.75rem); font-weight: 950; letter-spacing: -0.075em; line-height: 0.78; }
.hero h1 em, .section-intro h2 em, .cta-section h2 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 655px; margin: 38px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: #c6c6c2; line-height: 1.6; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: 0.92rem; border: 1px solid transparent; cursor: pointer; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #ff1029; }
.button-primary span { font-size: 1.15rem; }
.button-ghost { border-color: var(--line); color: #dededa; }
.button-ghost:hover { border-color: rgba(255,255,255,.45); }
.button-login { position: relative; width: 228px; flex: 0 0 228px; padding-inline: 24px; }
.button-login .button-label { font-size: .92rem; text-align: center; }
.button-login .button-arrow { position: absolute; right: 24px; font-size: 1rem; }
.button-login-light { background: #d9d9d5; color: #111; }
.button-login-light:hover { background: white; }
.button-login-dark { background: #4f4f52; color: white; }
.button-login-dark:hover { background: #66666a; }
.hero-proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 24px; color: #878784; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-proof span { display: flex; align-items: center; gap: 10px; }
.hero-proof span::before { content: ""; width: 4px; height: 4px; background: var(--red); border-radius: 50%; }

.phone-showcase {
  position: relative;
  z-index: 1;
  min-height: 680px;
  padding: 94px 0 66px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  isolation: isolate;
}
.phone { position: relative; width: min(46%, 238px); margin: 0; }
.phone-portal { transform: translateY(28px) rotate(-2.2deg); }
.phone-emma { transform: rotate(2deg); }
.phone-start-button { position: absolute; top: -70px; left: 50%; z-index: 3; white-space: nowrap; transform: translateX(-50%) rotate(2.2deg); }
.phone-start-button:hover { transform: translateX(-50%) rotate(2.2deg) translateY(-2px); }
.phone-frame {
  position: relative;
  padding: 8px;
  border-radius: 43px;
  background: linear-gradient(145deg, #a9a9ad 0%, #3a3a3e 14%, #111113 45%, #29292d 78%, #8b8b90 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 28px 60px rgba(0,0,0,.62), 0 0 38px rgba(205,205,212,.16);
}
.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#88888d, #242427);
}
.phone-frame::before { height: 68px; left: -5px; top: 22%; }
.phone-frame::after { height: 42px; right: -5px; top: 30%; }
.phone-screen { overflow: hidden; border: 3px solid #080809; border-radius: 35px; background: #080809; }
.phone-screen img { width: 100%; height: auto; }
.phone figcaption {
  width: max-content;
  margin: 19px auto 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(16,16,18,.72);
  color: #b9b9b7;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.scroll-cue { position: absolute; bottom: 30px; left: 0; display: flex; gap: 10px; align-items: center; color: #666; font-size: .62rem; letter-spacing: .2em; writing-mode: vertical-rl; }

.manifesto { overflow: hidden; border-block: 1px solid var(--line); background: var(--red); color: white; transform: none; }
.marquee { width: max-content; display: flex; align-items: center; padding: 13px 0 11px; font-size: clamp(1.4rem, 3vw, 2.7rem); font-weight: 950; line-height: 1; letter-spacing: -.04em; animation: marquee 20s linear infinite; }
.marquee span { display: block; flex: none; white-space: nowrap; }

.system-section { padding: 150px 0 120px; }
.time-intro { margin-bottom: clamp(90px, 10vw, 150px); }
.time-intro .hero-eyebrow b span { width: auto; height: auto; background: transparent; }
.time-intro h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.06em; }
.time-headline-primary { white-space: nowrap; }
.time-intro h2 em { color: var(--red); font-style: normal; }
.time-intro-description { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: 1.08rem; }
.time-label-short { display: none; }
.section-intro { max-width: 1000px; }
.section-intro h2, .cta-section h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.06em; }
.section-intro > p:last-child { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: 1.08rem; }
.dual-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { min-height: 680px; padding: clamp(30px, 4vw, 54px); display: flex; flex-direction: column; border-radius: 22px; }
.product-card-light { background: #d9d9d5; color: #111; }
.product-card-red { background: var(--red); color: white; transform: translateY(36px); }
.product-head { display: flex; align-items: center; justify-content: space-between; font-size: clamp(.95rem, 1.4vw, 1.1rem); font-weight: 850; letter-spacing: .08em; }
.product-step { font-size: inherit; font-weight: 850; letter-spacing: .08em; }
.product-card h3 { margin: 60px 0 22px; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.06em; line-height: .95; }
.product-card > p { margin: 0; max-width: 540px; opacity: .72; font-size: 1.02rem; }
.product-card ul { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 13px; font-size: .92rem; font-weight: 650; }
.product-card li { display: flex; gap: 10px; }
.product-card-light li span { color: var(--red); }
.example-box, .emma-quote { margin-top: auto; padding: 20px; border-radius: 14px; }
.example-box { background: #e8e8e3; }
.example-box small { color: #686865; font-size: .64rem; font-weight: 900; letter-spacing: .13em; }
.example-box p { margin: 7px 0 0; font-size: 1.08rem; }
.example-box s { color: #777; margin-right: 14px; }
.example-box strong { color: var(--red); }
.emma-quote { display: flex; align-items: center; gap: 14px; background: rgba(0,0,0,.18); }
.emma-quote p { margin: 0; font-size: .96rem; font-weight: 750; }
.emma-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; background: white; color: var(--red); border-radius: 50%; font-weight: 950; font-size: 1.2rem; }

.flow-section { padding: 120px 0 140px; }
.flow-label { margin-bottom: 34px; color: #a1a19d; font-size: clamp(1rem, 1.35vw, 1.28rem); letter-spacing: .15em; font-weight: 900; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-step { min-height: 260px; padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(228, 0, 25, .72); border-radius: 18px; }
.flow-step > span { color: var(--red); font-size: clamp(.95rem, 1.2vw, 1.12rem); letter-spacing: .06em; font-weight: 950; }
.flow-step h3 { margin: 48px 0 12px; font-size: 1.45rem; letter-spacing: -.035em; }
.flow-step p { margin: 0; color: #8d8d89; font-size: .91rem; }

.levels-section { padding: 125px 0; border-top: 1px solid var(--line); }
.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 80px; align-items: end; max-width: none; }
.compact .eyebrow { grid-column: 1 / -1; }
.compact h2 { font-size: clamp(2.8rem, 5.2vw, 4.8rem); }
.compact > p:last-child { margin: 0 0 5px; }
.cefr-reference { margin-top: 84px; }
.cefr-kicker { margin: 0 0 16px; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .22em; }
.cefr-reference > h3 { margin: 0 0 48px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: .9; letter-spacing: -.04em; }
.cefr-columns, .cefr-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
.cefr-columns { padding: 0 22px 13px; color: #666; font-size: .66rem; font-weight: 850; letter-spacing: .16em; }
.cefr-table { display: grid; gap: 12px; }
.cefr-row { --level-color: #fff; padding: 22px; align-items: start; background: #0d0d0d; border: 1px solid #2b2b2b; border-radius: 14px; }
.cefr-badge { width: 46px; height: 46px; display: grid; place-items: center; color: var(--level-color); background: color-mix(in srgb, var(--level-color) 9%, transparent); border: 1px solid color-mix(in srgb, var(--level-color) 55%, transparent); border-radius: 9px; font-size: 1.1rem; }
.cefr-row p { margin: 0; color: #f0f0ed; font-size: .86rem; line-height: 1.55; }
.cefr-row p > strong { color: var(--level-color); font-weight: 900; }
.cefr-mobile-label { display: none; }
.level-a1 { --level-color: #20e6a0; }
.level-a2 { --level-color: #a8ef19; }
.level-b1 { --level-color: #ffd500; }
.level-b2 { --level-color: #ff861a; }
.level-c1 { --level-color: #ff5964; }
.level-c2 { --level-color: #b865ff; }

.experience-section { background: var(--black); color: var(--white); }
.experience-inner { padding: 125px 0; display: grid; grid-template-columns: .75fr 1.5fr; gap: 80px; align-items: center; transform: translateX(clamp(32px, 6vw, 96px)); }
.experience-number { display: flex; align-items: flex-end; gap: 12px; transform-origin: center center; scale: 1.375; }
.experience-number strong { color: var(--red); font-size: clamp(8rem, 17vw, 14rem); line-height: .72; letter-spacing: -.11em; }
.experience-number span { padding-bottom: 3px; font-weight: 950; line-height: 1; }
.experience-copy .eyebrow { color: var(--white); }
.experience-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4.3rem); letter-spacing: -.06em; line-height: .98; }
.experience-copy > p:not(.eyebrow) { max-width: 680px; margin: 28px 0 0; color: var(--white); font-size: 1.05rem; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 8px 12px; border: 1px solid #bdbdb8; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.cta-section { padding: 150px 0; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.cta-side p { margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; }
.site-footer { padding: 0 0 38px; border-top: 1px solid var(--line); color: #777; font-size: .78rem; }
.footer-main { padding-block: 38px; display: grid; grid-template-columns: 180px 1fr auto; gap: 40px; align-items: center; }
.footer-brand { width: max-content; }
.footer-brand img { width: 47px; }
.footer-main > p { margin: 0; }
.footer-email { white-space: nowrap; }
.footer-legal { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 22px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #aaa; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-legal nav a { position: relative; padding-bottom: 5px; }
.footer-legal nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.footer-legal nav a:hover::after, .footer-legal nav a:focus-visible::after { transform: scaleX(1); }
.footer-notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }
.site-footer a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 135px; }
  .phone-showcase { width: min(100%, 620px); margin-inline: auto; }
  .scroll-cue { display: none; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .cefr-columns, .cefr-row { grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .experience-inner { grid-template-columns: 1fr; gap: 70px; transform: none; }
  .experience-number { width: max-content; margin-inline: auto; transform-origin: center center; }
  .cta-section { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .section-shell { width: min(calc(100% - 34px), var(--max)); }
  .site-header { height: 72px; padding-inline: 17px; }
  .brand { width: auto; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .8rem; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; padding: 24px 17px 30px; display: none; flex-direction: column; align-items: stretch; gap: 4px; background: #090909; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; }
  .main-nav a.nav-cta { padding: 12px 20px; }
  .nav-cta { margin-top: 10px; width: 100%; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding: 120px 0 70px; gap: 56px; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  .hero-eyebrow { grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr); gap: 6px; font-size: .7rem; letter-spacing: .05em; line-height: 1.45; }
  .experience-copy .hero-eyebrow b { white-space: normal; }
  .hero-proof { gap: 9px 18px; }
  .phone-showcase { min-height: 0; padding: 88px 0 58px; gap: 10px; }
  .phone { width: min(46%, 210px); }
  .phone-frame { padding: 6px; border-radius: 31px; }
  .phone-screen { border-width: 2px; border-radius: 25px; }
  .phone-frame::before { height: 46px; left: -4px; }
  .phone-frame::after { height: 32px; right: -4px; }
  .phone figcaption { margin-top: 14px; font-size: .57rem; }
  .phone-portal { transform: translateY(18px) rotate(-1.7deg); }
  .phone-emma { transform: rotate(1.5deg); }
  .manifesto { transform: none; }
  .system-section { padding: 105px 0 80px; }
  .time-label-full { display: none; }
  .time-label-short { display: inline; }
  .time-intro h2,
  .section-intro h2,
  .compact h2,
  .cta-section h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .time-mobile-line { display: block; }
  .dual-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .product-card { min-height: 630px; }
  .product-card-red { transform: none; }
  .flow-section { padding: 80px 0 100px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-step { min-height: 0; padding: 26px; }
  .flow-step h3 { margin-top: 24px; }
  .compact { grid-template-columns: 1fr; gap: 24px; }
  .compact .eyebrow { grid-column: auto; }
  .cefr-reference { margin-top: 58px; }
  .cefr-reference > h3 { margin-bottom: 34px; }
  .cefr-columns { display: none; }
  .cefr-row { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .cefr-badge { width: 48px; height: 48px; }
  .cefr-row p { font-size: .91rem; }
  .cefr-mobile-label { margin-bottom: 8px; display: block; color: #777; font-size: .62rem; letter-spacing: .12em; }
  .experience-inner { padding: 100px 0; }
  .experience-inner { transform: none; }
  .experience-number strong { font-size: 8.5rem; }
  .cta-section { padding: 110px 0; gap: 45px; }
  .footer-main { grid-template-columns: 1fr; gap: 16px; }
  .footer-legal nav, .footer-notes { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
