/* === Tokens ============================================================ */
:root {
  --brand-1: #14A1FD;
  --brand-2: #0063E2;
  --brand-3: #1A73E8;
  --brand-deep: #001F4D;

  --bg: #FFFFFF;
  --bg-soft: #F5F8FF;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #E5EAF2;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow:    0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(0, 31, 77, .18);

  --gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);

  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* === Reset (light) ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; padding: .12em .36em; background: #EEF3FB; border-radius: 6px; }

/* === Layout helpers ==================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; font-weight: 700; }
.section-head p  { color: var(--ink-3); font-size: 17px; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-2); padding: 6px 12px; border-radius: 999px;
  background: rgba(20, 161, 253, .1);
}
.eyebrow-light { background: rgba(255,255,255,.18); color: #fff; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* === Buttons =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 12px 24px rgba(0, 99, 226, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(0, 99, 226, .42); }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light   { background: #fff; color: var(--brand-2); box-shadow: 0 12px 24px rgba(0, 31, 77, .25); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* === Nav =============================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--brand-2); }
.nav-cta {
  padding: 10px 18px; border-radius: 10px;
  background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 14px rgba(0, 99, 226, .3);
  transition: transform .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

/* === Hero ============================================================== */
.hero { position: relative; padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 100px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 161, 253, .22), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(0, 99, 226, .18), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F7FF 100%);
  z-index: -1;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -.025em;
  font-weight: 800; margin: 18px 0 18px;
}
.hero-copy .lede { color: var(--ink-2); font-size: 18px; max-width: 56ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-3); font-size: 14px; }
.hero-bullets li { padding-left: 22px; position: relative; }
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(20, 161, 253, .15);
}

/* Phone stack */
.hero-art { position: relative; min-height: 520px; }
.phone-stack { position: relative; width: 100%; height: 100%; }
.phone {
  position: absolute; border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
  background: #fff;
}
.phone-front { width: 64%; left: 18%; top: 0; z-index: 3; transform: rotate(-2deg); }
.phone-back  { width: 56%; left: -2%; top: 60px; z-index: 2; transform: rotate(-9deg); opacity: .92; }
.phone-side  { width: 54%; right: -4%; top: 90px; z-index: 1; transform: rotate(7deg); opacity: .88; }

/* === Features ========================================================== */
.features-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(20, 161, 253, .35); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(20,161,253,.12), rgba(0,99,226,.18));
  color: var(--brand-2);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.feature-card p  { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }

/* === Screenshots ======================================================= */
.shots-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; background: #F2F7FF; }
.shot figcaption {
  padding: 14px 18px;
  font-size: 14px; color: var(--ink-3);
  border-top: 1px solid var(--line);
  text-align: center;
}
.shot-wide { grid-column: span 2; }
@media (max-width: 720px) { .shot-wide { grid-column: span 1; } }

/* === Download ========================================================== */
.section-download { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.download-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background: var(--gradient);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 30px 70px rgba(0, 31, 77, .35);
}
.download-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(400px 260px at 0% 100%, rgba(0,0,0,.15), transparent 60%);
  pointer-events: none;
}
.download-copy { position: relative; }
.download-copy h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; font-weight: 700; }
.download-copy p  { color: rgba(255,255,255,.85); margin: 0 0 28px; font-size: 17px; max-width: 50ch; }
.download-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sysreq { font-size: 13px; color: rgba(255,255,255,.7); margin: 0; }
.download-art { position: relative; display: grid; place-items: center; }
.download-art img {
  width: min(280px, 100%); height: auto;
  border-radius: 56px;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.25));
  transform: rotate(-4deg);
}

/* === Footer ============================================================ */
.footer { background: #0B1424; color: #B8C2D2; padding: 56px 0 40px; }
.footer-inner { display: grid; gap: 14px; place-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand img { border-radius: 8px; }
.footer-credit { margin: 6px 0 0; color: #fff; opacity: .85; letter-spacing: .04em; }
.footer-credit strong { font-weight: 600; }
.footer-mini { margin: 0; font-size: 13px; opacity: .5; }

/* === Reveal-on-scroll ================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* === Responsive ======================================================== */
@media (max-width: 940px) {
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-bullets  { justify-self: center; text-align: left; }
  .hero-cta      { justify-content: center; }
  .hero-art      { min-height: 460px; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-cta  { justify-content: center; }
  .download-art  { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
