:root {
  --bg: #0b1020; --bg2: #0f1630; --card: #141b33; --line: #223060;
  --fg: #eef2ff; --muted: #a5b0d0; --accent: #5b8cff; --accent2: #3ddc97; --gold: #f2c14e;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.72); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(34,48,96,.6);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.menu { display: flex; gap: 6px; }
nav.menu a {
  color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 15px; transition: .2s;
}
nav.menu a:hover, nav.menu a.active { color: var(--fg); background: rgba(91,140,255,.14); text-decoration: none; }
.burger { display: none; background: none; border: 0; color: var(--fg); font-size: 26px; cursor: pointer; padding: 6px; }
@media (max-width: 720px) {
  .burger { display: block; }
  nav.menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 12px 14px;
    display: none;
  }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 12px 14px; }
}

/* Hero */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(91,140,255,.35), transparent 70%),
    radial-gradient(35% 30% at 75% 40%, rgba(61,220,151,.22), transparent 70%),
    radial-gradient(30% 30% at 55% 80%, rgba(242,193,78,.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; z-index: -1;
}
@keyframes drift { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(4%, -3%) rotate(8deg); } }
.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(42px, 8vw, 78px); line-height: 1.04; margin: 16px 0 18px; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 600px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(91,140,255,.35); }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); }
.btn.ghost:hover { background: rgba(255,255,255,.04); }

/* Sections */
section { padding: 70px 0; }
section.alt { background: linear-gradient(180deg, transparent, var(--bg2) 20%, var(--bg2) 80%, transparent); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.01em; margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 34px; max-width: 640px; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.app-card {
  position: relative; display: block; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.app-card:hover { text-decoration: none; transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.app-card .thumb { height: 200px; background-size: cover; background-position: center; position: relative; }
.app-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--card)); }
.app-card .body { padding: 0 22px 22px; margin-top: -36px; position: relative; z-index: 1; }
.app-icon { width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 8px 24px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.app-card h3 { font-size: 21px; margin: 14px 0 4px; }
.app-card p { color: var(--muted); font-size: 15px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tag.live { color: var(--accent2); border-color: rgba(61,220,151,.5); }
.tag.dev { color: var(--gold); border-color: rgba(242,193,78,.5); }
.more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--accent); }
.app-card:hover .more { transform: translateX(4px); transition: .2s; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 26px; margin-bottom: 10px; }
.feature h4 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* App detail page */
.app-hero { position: relative; padding: 90px 0 70px; background-size: cover; background-position: center; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg) 100%), linear-gradient(90deg, rgba(11,16,32,.88) 0%, rgba(11,16,32,.6) 55%, rgba(11,16,32,.2) 100%); }
.app-hero .wrap { position: relative; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero .app-icon { width: 128px; height: 128px; }
.app-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
.app-hero p { color: #d3dbf3; font-size: 18px; max-width: 560px; margin-top: 8px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.steps { counter-reset: s; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(91,140,255,.16); color: var(--accent); display: grid; place-items: center; font-weight: 700;
}
.steps li strong { color: var(--fg); display: block; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.platforms span { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.notice { background: rgba(242,193,78,.08); border: 1px solid rgba(242,193,78,.35); border-radius: var(--radius); padding: 18px 22px; color: #f4dfa8; }

/* Prose pages */
.prose { max-width: 760px; padding: 60px 20px; margin: 0 auto; }
.prose h1 { font-size: 40px; margin-bottom: 6px; }
.prose h2 { font-size: 21px; margin: 30px 0 6px; }
.prose p { color: #c9d1ea; margin-bottom: 12px; }
.prose .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
.muted { color: var(--muted); font-size: 14px; }

/* Footer */
footer.site { margin-top: auto; border-top: 1px solid #1f2a4d; padding: 34px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site nav a { color: var(--muted); margin-right: 18px; }
footer.site nav a:hover { color: var(--fg); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
}

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 680px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.gallery figure:hover { transform: translateY(-4px); border-color: var(--gold); }
.gallery img { width: 100%; aspect-ratio: 686 / 350; object-fit: cover; }
.gallery figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: 15px; }
.gallery figcaption strong { display: block; color: var(--fg); font-size: 16px; margin-bottom: 2px; }

/* Store badges + platform icons */
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); line-height: 1.15; font-weight: 600; font-size: 16px;
  opacity: .92; cursor: default;
}
.store small { display: block; font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store svg { flex: none; }
.mini-icons { display: flex; gap: 10px; margin-top: 12px; color: var(--muted); }
.mini-icons span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.mini-icons svg { width: 18px; height: 18px; }

/* Quick Start guide */
.guide .lead-in { font-size: 19px; color: #d3dbf3; }
.guide ol, .guide ul { color: #c9d1ea; padding-left: 22px; margin: 8px 0 14px; }
.guide li { margin-bottom: 6px; }
.guide figure { margin: 20px 0; }
.guide figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.guide .shot-wide img { border-radius: 14px; border: 1px solid var(--line); margin: 0 auto; max-height: 560px; }
.phones { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.phones figure { margin: 12px 0; width: 240px; }
.phones img { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); }

/* StepAway: device row, story, FAQ */
.devices { display: grid; grid-template-columns: 1.35fr .8fr .55fr; gap: 26px; align-items: end; }
.devices figure { margin: 0; }
.devices img { width: 100%; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.dev-mac img { border-radius: 12px; }
.dev-phone img { border-radius: 30px; }
.dev-watch img { border-radius: 42px; }
.devices figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 720px) { .devices { grid-template-columns: 1fr 1fr; } .dev-mac { grid-column: 1 / -1; } }
.story p { color: #d3dbf3; font-size: 18px; max-width: 760px; margin-bottom: 14px; }
.story em { color: var(--gold); font-style: normal; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--fg); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: #c9d1ea; margin: 10px 0 2px; }

/* Lock / unlock pair */
.lockpair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lockpair figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lockpair img { width: 100%; }
.lockpair figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: 15px; }
.lockpair figcaption strong { display: block; color: var(--fg); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 720px) { .lockpair { grid-template-columns: 1fr; } }
.devices { grid-template-columns: 1.6fr .7fr .5fr; }

/* How-it-works cycle */
.cycle { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 120px; max-width: 860px; margin: 30px auto 0; }
.cstep { text-align: center; }
.cstep .bubble { width: 190px; height: 190px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle, #e6f4ea 0%, #cfe9d7 100%); display: grid; place-items: center; overflow: hidden; }
.cstep .bubble img { width: 82%; }
.cstep h4 { font-size: 20px; margin-bottom: 4px; }
.cstep p { color: var(--muted); font-size: 15px; max-width: 300px; margin: 0 auto; }
.c1 { grid-column: 1; grid-row: 1; } .c2 { grid-column: 2; grid-row: 1; }
.c4 { grid-column: 1; grid-row: 2; } .c3 { grid-column: 2; grid-row: 2; }
.cycle .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); width: 150px; height: 150px; border-radius: 50%; background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.4); display: grid; place-items: center; text-align: center; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent2); font-size: 15px; line-height: 1.3; }
@media (max-width: 720px) {
  .cycle { grid-template-columns: 1fr; gap: 26px; }
  .c1, .c2, .c3, .c4 { grid-column: 1; grid-row: auto; }
  .c3 { order: 3; } .c4 { order: 4; }
  .cycle .center { position: static; transform: none; margin: 0 auto; order: 5; }
}

/* V3 */
.v3-hero { text-align: center; padding: 90px 0 30px; }
.v3-hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; margin: 14px 0 18px; letter-spacing: -.02em; }
.v3-hero .lead { margin: 0 auto; }
.stats { display: flex; justify-content: center; gap: 46px; margin: 30px 0 8px; }
.stats b { display: block; font-size: 30px; }
.stats span { color: var(--muted); font-size: 14px; }
.dev4 { display: grid; grid-template-columns: 2.1fr .85fr .72fr .72fr; gap: 22px; align-items: end; }
.dev4 figure { margin: 0; text-align: center; }
.dev4 figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.dev4 figcaption b { display: block; color: var(--fg); font-size: 15px; }
.d-mac img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.d-phone img { border-radius: 26px; border: 6px solid #1b1d22; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.watch { position: relative; width: 100%; max-width: 190px; margin: 0 auto; }
.watch .band { height: 46px; margin: 0 16%; background: linear-gradient(180deg, #2f5a3f, #24452f); }
.watch .band.top { border-radius: 14px 14px 0 0; }
.watch .band.bottom { border-radius: 0 0 14px 14px; }
.watch .case { background: #111; border: 7px solid #2b2d31; border-radius: 30%/26%; padding: 6px; aspect-ratio: 416/496; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.watch .case img { width: 100%; height: 100%; object-fit: cover; border-radius: 26%/22%; }
.watch .crown { position: absolute; right: -5px; top: 42%; width: 9px; height: 26px; border-radius: 4px; background: #3a3c40; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; text-align: center; }
.row4 img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle, #e6f4ea, #cfe9d7); padding: 8px; }
.row4 em { display: block; font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.row4 h4 { font-size: 17px; margin-bottom: 4px; }
.row4 p { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .dev4 { grid-template-columns: 1fr 1fr 1fr; } .d-mac { grid-column: 1 / -1; }
  .row4 { grid-template-columns: 1fr 1fr; } .stats { gap: 26px; }
}
.watch .case.face { padding: 2px; } .watch .case.face img { object-fit: contain; border-radius: 16%/13%; background: #000; }
.dev4 figcaption small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }

/* Set it up your way */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-top: 26px; }
.tools figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools img { width: 100%; height: 420px; object-fit: cover; object-position: top; background: #1e1f22; }
.tools figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: 15px; }
.tools figcaption strong { display: block; color: var(--fg); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 820px) { .tools { grid-template-columns: 1fr; } .tools img { height: auto; max-height: 520px; } }
/* line up all devices on one baseline */
.dev4 figcaption { min-height: 66px; }
.watch .case.face img { object-fit: cover; border-radius: 22%/18%; }
/* case follows the screen image: never crop the watch screen */
.watch .case { aspect-ratio: auto; }
.watch .case img, .watch .case.face img { height: auto; display: block; object-fit: initial; }
/* Tried Before card: a green banner picture; the card is not a link yet */
.app-card .thumb.tried-thumb { background: #103a2c; }
.app-card .thumb.tried-thumb img { height: 100%; width: 100%; object-fit: cover; display: block; }
.app-card.soon { cursor: default; }
.app-card.soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
