:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg-raised: #111111;
  --panel: #161616;
  --panel-strong: #1f1f1f;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7f7;
  --muted: #b7bebf;
  --subtle: #7f898b;
  --cyan: #00ffff;
  --blue: #0000ff;
  --blue-soft: #1e6bff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --page-gutter: 28px;
  --section-y: 72px;
  --section-y-compact: 48px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(30, 107, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #0b1020 0%, #090d14 52%, #06070b 100%);
}

img,
svg {
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 16, 32, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  padding: 10px 12px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-links a.active {
  background: #ffffff;
  color: #050505;
}

/* -------- Layout -------- */
.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.container-narrow {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

main {
  display: block;
}

section {
  padding: var(--section-y) 0;
}

.content-section {
  padding-top: var(--section-y-compact);
}

/* -------- Hero -------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100svh - 63px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) var(--page-gutter) clamp(54px, 7vw, 84px);
}

.hero-copy {
  min-width: 0;
}

.hero .app-icon {
  width: clamp(82px, 11vw, 128px);
  height: clamp(82px, 11vw, 128px);
  margin-bottom: 22px;
  border-radius: 28%;
  box-shadow: 0 18px 54px rgba(0, 255, 255, 0.22);
}

.hero-kicker,
.section-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0 -0.045em;
  color: var(--text);
  font-size: clamp(64px, 15vw, 164px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-wrap: balance;
}

.hero .tagline {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 650;
  line-height: 1.28;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1;
  touch-action: manipulation;
}

.button:hover {
  transform: translateY(-1px);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.launch-note {
  display: flex;
  align-items: center;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.product-scene {
  position: relative;
  min-height: clamp(420px, 50vw, 580px);
  perspective: 1200px;
}

.phone-shell {
  position: absolute;
  right: clamp(8px, 6vw, 72px);
  top: -14px;
  width: min(350px, 72vw);
  transform: rotateY(-14deg) rotateX(4deg);
}

.iphone-preview {
  width: 100%;
  height: auto;
}

.watch-shell {
  position: absolute;
  left: -18px;
  bottom: 16px;
  width: clamp(154px, 17vw, 214px);
  transform: rotateY(18deg) rotateZ(-5deg);
}

.watch-preview {
  width: 300%;
  height: auto;
  transform: translateX(-33.35%);
}

/* -------- Sections -------- */
.section-eyebrow {
  color: var(--cyan);
}

h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.section-intro {
  max-width: 690px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* -------- Feature list -------- */
.feature-section {
  border-top: 1px solid var(--line);
  padding-top: var(--section-y-compact);
  padding-bottom: var(--section-y);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.feature-card:hover {
  border-color: rgba(94, 255, 252, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transform: translateY(-2px);
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.35), rgba(94, 255, 252, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--cyan);
}

.feature-card p {
  font-size: 15px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.launch-section {
  padding-top: var(--section-y-compact);
  padding-bottom: calc(var(--section-y) + 8px);
}

/* -------- Page header (support/privacy) -------- */
.page-header {
  padding-top: var(--section-y);
  padding-bottom: 0;
}

.page-header h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}

.page-header .lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  text-wrap: pretty;
}

.meta {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.compact-heading {
  margin-bottom: 18px;
  font-size: 24px;
}

/* -------- Content prose -------- */
.prose h2 {
  margin-top: 42px;
  font-size: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
  color: var(--text);
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 750;
}

/* -------- FAQ -------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(0, 255, 255, 0.32);
}

.faq summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 750;
  list-style: none;
  touch-action: manipulation;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
  transition: transform 240ms ease, color 240ms ease;
}

.faq details[data-expanded="true"] summary::after,
.faq details[open]:not([data-faq-ready]) summary::after {
  color: var(--cyan);
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq details[data-faq-ready] .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 220ms ease;
}

.faq details[data-faq-ready] .faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq details[data-faq-ready] .faq-answer-inner p {
  padding-top: 0;
}

.faq details[data-expanded="true"] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.faq details[data-animating="closing"] .faq-answer {
  opacity: 0;
  transform: translateY(-4px);
}

/* -------- Contact card -------- */
.contact-card {
  margin-top: 32px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 255, 0.18), rgba(0, 255, 255, 0.07));
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.contact-card p {
  margin: 0 0 14px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  padding: 10px 14px;
}

/* -------- Footer -------- */
.footer {
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13px;
  padding: 40px var(--page-gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.footer .footer-links a {
  color: var(--muted);
  font-size: 14px;
}

/* -------- Animations -------- */
.js .page-reveal .hero .app-icon,
.js .page-reveal .hero .hero-kicker,
.js .page-reveal .hero h1,
.js .page-reveal .hero .tagline,
.js .page-reveal .hero .hero-actions,
.js .page-reveal .hero .launch-note,
.js .page-reveal .hero .product-scene,
.js .page-reveal > main > .container > .section-eyebrow,
.js .page-reveal > main > .container > h2,
.js .page-reveal > main > .container > .section-intro,
.js .page-reveal .feature-card,
.js .page-reveal .page-header > h1,
.js .page-reveal .page-header > .lede,
.js .page-reveal .page-header > .meta,
.js .page-reveal main > section > h2,
.js .page-reveal main > section > h3,
.js .page-reveal main > section > p,
.js .page-reveal main > section > ul,
.js .page-reveal main > section > .faq > details,
.js .page-reveal main > section > .contact-card,
.js .page-reveal > .footer {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.js .page-reveal .hero .app-icon {
  transform: translateY(22px) scale(0.96);
}

.js .page-reveal .hero .product-scene {
  transform: translateY(28px) scale(0.96);
}

.js.page-ready .page-reveal .reveal-item {
  animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .product-scene {
    min-height: 540px;
  }

  .phone-shell {
    left: 50%;
    right: auto;
    transform: translateX(-42%) rotateY(-10deg) rotateX(3deg);
  }

  .watch-shell {
    left: max(0px, calc(50% - 245px));
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: 20px;
    --section-y: 56px;
    --section-y-compact: 36px;
  }

  .nav {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    width: auto;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    padding: 9px 8px;
    white-space: nowrap;
  }

  .nav-brand {
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(58px, 22vw, 96px);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero .app-icon,
  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
  }

  .launch-note {
    justify-content: center;
  }

  .button {
    width: auto;
  }

  .product-scene {
    min-height: 430px;
  }

  .phone-shell {
    width: min(246px, 68vw);
    transform: translateX(-44%) rotateY(-7deg) rotateX(2deg);
  }

  .watch-shell {
    bottom: 34px;
    left: 2px;
    width: 126px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }
}

@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;
    transition-duration: 0.01ms !important;
  }

  .js .page-reveal .hero .app-icon,
  .js .page-reveal .hero .hero-kicker,
  .js .page-reveal .hero h1,
  .js .page-reveal .hero .tagline,
  .js .page-reveal .hero .hero-actions,
  .js .page-reveal .hero .launch-note,
  .js .page-reveal .hero .product-scene,
  .js .page-reveal > main > .container > .section-eyebrow,
  .js .page-reveal > main > .container > h2,
  .js .page-reveal > main > .container > .section-intro,
  .js .page-reveal .feature-card,
  .js .page-reveal .page-header > h1,
  .js .page-reveal .page-header > .lede,
  .js .page-reveal .page-header > .meta,
  .js .page-reveal main > section > h2,
  .js .page-reveal main > section > h3,
  .js .page-reveal main > section > p,
  .js .page-reveal main > section > ul,
  .js .page-reveal main > section > .faq > details,
  .js .page-reveal main > section > .contact-card,
  .js .page-reveal > .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .feature-card:hover,
  .button:hover {
    transform: none;
  }
}
