:root {
  color-scheme: dark;
  --bg: #050610;
  --surface: #0b0d19;
  --text: #f7f8ff;
  --muted: #9da4ba;
  --line: rgba(255, 255, 255, 0.1);
  --shell: min(1180px, calc(100% - 48px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--text); background: var(--bg); }
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: radial-gradient(circle at 74% 18%, rgba(97, 76, 255, 0.16), transparent 28%), radial-gradient(circle at 8% 45%, rgba(25, 154, 255, 0.09), transparent 24%), var(--bg);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.page-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-weight: 750; letter-spacing: -0.025em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-header nav { display: flex; gap: 32px; color: #aeb4c7; font-size: 0.86rem; font-weight: 650; }
.site-header nav a, footer a { transition: color 180ms ease; }
.site-header nav a:hover, footer a:hover { color: white; }
.header-download {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.8rem;
  font-weight: 750;
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  min-height: min(920px, 100svh);
  padding-top: 96px;
}
.hero-copy { position: relative; z-index: 3; max-width: 690px; }
.eyebrow { margin: 0 0 20px; color: #aeb6d0; font-size: 0.75rem; font-weight: 780; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 820; letter-spacing: -0.065em; }
h1 { font-size: clamp(4.25rem, 7.5vw, 7.2rem); line-height: 0.91; }
h1 span, .experience h2 span {
  color: transparent;
  background: linear-gradient(100deg, #9f82ff 0%, #5dccff 72%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lede { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 35px; }
.primary-action {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  padding-inline: 23px;
  border-radius: 999px;
  background: white;
  color: #080912;
  font-size: 0.88rem;
  font-weight: 780;
  box-shadow: 0 15px 45px rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 19px 50px rgba(255, 255, 255, 0.18); }
.text-action { color: #c1c6d7; font-size: 0.87rem; font-weight: 700; }
.text-action span { display: inline-block; margin-left: 5px; }
.hero-facts { display: flex; gap: 25px; margin-top: 54px; color: #767e98; font-size: 0.72rem; font-weight: 680; }
.hero-facts span { display: flex; gap: 8px; }
.hero-facts strong { color: #5c6580; font-size: 0.66rem; letter-spacing: 0.08em; }

.device-stage { position: relative; display: grid; min-height: 780px; place-items: center; perspective: 1250px; }
.device-stage::after { position: absolute; bottom: 4%; left: 50%; z-index: 0; width: 360px; height: 70px; border-radius: 50%; content: ""; background: rgba(0,0,0,.62); filter: blur(26px); transform: translateX(-45%) rotate(-3deg); }
.device-aura { position: absolute; width: 670px; height: 670px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 77, 255, 0.34), rgba(34, 155, 255, 0.1) 44%, transparent 69%); filter: blur(8px); }
.hero-device {
  position: relative;
  z-index: 2;
  width: 350px;
  aspect-ratio: 1462 / 3158;
  overflow: visible;
  animation: hero-phone 6s ease-in-out infinite;
}
.hero-composite { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(18px 48px 44px rgba(0,0,0,.58)); pointer-events: none; }

.institutions-section { padding: 110px 0; }
.institutions-intro { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 8vw; }
.institutions-intro h2 { font-size: clamp(3.2rem, 5.8vw, 6rem); line-height: .95; }
.institutions-intro h2 span { color: transparent; background: linear-gradient(100deg, #9f82ff, #5dccff); background-clip: text; -webkit-background-clip: text; }
.institutions-copy > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.institutions-copy small { display: block; margin-top: 20px; color: #6f7892; font-size: .72rem; line-height: 1.55; }
.institution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 54px; }
.institution-card { display: grid; min-height: 148px; align-content: end; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.institution-card > span { align-self: start; margin-bottom: 28px; color: #6f7893; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.institution-card strong { font-size: 1rem; line-height: 1.25; }
.institution-card small { margin-top: 7px; color: #858ea8; font-size: .75rem; }
.scroll-story {
  position: relative;
  height: 500svh;
  border-block: 1px solid var(--line);
  background: linear-gradient(145deg, #080a15, #0d1020 55%, #080a15);
}
.story-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  height: 100svh;
  min-height: 700px;
  gap: 7vw;
  overflow: hidden;
}
.story-copy { position: relative; height: 440px; }
.story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.story-step.active { opacity: 1; transform: translateY(0); }
.scroll-story:not(.story-ready) .story-step,
.scroll-story:not(.story-ready) .story-device-layer { transition: none; }
.story-number { margin-bottom: 34px; color: #5e6680; font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.story-step h2 { max-width: 670px; font-size: clamp(3.7rem, 6.5vw, 6.5rem); line-height: .93; }
.story-step h2 em { color: transparent; background: linear-gradient(100deg, #9f82ff, #5dccff); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.story-step > p:last-child { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.story-progress { position: absolute; bottom: -22px; left: 0; display: flex; gap: 8px; }
.story-progress i { width: 28px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); transition: width 260ms ease, background 260ms ease; }
.story-progress i.active { width: 54px; background: linear-gradient(90deg, #8d6cff, #5dccff); }
.story-visual { position: relative; display: grid; height: 100%; place-items: center; perspective: 1300px; }
.story-glow { position: absolute; width: 690px; height: 690px; border-radius: 50%; background: radial-gradient(circle, rgba(105,78,255,.3), rgba(42,164,255,.09) 43%, transparent 70%); filter: blur(12px); }
.story-phone {
  position: relative;
  z-index: 2;
  width: 382px;
  height: 736px;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}
.story-device-layer { position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: 1462 / 3158; opacity: 0; transform: translate(-50%,-50%) scale(.975); transition: opacity 360ms ease, transform 620ms cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.story-device-layer.active { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.story-composite { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 45px 45px rgba(0,0,0,.52)); pointer-events: none; }
.tap-indicator { position: absolute; z-index: 5; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.95); border-radius: 50%; background: rgba(124,92,255,.75); box-shadow: 0 0 0 8px rgba(124,92,255,.16); opacity: 0; transform: translate(-50%,-50%) scale(.55); pointer-events: none; }
.tap-indicator.play { animation: tap 650ms ease-out; }
.scroll-hint { position: absolute; right: 18px; bottom: 38px; display: flex; align-items: center; gap: 10px; color: #68718c; font-size: .64rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-hint i { display: block; width: 54px; height: 1px; background: linear-gradient(90deg, #65708d, transparent); }

.premium-section { padding: 110px 0 20px; scroll-margin-top: 24px; }
.premium-shell {
  position: relative;
  padding: 60px;
  overflow: hidden;
  border: 1px solid rgba(238, 196, 92, .3);
  border-radius: 42px;
  background:
    radial-gradient(circle at 90% 8%, rgba(244, 189, 66, .2), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(119, 82, 255, .18), transparent 30%),
    linear-gradient(145deg, #11101a, #0b0c16 58%, #11101a);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .32);
}
.premium-intro { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 28px; max-width: 930px; }
.premium-mark { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(255, 225, 143, .55); border-radius: 24px; background: linear-gradient(145deg, #f9df8a, #c98b1b); color: #241802; font-size: 2rem; font-weight: 900; box-shadow: 0 18px 50px rgba(211, 153, 31, .22); }
.premium-intro .eyebrow { margin-bottom: 13px; color: #d8bd75; }
.premium-intro h2 { font-size: clamp(3.2rem, 5.7vw, 6rem); line-height: .95; }
.premium-intro h2 span { color: transparent; background: linear-gradient(100deg, #f4d77c, #e8a833); background-clip: text; -webkit-background-clip: text; }
.premium-intro > div:last-child > p:last-child { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.premium-comparison { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; margin-top: 46px; }
.plan-card { padding: 30px; border: 1px solid var(--line); border-radius: 27px; background: rgba(255,255,255,.035); }
.premium-plan { border-color: rgba(239, 195, 85, .44); background: linear-gradient(145deg, rgba(232,176,47,.14), rgba(255,255,255,.045)); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.plan-label { margin: 0 0 13px; color: #929ab0; font-size: .68rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.premium-plan .plan-label { color: #e1bd60; }
.premium-plan-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.premium-plan-heading > span { padding: 6px 9px; border: 1px solid rgba(236,193,83,.35); border-radius: 99px; background: rgba(226,172,40,.1); color: #dfbd68; font-size: .63rem; font-weight: 800; }
.plan-card h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; }
.plan-summary { min-height: 50px; margin: 16px 0 23px; color: #9199af; font-size: .84rem; line-height: 1.55; }
.plan-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 28px; color: #d6d9e4; font-size: .86rem; line-height: 1.4; }
.plan-card li::before { position: absolute; top: .05em; left: 0; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; content: "✓"; background: rgba(142, 151, 177, .13); color: #9aa3ba; font-size: .68rem; font-weight: 900; }
.premium-plan li::before { background: rgba(231, 180, 51, .14); color: #e4bd59; }
.premium-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.premium-plans > a { position: relative; display: grid; min-height: 118px; align-content: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.premium-plans > a:hover { border-color: rgba(159,130,255,.55); background: rgba(159,130,255,.08); transform: translateY(-3px); }
.premium-plans > a:focus-visible { outline: 3px solid rgba(93,204,255,.55); outline-offset: 3px; }
.premium-plans > a.featured { border-color: rgba(236,193,83,.4); background: rgba(226,172,40,.08); }
.premium-plans small { position: absolute; top: 9px; right: 10px; color: #e1bd60; font-size: .57rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.premium-plans strong { font-size: .88rem; }
.premium-plans span { margin-top: 6px; color: #828ba2; font-size: .69rem; }
.premium-plans em { margin-top: 13px; color: #b8c0d8; font-size: .62rem; font-style: normal; font-weight: 800; }
.premium-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 31px; }
.premium-footer strong { color: #e7d69d; font-size: .9rem; }
.premium-footer p { max-width: 690px; margin: 8px 0 0; color: #7f879c; font-size: .73rem; line-height: 1.55; }
.premium-action { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding-inline: 22px; border-radius: 999px; background: linear-gradient(100deg, #f5dc87, #e5a72e); color: #201600; font-size: .78rem; font-weight: 850; box-shadow: 0 16px 42px rgba(213, 156, 33, .2); }
.premium-note { margin: 24px 0 0; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.075); color: #697188; font-size: .67rem; line-height: 1.55; }

.download-section { padding: 90px 0 32px; }
.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
  min-height: 310px;
  padding: 54px 60px;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(120deg, #5c39d9 0%, #714bec 47%, #258ecb 100%);
  box-shadow: 0 35px 100px rgba(74, 58, 196, 0.25);
}
.download-logo { width: 118px; height: 118px; border-radius: 28px; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.25)); }
.download-card h2 { font-size: clamp(2.8rem, 4.7vw, 5rem); line-height: 0.98; }
.download-card .eyebrow { margin-bottom: 12px; color: rgba(255, 255, 255, 0.75); }
.download-card p:not(.eyebrow) { max-width: 610px; margin: 16px 0 0; color: rgba(255, 255, 255, 0.75); line-height: 1.6; }
.store-actions { display: grid; gap: 10px; }
.store-button {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: rgba(5, 6, 16, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}
.store-button:hover { background: rgba(5, 6, 16, 0.94); transform: translateY(-2px); }
.store-button small { color: #aeb5cb; font-size: 0.68rem; }
.store-button strong { margin-top: 2px; font-size: 1rem; }

footer { padding: 38px 0 34px; color: #727b95; font-size: 0.76rem; }
.footer-main { display: flex; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; color: #9ba3b9; }
footer > p { max-width: 680px; margin: 18px 0 0; font-size: 0.7rem; line-height: 1.6; }

.not-found {
  display: flex;
  min-height: 100svh;
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 80px;
}
.not-found img { margin-bottom: 28px; border-radius: 16px; }
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); }
.not-found > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 32px; color: var(--muted); line-height: 1.7; }

@keyframes hero-phone {
  50% { transform: translateY(-10px) rotateZ(.35deg); }
}
@keyframes tap {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.45); }
  28% { opacity: 1; transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 0 8px rgba(124,92,255,.2); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.7); box-shadow: 0 0 0 24px rgba(124,92,255,0); }
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .device-stage { min-height: 700px; }
  .hero-device { width: 305px; }
  .institutions-intro { grid-template-columns: 1fr; gap: 28px; }
  .story-sticky { grid-template-columns: .85fr 1.15fr; gap: 3vw; }
  .story-step h2 { font-size: clamp(3.2rem, 7vw, 5rem); }
  .story-phone { width: 334px; height: 660px; }
  .story-glow { width: 560px; height: 560px; }
  .download-card { grid-template-columns: auto 1fr; }
  .store-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 0.9rem; }
  .header-download { padding: 9px 13px; font-size: 0.72rem; }
  .hero { min-height: auto; padding-top: 120px; }
  h1 { font-size: clamp(3.25rem, 16vw, 4.7rem); }
  .hero-lede { margin-top: 24px; }
  .hero-actions { flex-direction: column; gap: 17px; }
  .primary-action { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 38px; text-align: left; }
  .device-stage { min-height: 650px; margin-top: 20px; overflow: clip; }
  .hero-device { width: 265px; }
  .device-aura { width: min(450px, 100%); height: auto; aspect-ratio: 1; }
  .institutions-section { padding: 78px 0; }
  .institutions-intro { gap: 22px; text-align: center; }
  .institutions-intro h2 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .institutions-copy > p { font-size: .9rem; line-height: 1.65; }
  .institutions-copy small { margin-top: 15px; }
  .institution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
  .institution-card { min-height: 126px; padding: 18px; border-radius: 19px; }
  .institution-card > span { margin-bottom: 22px; }
  .institution-card strong { font-size: .9rem; }
  .institution-card small { font-size: .69rem; }
  .scroll-story { height: 400svh; height: 400dvh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 56% 44%; height: 100dvh; min-height: 0; align-items: stretch; gap: 0; }
  .story-visual { grid-row: 1; }
  .story-copy { grid-row: 2; height: 100%; text-align: center; }
  .story-step { inset: clamp(20px, 3svh, 30px) 0 42px; justify-content: flex-start; align-items: center; transform: translateY(24px); }
  .story-number { display: none; }
  .story-step .eyebrow { margin-bottom: 10px; font-size: .62rem; }
  .story-step h2 { font-size: clamp(2.2rem, 9.7vw, 2.9rem); line-height: .93; }
  .story-step > p:last-child { max-width: 390px; margin-top: 13px; font-size: .78rem; line-height: 1.45; }
  .story-progress { right: 0; bottom: 18px; left: 0; justify-content: center; }
  .story-phone { width: auto; height: calc(100% - 30px); max-height: 410px; aspect-ratio: 1462 / 3158; }
  .story-glow { width: min(390px, 100%); height: auto; aspect-ratio: 1; }
  .scroll-hint { display: none; }
  .premium-section { padding: 68px 0 0; }
  .premium-shell { padding: 30px 18px; border-radius: 29px; }
  .premium-intro { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .premium-mark { width: 62px; height: 62px; border-radius: 20px; font-size: 1.7rem; }
  .premium-intro h2 { font-size: clamp(2.7rem, 11.5vw, 3.7rem); }
  .premium-intro > div:last-child > p:last-child { margin-top: 18px; font-size: .86rem; line-height: 1.6; }
  .premium-comparison { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .plan-card { padding: 23px 20px; border-radius: 21px; }
  .plan-card h3 { font-size: 2rem; }
  .plan-summary { min-height: 0; margin: 13px 0 20px; }
  .premium-plans { gap: 7px; }
  .premium-plans > a { min-height: 126px; padding: 24px 9px 13px; border-radius: 16px; text-align: center; }
  .premium-plans small { top: 8px; right: 0; left: 0; }
  .premium-plans strong { font-size: .72rem; line-height: 1.25; }
  .premium-plans span { font-size: .61rem; line-height: 1.25; }
  .premium-plans em { font-size: .55rem; line-height: 1.25; }
  .premium-footer { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .premium-action { width: 100%; }
  .premium-note { text-align: center; }
  .download-section { padding-top: 68px; }
  .download-card { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px; border-radius: 28px; text-align: center; }
  .download-logo { width: 88px; height: 88px; margin-inline: auto; border-radius: 22px; }
  .download-card h2 { font-size: 3.2rem; }
  .store-actions { grid-column: auto; grid-template-columns: 1fr; }
  .store-button { text-align: left; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 20px; }
  footer nav { flex-wrap: wrap; gap: 14px 20px; }
}

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