/* ScreenPair — site commercial. Aucune dépendance, aucune police externe (RGPD). */

:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg-2: #0a0c13;
  --surface: #0e1019;
  --surface-2: #141724;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f5fa;
  --muted: #9aa0b4;
  --faint: #636a80;
  --blue: #3385ff;
  --indigo: #594deb;
  --violet: #8b5cf6;
  --teal: #29c7c7;
  --pink: #f25a9e;
  --orange: #ff9e33;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--blue), var(--indigo));
  --grad-text: linear-gradient(100deg, #7fb2ff 0%, #9d8cff 45%, #f58ac0 100%);
  --pro: linear-gradient(120deg, var(--orange), var(--pink), var(--indigo));
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --loop: 9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--indigo) 60%, transparent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain overlay for a filmic finish */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font); letter-spacing: .14em;
  text-transform: uppercase; color: #a9b6ff;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h2 {
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 16px 0 18px;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pro-text { background: var(--pro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* --------------------------------------------------------------- Buttons */
.btn {
  --bg-btn: rgba(255, 255, 255, .07);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer;
  font: 600 16px/1 var(--font); color: var(--text); background: var(--bg-btn); white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s;
  will-change: transform;
}
.btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary {
  border: 0; color: #0b0c12; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 40px -10px rgba(120, 140, 255, .7);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 50px -8px rgba(140, 150, 255, .9); }
.btn.pro {
  border: 0; color: #fff; background: linear-gradient(120deg, var(--orange), var(--pink), var(--indigo), var(--pink), var(--orange)); background-size: 200% 100%;
  box-shadow: 0 12px 40px -12px rgba(242, 90, 158, .8); animation: shift 6s linear infinite;
}
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.block { width: 100%; }
@keyframes shift { to { background-position: 200% 0; } }

/* ------------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none;
}
.nav-inner {
  pointer-events: auto; width: min(1180px, 100% - 32px); margin-inline: auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 14px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, width .6s var(--ease), box-shadow .4s;
}
.nav.scrolled .nav-inner {
  width: min(900px, 100% - 32px); background: rgba(12, 14, 22, .66); border-color: var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--font-display); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 6px; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: 150px 0 0; overflow: clip; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen;
  animation: drift 18s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: var(--blue); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: -10vw; background: var(--indigo); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 34vw; top: 18vw; background: var(--pink); opacity: .28; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 6vw, 0) scale(.95); }
}
.hero::after {
  /* perspective floor grid */
  content: ""; position: absolute; inset: auto -20% 0; height: 60%; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 80px);
  transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  mask-image: radial-gradient(ellipse at 50% 100%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 20%, transparent 70%);
}
.spotlight {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 30%), rgba(120, 140, 255, .14), transparent 60%);
}

.hero-copy { text-align: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--muted);
  backdrop-filter: blur(10px); transition: border-color .3s, background .3s;
}
.pill:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.pill b { color: var(--text); font-weight: 600; }
.pill .tag { padding: 4px 10px; border-radius: 999px; background: var(--pro); color: #fff; font-weight: 700; font-size: 12px; }
.pill .arrow { transition: transform .3s var(--ease); }
.pill:hover .arrow { transform: translateX(3px); }

.hero h1 {
  font-size: clamp(52px, 10.5vw, 148px); line-height: .92; letter-spacing: -.05em; font-weight: 800;
  margin: 28px 0 26px;
}
.hero h1 .line { display: block; }
.word { display: inline-block; white-space: nowrap; }
.char {
  display: inline-block; transform: translateY(.6em) rotate(6deg); opacity: 0; filter: blur(12px);
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--ci) * 28ms + 150ms);
}
.ready .char { transform: none; opacity: 1; filter: none; }
.hero h1 .grad-line .char {
  background: var(--grad-text); background-size: 600% 100%; background-position: calc(var(--cp) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 680px; margin: 0 auto 36px; }
.lead b { color: var(--text); font-weight: 600; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin: 22px 0 0; font-size: 13.5px; color: var(--faint); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ready .fade-up { opacity: 1; transform: none; }
.ready .fade-up.d1 { transition-delay: .55s; }
.ready .fade-up.d2 { transition-delay: .7s; }
.ready .fade-up.d3 { transition-delay: .85s; }
.ready .fade-up.d4 { transition-delay: 1s; }

/* ------------------------------------------------------- Device stage */
.stage-wrap { position: relative; perspective: 1800px; margin-top: clamp(50px, 8vw, 90px); padding-bottom: 60px; }
.stage {
  --p: 0;
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3.2%;
  transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.88 + var(--p) * .12)) translateY(calc((1 - var(--p)) * 30px));
  transform-origin: 50% 100%; transform-style: preserve-3d; will-change: transform;
}
.stage::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(110, 120, 255, .55), transparent); filter: blur(40px);
}

.mac { width: 60%; position: relative; }
.mac .bezel {
  aspect-ratio: 16 / 10.2; padding: 1.6% 1.6% 2.4%; border-radius: 18px 18px 6px 6px;
  background: linear-gradient(#1b1d24, #0b0c10); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 4px #050608, 0 50px 100px -30px rgba(0, 0, 0, .9);
  position: relative;
}
.mac .bezel::before { /* camera notch */
  content: ""; position: absolute; top: .55%; left: 50%; width: 1.1%; aspect-ratio: 1; border-radius: 50%;
  background: #1c2030; transform: translateX(-50%); box-shadow: 0 0 0 2px #0a0b0f;
}
.mac .base {
  position: relative; height: 0; padding-bottom: 3.4%; margin: 0 -7%;
  background: linear-gradient(#cdd1da, #8e939f 55%, #4c505a); border-radius: 2px 2px 18px 18px / 2px 2px 60% 60%;
}
.mac .base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 42%; transform: translateX(-50%);
  background: linear-gradient(#7d828e, #a7acb7); border-radius: 0 0 12px 12px;
}
.ipad { width: 33%; position: relative; margin-bottom: 1.2%; }
.ipad .bezel {
  aspect-ratio: 4 / 3; padding: 3.2%; border-radius: 26px; background: #0b0c10;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 2px #2a2d36, 0 50px 100px -30px rgba(0, 0, 0, .9);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; isolation: isolate;
  container-type: inline-size;
}
.ipad .screen { border-radius: 14px; }
.wall { position: absolute; inset: 0; z-index: -1; }
.mac .wall {
  background:
    radial-gradient(60% 80% at 15% 20%, #3f6bff 0%, transparent 60%),
    radial-gradient(60% 80% at 80% 90%, #c24ac6 0%, transparent 60%),
    radial-gradient(80% 80% at 100% 10%, #5a3cf0 0%, transparent 60%),
    linear-gradient(135deg, #1a1d6b, #3a1c6b);
}
.ipad .wall {
  background:
    radial-gradient(70% 90% at 0% 20%, #5a3cf0 0%, transparent 60%),
    radial-gradient(70% 80% at 70% 100%, #e05aa8 0%, transparent 60%),
    radial-gradient(70% 70% at 100% 0%, #ff9e5a 0%, transparent 55%),
    linear-gradient(135deg, #2c1e78, #5b1f6b);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 4.2cqw; display: flex; align-items: center; gap: 2.2cqw; padding: 0 2.2cqw;
  background: rgba(10, 10, 30, .28); backdrop-filter: blur(8px); font: 600 1.7cqw/1 var(--font); color: rgba(255, 255, 255, .9);
}
.menubar .sp { margin-left: auto; }
.menubar span { opacity: .85; }
.menubar .logo-dot { width: 1.6cqw; height: 1.6cqw; border-radius: .4cqw; background: #fff; opacity: .9; }
.ipad .menubar { height: 5.4cqw; font-size: 2.3cqw; }

.win {
  position: absolute; border-radius: 1.4cqw; overflow: hidden; background: rgba(250, 250, 255, .94);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08); color: #1a1c25;
}
.win .tb { height: 4.2cqw; display: flex; align-items: center; gap: .8cqw; padding: 0 1.4cqw; background: #eceef5; border-bottom: 1px solid #dfe2ec; }
.win .tb i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ff5f57; }
.win .tb i:nth-child(2) { background: #febc2e; }
.win .tb i:nth-child(3) { background: #28c840; }
.win .tb em { margin-left: auto; margin-right: auto; font: 600 1.5cqw/1 var(--font); font-style: normal; color: #6b7080; padding-right: 4cqw; }
.win .body { padding: 2cqw; display: grid; gap: 1.2cqw; }
.sk { height: 1.4cqw; border-radius: 1cqw; background: #dfe2ec; }
.sk.t { height: 2.4cqw; width: 55%; background: #1a1c25; opacity: .85; }
.sk.w8 { width: 80%; } .sk.w6 { width: 60%; } .sk.w9 { width: 92%; } .sk.w4 { width: 40%; }
.chart { display: flex; align-items: flex-end; gap: 1cqw; height: 12cqw; padding-top: 1cqw; }
.chart b { flex: 1; border-radius: .6cqw .6cqw 0 0; background: var(--grad); height: var(--h); }
.chart b:nth-child(even) { background: linear-gradient(var(--pink), var(--indigo)); }
.photo { height: 15cqw; border-radius: 1cqw; background: radial-gradient(circle at 30% 30%, #ffd9a0, transparent 40%), linear-gradient(160deg, #ff9e33, #f25a9e 50%, #594deb); }

.mac .w-editor { left: 5%; top: 11%; width: 46%; }
.mac .w-travel { left: 44%; top: 26%; width: 40%; animation: travel-out var(--loop) var(--ease) infinite; z-index: 2; }
.ipad .w-travel { left: 9%; top: 14%; width: 78%; animation: travel-in var(--loop) var(--ease) infinite; }
.ipad .w-travel .tb { height: 7cqw; } .ipad .w-travel .tb i { width: 2cqw; height: 2cqw; }
.ipad .w-travel .tb em { font-size: 2.6cqw; }
.ipad .w-travel .body { padding: 3.4cqw; gap: 2cqw; }
.ipad .w-travel .sk { height: 2.4cqw; } .ipad .w-travel .sk.t { height: 4cqw; }
.ipad .w-travel .chart { height: 20cqw; gap: 1.6cqw; }
.dock {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: 1cqw; padding: .9cqw;
  border-radius: 2cqw; background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2);
}
.dock i { width: 4.4cqw; height: 4.4cqw; border-radius: 1.1cqw; background: linear-gradient(135deg, #6ad0ff, #3385ff); }
.dock i:nth-child(2) { background: linear-gradient(135deg, #ffd36a, #ff9e33); }
.dock i:nth-child(3) { background: linear-gradient(135deg, #7ef0b0, #20b46a); }
.dock i:nth-child(4) { background: linear-gradient(135deg, #ff8fc0, #f25a9e); }
.dock i:nth-child(5) { background: var(--grad); box-shadow: 0 0 0 .3cqw rgba(255, 255, 255, .5); }

.cursor {
  position: absolute; width: 3.2cqw; height: auto; right: 22%; top: 1.2cqw; z-index: 3;
  filter: drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .4));
}
.ipad .cursor { width: 4.8cqw; top: 2cqw; }

@keyframes travel-out {
  0%, 12% { transform: translateX(0); opacity: 1; }
  34% { transform: translateX(160%); opacity: 1; }
  34.1%, 66% { transform: translateX(160%); opacity: 0; }
  66.1% { transform: translateX(160%); opacity: 1; }
  88%, 100% { transform: translateX(0); opacity: 1; }
}
@keyframes travel-in {
  0%, 26% { transform: translateX(-130%); opacity: 0; }
  26.1% { transform: translateX(-130%); opacity: 1; }
  42%, 56% { transform: translateX(0); opacity: 1; }
  74% { transform: translateX(-130%); opacity: 1; }
  74.1%, 100% { transform: translateX(-130%); opacity: 0; }
}

/* Link between the two devices */
.link {
  position: absolute; left: 61%; width: 5.2%; bottom: 34%; height: 40px; z-index: 2; pointer-events: none;
}
.link svg { width: 100%; height: 100%; overflow: visible; }
.link .track { stroke: rgba(255, 255, 255, .15); stroke-width: 2; stroke-dasharray: 2 6; }
.link .flow {
  stroke: url(#flowGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 14;
  animation: flow .8s linear infinite, flow-pulse var(--loop) ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(130, 140, 255, .9));
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes flow-pulse { 0%, 100% { opacity: .35; } 25%, 75% { opacity: 1; } }

.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(16, 18, 28, .72); border: 1px solid var(--line-2); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8); font-size: 13px; line-height: 1.25; white-space: nowrap;
  transform: translate3d(var(--px, 0), var(--py, 0), 60px);
  transition: transform .6s var(--ease);
}
.chip small { display: block; color: var(--muted); font-size: 11.5px; }
.chip .ic {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); flex: none;
}
.chip .ic svg { width: 17px; height: 17px; color: #fff; }
.chip.c1 { left: 1%; top: 10%; }
.chip.c2 { right: 0; top: 4%; }
.chip.c2 .ic { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.chip.c3 { right: 14%; bottom: 3%; }
.chip.c3 .ic { background: linear-gradient(135deg, var(--green), var(--teal)); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 5px; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.float { animation: bob 6s ease-in-out infinite; }
.float.b { animation-delay: -2s; } .float.c { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* --------------------------------------------------------------- Marquee */
.marquee {
  position: relative; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; font: 600 clamp(18px, 2vw, 24px)/1 var(--font-display);
  color: #c3c8d8; letter-spacing: -.01em; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 13px; color: var(--indigo); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Sections */
section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="scale"] { transform: scale(.94) translateY(30px); }

.story h2, .sec-grid h2, .lic-grid h2 { font-size: clamp(36px, 4.4vw, 60px); }

/* --------------------------------------------------- Story (how it works) */
.story { padding: 0; }
.story-track { height: 340vh; position: relative; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden;
}
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.story-progress { position: relative; height: 2px; background: var(--line); border-radius: 2px; margin: 34px 0 30px; overflow: hidden; }
.story-progress b { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.steps { position: relative; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 6px 18px; padding: 18px 0; opacity: .32; transition: opacity .5s var(--ease); }
.step .n {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font: 700 18px/1 var(--font-display); border: 1px solid var(--line-2); transition: background .5s, border-color .5s, color .5s;
}
.step h3 { font-size: 24px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.step.active { opacity: 1; }
.step.active .n { background: var(--grad); border-color: transparent; color: #fff; }
.step.active p { max-height: 120px; opacity: 1; }

.story-visual {
  position: relative; aspect-ratio: 1.15; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #161a2e, var(--bg-2) 70%); overflow: hidden;
}
.story-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.scene {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94); filter: blur(10px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); pointer-events: none;
}
.story[data-step="1"] .scene.s1, .story[data-step="2"] .scene.s2, .story[data-step="3"] .scene.s3 { opacity: 1; transform: none; filter: none; }

/* Scene 1: install */
.appicon {
  width: 34%; aspect-ratio: 1; border-radius: 23%; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 30px 80px -20px rgba(89, 77, 235, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  position: relative;
}
.appicon svg { width: 56%; color: #fff; }
.story[data-step="1"] .appicon { animation: drop 1.4s var(--ease-spring) both; }
@keyframes drop { 0% { transform: translateY(-80%) scale(.6) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ring { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 30%; border: 1px solid rgba(130, 140, 255, .4); animation: ripple 3s var(--ease) infinite; }
.ring.r2 { animation-delay: 1s; } .ring.r3 { animation-delay: 2s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.badges { position: absolute; bottom: 9%; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.badges span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); font-size: 13px; color: #c9cede; }

/* Scene 2: pairing */
.pair { display: flex; align-items: center; gap: 6%; width: 86%; }
.mini { flex: 1; border-radius: 18px; border: 1px solid var(--line-2); background: #0b0d16; padding: 18px 16px; text-align: center; }
.mini .lbl { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.digits { display: flex; justify-content: center; gap: 5px; }
.digits b {
  width: 28px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2); font: 700 19px/1 var(--font-display); transition: transform .3s var(--ease-spring), background .3s, border-color .3s;
}
.digits b.on { background: rgba(89, 77, 235, .3); border-color: rgba(140, 130, 255, .7); transform: translateY(-3px); }
.pair .wire { width: 14%; height: 2px; background: linear-gradient(90deg, transparent, var(--indigo), transparent); background-size: 200% 100%; animation: shift 1.4s linear infinite; }
.pair-ok {
  position: absolute; bottom: 12%; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #8ff0c6; font-weight: 600; font-size: 15px;
  opacity: 0; transform: translateY(12px) scale(.95); transition: all .6s var(--ease-spring);
}
.pair-ok.show { opacity: 1; transform: none; }

/* Scene 3: extend */
.s3 .stage-mini { width: 88%; display: flex; align-items: flex-end; gap: 4%; --loop: 6s; }
.s3 .stage-mini { position: relative; }
.s3 .mac { width: 62%; } .s3 .ipad { width: 34%; }
.s3 .link { left: 62%; width: 4%; }
.s3 .mac .bezel, .s3 .ipad .bezel { box-shadow: none; }
.s3 .mac .bezel { border-radius: 12px 12px 4px 4px; } .s3 .ipad .bezel { border-radius: 16px; }

/* ----------------------------------------------------------------- Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  padding: 30px; overflow: hidden; isolation: isolate; min-height: 280px; display: flex; flex-direction: column;
}
.card::before { /* cursor glow */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(110, 120, 255, .16), transparent 60%);
}
.card::after { /* glowing border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(150, 160, 255, .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 23px; letter-spacing: -.02em; margin-top: auto; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.card .viz { position: relative; flex: 1; min-height: 140px; display: grid; place-items: center; margin-bottom: 18px; }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }

/* Retina viz */
.retina-viz { font: 800 clamp(90px, 12vw, 150px)/1 var(--font-display); letter-spacing: -.05em; position: relative; }
.retina-viz .lo, .retina-viz .hi { display: block; }
.retina-viz .lo { color: #4b5068; filter: blur(3px); }
.retina-viz .hi {
  position: absolute; inset: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .3s;
}
.in .retina-viz .hi, .card.in .retina-viz .hi { clip-path: inset(0 0 0 0); }
.res-tags { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
.res-tags span { font: 600 12px/1 var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.res-tags span.hi-tag { color: #fff; background: var(--grad); border-color: transparent; }

/* Latency viz */
.lat-viz { width: 100%; height: 150px; }
.lat-viz svg { width: 100%; height: 100%; overflow: visible; }
.lat-viz .ghost { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.lat-viz .trail { fill: none; stroke: url(#latGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 600; animation: trail 3s linear infinite; }
@keyframes trail { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -540; } }
.fps { position: absolute; left: 0; top: 0; font: 600 13px/1 var(--mono); color: var(--muted); }
.fps b { font: 800 34px/1 var(--font-display); color: var(--text); letter-spacing: -.03em; }

/* Connection viz */
.conn-viz { display: grid; gap: 10px; width: 100%; }
.conn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 15px; transition: all .5s var(--ease);
}
.conn svg { width: 20px; height: 20px; color: var(--muted); }
.conn em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--faint); font-weight: 500; }
.conn.on { border-color: rgba(130, 140, 255, .55); background: rgba(89, 77, 235, .14); box-shadow: 0 10px 30px -12px rgba(89, 77, 235, .8); }
.conn.on svg { color: #b3b9ff; }
.conn.on em { color: var(--green); }

/* Touch viz */
.touch-viz { width: 100%; height: 170px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, #191c33, #10121c); position: relative; overflow: hidden; }
.tap { position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: tap 2.4s var(--ease) infinite; opacity: 0; }
.tap::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.tap.t1 { left: 22%; top: 36%; } .tap.t2 { left: 66%; top: 62%; animation-delay: .8s; } .tap.t3 { left: 46%; top: 28%; animation-delay: 1.6s; }
@keyframes tap { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: 1; transform: scale(1); } 60%, 100% { transform: scale(2); opacity: 0; } }
.pencil { position: absolute; inset: 0; }
.pencil path { fill: none; stroke: url(#penGrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 4s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }

/* Multi-screen viz */
.multi-viz { display: flex; align-items: flex-end; gap: 10px; }
.multi-viz i {
  display: block; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .2); background: linear-gradient(135deg, rgba(51, 133, 255, .4), rgba(89, 77, 235, .4));
  transform: translateY(30px); opacity: 0; transition: all .8s var(--ease-spring);
}
.multi-viz i:nth-child(1) { width: 70px; height: 52px; transition-delay: .3s; }
.multi-viz i:nth-child(2) { width: 110px; height: 76px; background: var(--grad); border-color: rgba(255, 255, 255, .5); }
.multi-viz i:nth-child(3) { width: 60px; height: 80px; transition-delay: .5s; background: linear-gradient(135deg, rgba(242, 90, 158, .5), rgba(89, 77, 235, .4)); }
.in .multi-viz i { transform: none; opacity: 1; }

/* Old Mac viz */
.imac-viz { position: relative; width: 150px; }
.imac-viz .scr { aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; border: 6px solid #d9dce4; border-bottom: 0; background: linear-gradient(135deg, #3f6bff, #c24ac6); position: relative; overflow: hidden; }
.imac-viz .scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s var(--ease) infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.imac-viz .chin { height: 22px; background: linear-gradient(#e6e8ee, #c5c9d3); border-radius: 0 0 10px 10px; }
.imac-viz .foot { width: 34px; height: 26px; margin: 0 auto; background: linear-gradient(#b6bac4, #8e939f); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.year { position: absolute; top: -12px; right: -40px; padding: 6px 10px; border-radius: 10px; background: var(--pro); font: 700 13px/1 var(--font); transform: rotate(8deg); }

/* Rotation viz */
.rot-viz i {
  display: block; width: 120px; height: 88px; border-radius: 14px; border: 5px solid #1d2030; background: linear-gradient(135deg, #5a3cf0, #e05aa8);
  animation: rot 5s var(--ease) infinite; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
@keyframes rot { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(90deg); } 100% { transform: rotate(0); } }

/* Privacy mini viz */
.zero-viz { display: flex; gap: 12px; }
.zero-viz div { text-align: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.zero-viz b { display: block; font: 800 44px/1 var(--font-display); letter-spacing: -.04em; }
.zero-viz span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------- Compare slider */
.compare-box {
  --pos: 50%;
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 8.5;
  background: #f6f7fb; user-select: none; touch-action: pan-y; cursor: ew-resize;
  box-shadow: 0 60px 120px -40px rgba(89, 77, 235, .5);
}
.compare-layer { position: absolute; inset: 0; color: #12131a; container-type: inline-size; }
.doc { position: absolute; inset: 0; padding: 5cqw 6cqw; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4cqw; background: #fbfbfe; }
.doc h4 { margin: 0 0 1.6cqw; font: 800 4.2cqw/1.05 var(--font-display); letter-spacing: -.04em; }
.doc p { margin: 0 0 1.4cqw; font: 400 1.45cqw/1.55 var(--font); color: #3a3d4c; }
.doc .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; align-content: start; }
.doc .kpi { border-radius: 1.6cqw; padding: 1.8cqw; background: #eef0f8; }
.doc .kpi b { display: block; font: 800 3.6cqw/1 var(--font-display); letter-spacing: -.03em; }
.doc .kpi span { font-size: 1.2cqw; color: #6b7080; }
.doc .kpi.wide { grid-column: span 2; background: var(--grad); color: #fff; }
.doc .kpi.wide span { color: rgba(255, 255, 255, .8); }
.doc .tiny { font: 500 1cqw/1.4 var(--mono); color: #8a8fa0; }
.compare-layer.lo { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-layer.lo .doc { filter: blur(.2cqw) saturate(.85) contrast(.92); }
.compare-layer.lo .doc * { text-shadow: 0 0 .25cqw rgba(0, 0, 0, .25); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 0 30px rgba(89, 77, 235, .8);
}
.compare-handle button {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; border: 0; cursor: grab;
  background: #fff; color: #12131a; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.compare-handle button svg { width: 26px; }
.compare-label {
  position: absolute; top: 18px; z-index: 2; padding: 8px 14px; border-radius: 999px; font: 700 13px/1 var(--font);
  background: rgba(18, 19, 26, .8); color: #fff; backdrop-filter: blur(8px);
}
.compare-label.l { left: 18px; } .compare-label.r { right: 18px; background: var(--pro); }
.compare-note { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: center; }

/* ------------------------------------------------------------- Showcase */
.showcase-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px; align-items: center; }
.shot {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #111;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); translate: 0 var(--ty, 0);
}
.shot img { width: 100%; height: auto; }
.shot.main { position: relative; z-index: 2; box-shadow: 0 60px 140px -30px rgba(89, 77, 235, .6); }
.shot.main .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.showcase[data-theme="light"] .shot.main .alt { opacity: 1; }
.shot .alt img { width: 100%; height: 100%; object-fit: cover; }
.toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); margin-top: 26px;
}
.toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; transition: all .3s; }
.toggle button[aria-pressed="true"] { background: #fff; color: #12131a; }

/* -------------------------------------------------------------- Security */
.sec { background: radial-gradient(80% 60% at 50% 0%, rgba(41, 199, 199, .09), transparent 70%); }
.sec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.tunnel {
  position: relative; aspect-ratio: 1.25; border-radius: 30px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 70% at 50% 50%, #0f1a24, var(--bg-2));
}
.tunnel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { fill: #0c111a; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.node-label { fill: #e7eaf3; font: 600 15px var(--font); text-anchor: middle; }
.node-sub { fill: #7f879c; font: 500 11px var(--mono); text-anchor: middle; }
.pipe-outer { fill: none; stroke: rgba(41, 199, 199, .25); stroke-width: 34; stroke-linecap: round; }
.pipe-inner { fill: none; stroke: rgba(41, 199, 199, .55); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 1s linear infinite; }
.packet rect { fill: rgba(41, 199, 199, .14); stroke: rgba(41, 199, 199, .7); }
.packet text { fill: #8ef2f2; font: 600 10px var(--mono); }
.lock-badge { transform-box: fill-box; transform-origin: center; animation: lockpop 4s var(--ease-spring) infinite; }
@keyframes lockpop { 0%, 10% { transform: scale(0); } 22%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
.keyfly { animation: keyfly 4s var(--ease) infinite; }
.keyfly.b { animation-name: keyfly-b; }
@keyframes keyfly { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 20% { transform: translateX(150px); opacity: 1; } 24%, 100% { transform: translateX(150px); opacity: 0; } }
@keyframes keyfly-b { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 20% { transform: translateX(-150px); opacity: 1; } 24%, 100% { transform: translateX(-150px); opacity: 0; } }
.cipher {
  position: absolute; left: 6%; right: 6%; bottom: 6%; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line); font: 500 12px/1.6 var(--mono); color: #6fd8d8; overflow: hidden; white-space: nowrap;
}
.cipher span { color: var(--faint); }
.feat-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 4px; }
.feat-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.feat-list li:last-child { border-bottom: 1px solid var(--line); }
.feat-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(41, 199, 199, .12); color: var(--teal); }
.feat-list .ic svg { width: 20px; height: 20px; }
.feat-list b { display: block; font-size: 16px; }
.feat-list span { color: var(--muted); font-size: 14.5px; }

/* --------------------------------------------------------------- License */
.lic-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.holo-wrap { perspective: 1200px; display: grid; place-items: center; padding: 30px 0; }
.holo {
  --rx: 0deg; --ry: 0deg; --hx: 50%; --hy: 50%;
  position: relative; width: min(440px, 100%); aspect-ratio: 1.586; border-radius: 26px; padding: 26px 28px;
  color: #fff; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .2s ease-out;
  background:
    radial-gradient(120% 120% at 0% 0%, #2b3ae0 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, #c03c94 0%, transparent 55%),
    linear-gradient(135deg, #1a1d4f, #33155a);
  box-shadow: 0 50px 100px -30px rgba(89, 77, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; overflow: hidden;
  animation: float-card 7s ease-in-out infinite;
}
@keyframes float-card { 50% { translate: 0 -12px; } }
.holo::before { /* holographic foil */
  content: ""; position: absolute; inset: 0; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .55; pointer-events: none;
  background:
    radial-gradient(circle at var(--hx) var(--hy), rgba(255, 255, 255, .55), transparent 40%),
    repeating-linear-gradient(115deg, #ff9e33 0%, #f25a9e 8%, #594deb 16%, #29c7c7 24%, #ff9e33 32%);
  background-size: 100% 100%, 300% 300%; background-position: center, var(--hx) var(--hy);
}
.holo::after { /* fine guilloche */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .12; pointer-events: none;
  background: repeating-radial-gradient(circle at 80% 20%, #fff 0 1px, transparent 1px 7px);
}
.holo > * { position: relative; z-index: 1; transform: translateZ(30px); }
.holo .top { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-display); }
.holo .top svg { width: 28px; height: 28px; }
.holo .top .tag { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.holo .chipcard { width: 46px; height: 34px; border-radius: 8px; margin-top: 22px; background: linear-gradient(135deg, #f5d98a, #b88a2e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.holo .token { margin-top: auto; font: 500 13px/1.4 var(--mono); letter-spacing: .03em; opacity: .9; word-break: break-all; }
.holo .row { display: flex; gap: 22px; margin-top: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.holo .row b { display: block; font: 600 14px/1.3 var(--font); letter-spacing: 0; text-transform: none; opacity: 1; margin-top: 3px; }
.holo .sig { margin-left: auto; text-align: right; }
.holo .sig b { color: #8ff0c6; }

.timeline { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 19px; top: 10px; width: 2px; height: calc(var(--tp, 0) * (100% - 20px)); background: var(--grad); transition: height .2s linear; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 12px 0; }
.timeline .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); z-index: 1; transition: all .5s var(--ease); }
.timeline .dot svg { width: 18px; height: 18px; color: var(--muted); transition: color .5s; }
.timeline li.lit .dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(89, 77, 235, .18); }
.timeline li.lit .dot svg { color: #fff; }
.timeline b { display: block; font-size: 17px; margin-top: 8px; }
.timeline span { color: var(--muted); font-size: 15px; }

.guard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70px; }
.guard div { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.guard b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.guard span { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- Pricing */
.pricing { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; border-radius: 28px; padding: 36px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.plan .price b { font: 800 clamp(60px, 7vw, 84px)/1 var(--font-display); letter-spacing: -.05em; }
.plan .price span { color: var(--muted); }
.plan .muted { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #d5d9e6; font-size: 15.5px; }
.plan li svg { width: 22px; height: 22px; color: var(--muted); }
.plan .actions { margin-top: auto; display: grid; gap: 10px; }
.plan.pro { border: 0; background: #0f1020; isolation: isolate; overflow: hidden; }
.plan.pro::before { /* rotating gradient border */
  content: ""; position: absolute; inset: -50%; z-index: -2;
  background: conic-gradient(from var(--angle, 0deg), var(--orange), var(--pink), var(--indigo), var(--blue), var(--teal), var(--orange));
  animation: spin 6s linear infinite;
}
.plan.pro::after { content: ""; position: absolute; inset: 1.5px; border-radius: 27px; z-index: -1; background: radial-gradient(100% 60% at 50% 0%, #1d1840, #0d0e1a 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
.plan.pro li svg { color: #c1b8ff; }
.plan.pro li b { color: #fff; }
.ribbon { position: absolute; top: 22px; right: 22px; padding: 7px 12px; border-radius: 999px; background: var(--pro); font: 700 12px/1 var(--font); letter-spacing: .02em; }
.pay-methods { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.pay-methods i { font-style: normal; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.price-foot { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.price-foot span { display: inline-flex; align-items: center; gap: 8px; }
.price-foot svg { width: 18px; height: 18px; color: var(--green); }
.compare-cost { max-width: 980px; margin: 22px auto 0; padding: 22px 28px; border-radius: 20px; border: 1px dashed var(--line-2); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.compare-cost p { margin: 0; color: var(--muted); }
.compare-cost b { color: var(--text); }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font: 600 19px/1.35 var(--font-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .4s var(--ease), background .3s;
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: rgba(255, 255, 255, .08); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 50px 26px 0; color: var(--muted); }

/* ------------------------------------------------------------ Final CTA */
.final { text-align: center; overflow: hidden; }
.final h2 { font-size: clamp(48px, 9vw, 130px); letter-spacing: -.055em; line-height: .92; }
.final .glow {
  position: absolute; left: 50%; top: 55%; width: 900px; height: 500px; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(89, 77, 235, .5), transparent); filter: blur(30px);
}

/* --------------------------------------------------------------- Footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 60px; color: var(--muted); font-size: 14px; }
.foot { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 12px 0 0; max-width: 360px; }

/* ---------------------------------------------------------------- Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 140%); opacity: 0;
  padding: 14px 20px; border-radius: 16px; background: rgba(20, 22, 34, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-size: 15px; max-width: calc(100% - 32px);
  transition: transform .5s var(--ease-spring), opacity .4s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .story-grid, .sec-grid, .lic-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-4, .span-3, .span-2 { grid-column: span 2; }
  .bento .half { grid-column: span 1; }
  .guard { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
  .plan.pro { order: -1; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid .shot.main { grid-column: span 2; order: -1; max-width: 520px; margin: 0 auto; }
  .story-visual { aspect-ratio: 1.5; }
  .story-sticky { align-items: start; padding-top: 90px; }
  .story-grid { gap: 22px; }
  .story-progress { margin: 18px 0 8px; }
  .story .section-head h2 { font-size: clamp(32px, 7vw, 48px); margin-bottom: 0; }
  .story .sub { display: none; }
  .step { padding: 10px 0; }
  .step:not(.active) { display: none; }
  .story-text { order: 2; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav { inset-block-start: 10px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 120px; }
  .stage { gap: 2.5%; }
  .chip { display: none; }
  .chip.c2 { display: flex; top: -8%; right: 2%; transform: scale(.85); transform-origin: right; }
  .bento { grid-template-columns: 1fr; }
  .span-4, .span-3, .span-2, .bento .half { grid-column: auto; }
  .card { padding: 24px; min-height: 0; }
  .guard { grid-template-columns: 1fr; }
  .compare-box { aspect-ratio: 4 / 3.4; }
  .doc { grid-template-columns: 1fr; padding: 6cqw; }
  .doc h4 { font-size: 7cqw; } .doc p { font-size: 2.9cqw; } .doc .kpi b { font-size: 6cqw; } .doc .kpi span { font-size: 2.4cqw; } .doc .tiny { font-size: 2.1cqw; }
  .doc .hide-sm { display: none; }
  .plan { padding: 28px 22px; }
  .faq .ans p { padding-right: 0; }
  .pair { width: 94%; gap: 3%; }
  .digits { gap: 2px; } .digits b { width: 19px; height: 30px; font-size: 15px; border-radius: 7px; }
  .appicon, .ring { width: 26%; }
  .s1 .appicon { margin-top: -14%; }
  .badges { bottom: 6%; gap: 6px; } .badges span { font-size: 11.5px; padding: 6px 10px; }
  .mini { padding: 14px 8px; }
  .story-visual { aspect-ratio: 1.25; }
  .holo { padding: 20px; }
  .holo .token { font-size: 11px; }
  .zero-viz b { font-size: 36px; }
}

/* ----------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .char, .fade-up, [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .mac .w-travel, .ipad .w-travel { animation: none !important; }
  .ipad .w-travel { display: none; }
  .marquee-track { animation: none !important; }
}

/* ------------------------------------------------------- Pages simples */
.page { position: relative; min-height: 100vh; min-height: 100svh; padding: 140px 0 80px; overflow: clip; isolation: isolate; }
.page .aurora i { opacity: .35; }
.page h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 26px 0 18px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.done {
  width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; margin: 0 auto; background: var(--grad);
  box-shadow: 0 30px 80px -20px rgba(89, 77, 235, .9); animation: drop 1.1s var(--ease-spring) both;
}
.done svg { width: 50px; height: 50px; color: #fff; stroke-width: 2.4; }
.done path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .7s .6s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 50px auto 40px; max-width: 640px; display: grid; gap: 12px; text-align: left; }
.howto li {
  counter-increment: s; position: relative; padding: 20px 22px 20px 74px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.howto li::before {
  content: counter(s); position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grad); font: 700 17px/1 var(--font-display);
}
.howto b { display: block; }
.howto span { color: var(--muted); font-size: 15px; }
kbd { font: 600 13px/1 var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }

.legal { max-width: 760px; }
.legal h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 70px 0 16px; scroll-margin-top: 100px; }
.legal h3 { font-size: 19px; margin: 30px 0 8px; }
.legal p, .legal li { color: #c8ccda; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { background: rgba(255, 158, 51, .15); color: #ffc98a; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.legal .toc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
