/* Night desk: the island's own palette (black, cyan, amber) on a deep blue-black. */
:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --card: #111319;
  --txt: #f5f6f8;
  --mut: #9398a1;
  --faint: #5f646d;
  --line: rgba(255, 255, 255, .07);
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --amber: #f5a524;
  --green: #34d399;
  --red: #f4505e;
  --pink: #f472b6;

  --body: 'Geist', -apple-system, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.35, .4, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 17px/1.6 var(--body); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.label { color: var(--faint); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--cyan); }
code { font: .86em var(--mono); padding: .1em .35em; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
pre, code, kbd { font-variant-ligatures: none; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.8em; height: 1.6em; padding: 0 .45em;
  font: 500 .78em/1 var(--mono); color: var(--txt); background: linear-gradient(180deg, #23262e, #16181e);
  border-radius: .38em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #000; vertical-align: .1em;
}

.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .05;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header: hidden over the hero, where the island owns the top edge ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gut); background: rgba(7, 8, 12, .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
  transform: translateY(-110%); transition: transform .45s var(--out);
}
.top.show { transform: none; }
.brand, .hero-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--body); letter-spacing: -.01em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--mut); text-decoration: none; }
.top-nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.top-nav .top-cta { color: #000; background: var(--txt); }

/* ---------- hero: the real island hangs from the top of the window ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #10142a 0%, var(--bg) 60%); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 30px 30px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.aurora { position: absolute; inset: 0; filter: blur(70px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 36vw; left: 42%; top: -14%; background: rgba(34, 211, 238, .22); }
.aurora i:nth-child(2) { width: 40vw; height: 34vw; left: 62%; top: 34%; background: rgba(99, 102, 241, .28); animation-duration: 28s; }
.aurora i:nth-child(3) { width: 30vw; height: 26vw; left: -6%; top: 54%; background: rgba(244, 114, 182, .12); animation-duration: 34s; }
@keyframes drift { to { transform: translate(-6vw, 5vh) scale(1.12); } }

.hero-brand { position: absolute; left: var(--gut); top: 18px; z-index: 3; }
.hero-copy { position: absolute; left: var(--gut); top: 50%; transform: translateY(-38%); width: min(860px, 54vw); z-index: 1; }
.kicker { color: var(--mut); margin: 0 0 22px; }
/* Entrance in CSS, so the text never flashes before the scripts load. */
.hero-copy > * { animation: hero-in 1s var(--out) both; animation-delay: calc(.25s + var(--i, 0) * .08s); }
.hero-copy > :nth-child(2) { --i: 1; }
.hero-copy > :nth-child(3) { --i: 2; }
.hero-copy > :nth-child(4) { --i: 3; }
.hero-copy > :nth-child(5) { --i: 4; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }
/* Sized with the column, so the title stays on two lines: the sessions, then the island. */
.hero h1 { margin: 0; font: 700 clamp(34px, 3.85vw, 62px)/1 var(--body); letter-spacing: -.045em; }
.hero h1 em { display: block; font-size: 1.1em; letter-spacing: -.02em; }
.lede { margin: 26px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--mut); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 12px; text-decoration: none;
  font: 600 15px/1 var(--body); transition: transform .35s var(--spring), background .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { color: #001014; background: var(--cyan); box-shadow: 0 14px 36px -12px rgba(34, 211, 238, .6); }
.btn-ghost { color: var(--txt); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.coach { display: flex; align-items: flex-start; gap: 10px; margin: 30px 0 0; max-width: 480px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--mut); min-height: 48px; transition: box-shadow .4s; }
.coach b { color: var(--txt); font-weight: 600; }
.coach.wait { box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .45), 0 0 30px -10px rgba(245, 165, 36, .5); }
.coach.wait .pulse { background: var(--amber); }
.coach.done .pulse { background: var(--green); animation: none; }
.pulse { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
#coachText { transition: opacity .25s; }

/* The iframe is transparent and full-bleed; clip-path (set from the island's own size) lets the page around it take the pointer. */
.screen { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.screen iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: dark; }
.demo-note { position: absolute; right: var(--gut); bottom: 16px; z-index: 1; margin: 0; color: var(--faint); }

/* ---------- sections ---------- */
section:not(.hero) { padding: clamp(100px, 14vw, 170px) var(--gut) 0; }
.big { margin: 0; font: 700 clamp(36px, 5vw, 70px)/1.02 var(--body); letter-spacing: -.04em; }
.big em { font-size: 1.08em; }
.say { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--mut); max-width: 640px; margin: 22px 0 0; }

.problem { max-width: 1100px; margin: 0 auto; text-align: center; }
.problem .say { margin-left: auto; margin-right: auto; }
.tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto 64px; padding: 8px 8px 0; max-width: 980px; border-radius: 12px 12px 0 0; background: #0d0f14; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.tabs span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px 8px 0 0; font: 500 13px var(--mono); color: var(--faint); white-space: nowrap; }
.tabs span.on { background: var(--bg-2); color: var(--txt); }
.tabs i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: .5; }
.tabs span.wait i { background: var(--amber); opacity: 1; box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); animation: pulse 1s ease-in-out infinite; }

.sizes { max-width: 1200px; margin: 0 auto; }
.sizes-head, .answers-head, .more-head, .setup-head { max-width: 1000px; margin-bottom: 56px; }
.size { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.size-copy .step { color: var(--cyan); margin: 0 0 10px; }
.size-copy h3 { margin: 0 0 10px; font: 600 24px/1.2 var(--body); letter-spacing: -.02em; }
.size-copy p { margin: 0; color: var(--mut); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #1c1d22; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.shot img { display: block; width: 100%; }

.answers { max-width: 1300px; margin: 0 auto; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; scrollbar-width: thin; scrollbar-color: #2a2d36 transparent; outline: none; }
.rail.marquee { display: block; overflow: hidden; padding: 4px 0 24px; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.rail-track .card { width: min(560px, 82vw); margin-right: 18px; }
/* Hover or keyboard focus holds the band, so a card can be read in peace. */
.rail.marquee:hover .rail-track, .rail.marquee:focus-within .rail-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.card { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: contain; background: #1c1d22; }
.card figcaption { padding: 18px 20px 22px; color: var(--mut); font-size: 15px; }
.card figcaption b { display: block; margin-bottom: 4px; color: var(--txt); font-size: 17px; }

.limits { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.meters { padding: 26px; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(34, 211, 238, .25); }
.meter { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meter:last-child { border-bottom: 0; }
.meter > span:first-child { color: var(--mut); font-size: 12px; }
.meter b { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter b i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--c); border-radius: 6px; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.4s var(--out); }
.meter .pct { text-align: right; color: var(--c); }
.meter small { grid-column: 2 / 4; color: var(--faint); font-size: 12px; }
.meters.on .meter b i { --p: 1; }

.more { max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 24px 24px 26px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--out), box-shadow .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25); }
.tile .tag { color: var(--cyan); }
.tile h3 { margin: 12px 0 8px; font: 600 20px/1.25 var(--body); letter-spacing: -.015em; }
.tile p { margin: 0; color: var(--mut); font-size: 15px; }

.quiet { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.huge { margin: 0; font: 800 clamp(96px, 16vw, 220px)/.9 var(--body); letter-spacing: -.06em; background: linear-gradient(180deg, #fff, #6b7079); -webkit-background-clip: text; background-clip: text; color: transparent; }
.huge span { font-size: .32em; letter-spacing: -.02em; margin-left: .08em; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--mut); position: relative; font-size: 15.5px; }
.facts li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 10px; height: 6px; border: 2px solid var(--green); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.facts b { color: var(--txt); font-weight: 600; }

.setup { max-width: 1200px; margin: 0 auto; }
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 22px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(34, 211, 238, .12); color: var(--cyan); font-size: 13px; }
.steps h3 { margin: 14px 0 6px; font: 600 19px/1.25 var(--body); }
.steps p { margin: 0; color: var(--mut); font-size: 15px; }
.diff { margin: 0; padding: 20px 22px; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.8; color: var(--mut); overflow-x: auto; white-space: pre; }
.diff .c { color: var(--faint); }
.diff .add { color: var(--green); background: rgba(52, 211, 153, .07); display: inline-block; min-width: 100%; }
.diff .del { color: #ff8d97; background: rgba(244, 80, 94, .08); display: inline-block; min-width: 100%; }
.setup-note { color: var(--faint); font-size: 14px; margin: 16px 0 0; }

.get { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 110px !important; }
.app-icon { width: 120px; height: 120px; margin-bottom: 30px; filter: drop-shadow(0 20px 40px rgba(34, 211, 238, .25)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.get .say { margin-left: auto; margin-right: auto; }
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.btn-dl { color: #000; background: var(--txt); padding: 13px 22px 13px 18px; text-align: left; }
.btn-dl svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-dl.mine { background: var(--cyan); color: #001014; box-shadow: 0 14px 36px -12px rgba(34, 211, 238, .6); order: -1; }
.btn b { display: block; font-size: 15px; }
.btn small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .65; }
.btn-coffee { background: #ffdd00; color: #1a1300; padding: 13px 22px 13px 18px; text-align: left; }
.cup { position: relative; width: 24px; height: 26px; flex: none; }
.cup::before { content: ''; position: absolute; left: 2px; bottom: 0; width: 16px; height: 15px; border-radius: 2px 2px 6px 6px; background: #1a1300; }
.cup::after { content: ''; position: absolute; right: 0; bottom: 4px; width: 5px; height: 7px; border: 2.5px solid #1a1300; border-left: 0; border-radius: 0 5px 5px 0; }
.cup i { position: absolute; bottom: 17px; width: 2.5px; height: 7px; border-radius: 2px; background: #1a1300; opacity: 0; animation: steam 2s ease-in-out infinite; }
.cup i:nth-child(1) { left: 5px; }
.cup i:nth-child(2) { left: 9px; animation-delay: .4s; }
.cup i:nth-child(3) { left: 13px; animation-delay: .8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-5px); } }
.get-note { max-width: 640px; margin: 30px auto 0; color: var(--faint); font-size: 14px; }
.get-foot { color: var(--faint); margin-top: 20px; }
.get-foot a { color: var(--mut); }
.credit { max-width: 560px; margin: 26px auto 0; color: var(--faint); font-size: 13px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px var(--gut) 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--txt); }
.foot-links { display: flex; gap: 18px; }

.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- smaller screens: the desk becomes a scaled screen below the copy ---------- */
@media (max-width: 1000px) {
  .hero { height: auto; min-height: 0; padding: 90px var(--gut) 40px; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; width: auto; max-width: 640px; }
  .screen { position: relative; inset: auto; margin-top: 36px; aspect-ratio: 1280 / 800; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #10142a, #05060a 70%); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; }
  .screen iframe { width: 1280px; height: 800px; transform-origin: 0 0; transform: scale(var(--s, .5)); }
  .demo-note { position: static; margin-top: 12px; text-align: center; }
  .size, .limits, .quiet { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .top-nav a:not(.top-cta) { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 em { display: inline; }
  .tabs { justify-content: flex-start; }
}

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