:root {
  color-scheme: dark;
  --navy: #071528;
  --navy-soft: #0c213a;
  --surface: #102944;
  --surface-raised: #153654;
  --blue: #54a8ff;
  --blue-strong: #1977e9;
  --yellow: #ffd64d;
  --text: #f7fbff;
  --muted: #a9bad0;
  --line: rgba(190, 218, 247, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 9%, rgba(48, 132, 223, 0.17), transparent 27rem),
    var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
}

img { display: block; max-width: 100%; }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand { min-height: 44px; }
.brand img, .footer-brand img { border-radius: 22%; }

nav { display: flex; gap: 8px; }
nav a, .footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover, .footer-links a:hover { color: var(--text); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(30px, 6vw, 92px);
  padding: 72px 0 54px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(56px, 7.1vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.067em;
}

.hero-lede {
  max-width: 630px;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.store-badge {
  min-width: 178px;
  min-height: 58px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 20px 10px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 14px;
  background: var(--text);
  color: var(--navy);
  font-size: 21px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.store-kicker { margin-bottom: 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.platform-note { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.hero-visual { position: relative; min-height: 610px; display: grid; place-items: center; }
.code-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(46, 142, 244, .25); filter: blur(70px); }
.device-shot-ipad {
  position: relative;
  width: min(620px, 92%);
  aspect-ratio: 1376 / 1032;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 42px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(1.5deg);
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(26, 78, 124, .42), rgba(12, 33, 58, .65));
}
.trust-strip p { margin: 0; color: var(--muted); line-height: 1.55; }
.trust-strip strong { color: var(--text); }
.trust-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 900; }

.features { padding: 132px 0; }
.labs { padding: 0 0 132px; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.048em; }
.section-heading > p:last-child, .showcase-copy > p { color: var(--muted); font-size: 18px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 250px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 31, 54, .62); }
.feature-grid article:last-child { grid-column: 1 / -1; min-height: 210px; }
.feature-number { color: var(--yellow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
h3 { margin: 42px 0 12px; font-size: 24px; letter-spacing: -.025em; }
.feature-grid p { margin: 0; max-width: 470px; color: var(--muted); line-height: 1.65; }
.feature-grid code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: var(--text); background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; }

.ipad-showcase {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  padding: 80px clamp(24px, 5vw, 68px);
  margin-bottom: 132px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, var(--navy-soft), #0b1c30);
  overflow: hidden;
}
.showcase-copy ul { margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); }
.showcase-copy li { padding: 12px 0 12px 24px; border-top: 1px solid var(--line); position: relative; }
.showcase-copy li::before { content: "→"; position: absolute; left: 0; color: var(--yellow); }
.ipad-frame { padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: #050a11; box-shadow: 0 35px 75px rgba(0,0,0,.38); transform: perspective(1200px) rotateY(-3deg); }
.ipad-frame img { border-radius: 18px; }

.final-cta {
  min-height: 260px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 32px;
  background: var(--yellow);
  color: var(--navy);
}
.final-cta img { border-radius: 22%; box-shadow: 0 14px 28px rgba(7,21,40,.22); }
.final-cta .eyebrow { color: #594b00; }
.store-badge-light { border-color: var(--navy); background: var(--navy); color: var(--text); box-shadow: none; }

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; }

.policy-main { max-width: 820px; padding: 86px 0 120px; }
.policy-main h1 { font-size: clamp(48px, 7vw, 76px); }
.policy-meta { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.policy-content { margin-top: 56px; }
.policy-content h2 { margin: 50px 0 12px; font-size: 26px; letter-spacing: -.025em; }
.policy-content p { color: var(--muted); font-size: 17px; line-height: 1.78; }
.policy-content a { color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }

.not-found { min-height: calc(100vh - 240px); display: grid; place-content: center; text-align: center; }
.not-found img { margin: 0 auto 24px; border-radius: 22%; }
.not-found h1 { font-size: clamp(46px, 8vw, 84px); }
.not-found p { color: var(--muted); font-size: 18px; }
.home-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; padding: 0 22px; border-radius: 12px; background: var(--yellow); color: var(--navy); font-weight: 750; text-decoration: none; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 550px; }
  .ipad-showcase { grid-template-columns: 1fr; }
  .ipad-frame { transform: none; }
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta .store-badge { grid-column: 1 / -1; justify-self: start; }
  footer { grid-template-columns: 1fr auto; padding: 28px 0; }
  footer > p { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 72px; }
  nav a { padding: 0 9px; }
  nav a:first-child { display: none; }
  .hero { min-height: auto; padding-top: 58px; gap: 24px; }
  h1 { font-size: clamp(50px, 15vw, 68px); }
  .hero-lede { font-size: 17px; line-height: 1.55; }
  .hero-visual { min-height: 500px; }
  .device-shot-ipad { width: 268px; border-radius: 18px; }
  .trust-strip { align-items: flex-start; padding: 20px; }
  .features { padding: 96px 0; }
  .labs { padding: 0 0 96px; }
  .feature-grid { grid-template-columns: 1fr; }
  .ipad-showcase { width: calc(100% + 12px); margin-left: -6px; padding: 54px 18px; border-radius: 26px; }
  .final-cta { grid-template-columns: 1fr; justify-items: start; padding: 36px 28px; }
  .final-cta .store-badge { grid-column: auto; }
  footer { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .footer-links { order: 3; width: 100%; }
  .footer-links a { padding-left: 0; padding-right: 22px; }
  footer > p { margin: 0; }
}

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