:root {
  --navy-0: #050a18;
  --navy-1: #0a1430;
  --navy-2: #0f1d4a;
  --blue-1: #1a3a8a;
  --blue-2: #2862c8;
  --blue-3: #4a8cf0;
  --ink:    #0c1226;
  --ink-2:  #2a3550;
  --mute:   #6b7592;
  --line:   #e6eaf2;
  --line-2: #eef1f7;
  --paper:  #ffffff;
  --bg-soft:#f5f7fb;
  --green:  #2ecc71;
  --green-d:#1ea85b;
  --red:    #e8494e;
  --orange: #ff9a3c;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% -10%, #1d3782 0%, #0a1430 55%, #050a18 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-3); color: #fff; }

/* ============ Layout ============ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============ Topbar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(180deg, rgba(10,20,48,0.7), rgba(10,20,48,0.3));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.brand .name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .name span { color: rgba(255,255,255,0.55); font-weight: 500; margin-left: 6px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav .links { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: rgba(255,255,255,0.78); font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .cta {
  padding: 10px 18px; background: #fff; color: var(--ink);
  border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: 150ms;
}
.nav .cta:hover { background: var(--blue-3); color: #fff; }

/* ============ App Icon ============ */
.app-icon {
  border-radius: 22%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 28px rgba(15,30,90,0.55);
}
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: 30%;
  width: 700px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74,140,240,0.25) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-icon {
  width: 132px; height: 132px;
  margin: 0 auto 36px;
  position: relative;
}
h1.title {
  font-weight: 800;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: #eef2fb;
}
.hero-sub {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 150ms;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: #fff; color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--blue-3); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.32); }
.btn .arrow { transition: transform 180ms; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 28px;
  display: inline-flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 8px; box-shadow: 0 0 12px var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ============ Phones row ============ */
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0 120px;
  align-items: end;
}
.phones.n2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.phone-cell { text-align: left; min-width: 0; }
.phone-cell .caption {
  text-align: center;
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  margin-bottom: 28px; min-height: 54px;
}
.phone-cell .caption span { color: var(--blue-3); }

.phone {
  width: min(280px, 100%);
  background: #1a1a1a;
  border-radius: 42px;
  padding: 10px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 30px 60px -10px rgba(0,0,0,0.55),
    0 80px 100px -40px rgba(74,140,240,0.18);
  position: relative;
}
/* Real App Store screenshots; they carry their own status bar and Dynamic Island. */
.phone .screenshot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 32px;
  background: #f5f6fa;
}

/* ============ Section ============ */
.section { padding: 100px 0; position: relative; }
.section.alt {
  background: #fff;
  color: var(--ink);
  border-radius: 36px 36px 0 0;
  margin-top: 60px;
}
.section.alt-tail { background: #fff; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--blue-3); text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue-3); border-radius: 50%; }
.alt .eyebrow { color: var(--blue-2); }
.alt .eyebrow::before { background: var(--blue-2); }
.h2 {
  font-weight: 800;
  font-size: clamp(30px, 7vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: break-word;
  margin: 0 0 20px;
  max-width: 18ch;
}
.h2 span { color: var(--blue-3); }
.alt .h2 span { color: var(--blue-2); }
.lede {
  font-size: 18px; line-height: 1.55; max-width: 620px;
  color: rgba(255,255,255,0.72);
}
.alt .lede, .alt-tail .lede { color: var(--ink-2); }

/* ============ Feature grid ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.feat {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  transition: 200ms;
  min-height: 220px;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -16px rgba(20,40,90,0.14); border-color: var(--blue-3); }
.feat .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(40,98,200,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}
.feat .ico.g { background: linear-gradient(135deg, var(--green), var(--green-d)); box-shadow: 0 6px 16px rgba(30,168,91,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.o { background: linear-gradient(135deg, var(--orange), #d8731c); box-shadow: 0 6px 16px rgba(216,115,28,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.r { background: linear-gradient(135deg, var(--red), #b83438); box-shadow: 0 6px 16px rgba(184,52,56,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.p { background: linear-gradient(135deg, #8a6ed3, #5a4a9c); box-shadow: 0 6px 16px rgba(90,74,156,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.t { background: linear-gradient(135deg, #1d9eaa, #0e6e78); box-shadow: 0 6px 16px rgba(14,110,120,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat h3 { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; margin: 4px 0 0; line-height: 1.2; }
.feat p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ============ Download ============ */
.download {
  padding: 100px 28px 120px;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(74,140,240,0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-1), var(--navy-0));
  color: #fff;
  text-align: center;
}
.download .h2 {
  margin: 0 auto 20px;
  max-width: 22ch;          /* 16ch orphaned the last word of "…the App Store." */
  color: #fff;
}
.hero-icon.app-icon { margin-bottom: 32px; width: 104px; height: 104px; }
.download .h2 span { color: var(--blue-3); }
.download .lede { margin: 0 auto 40px; }
.platforms {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; max-width: 1080px; margin: 0 auto;
}
.platform {
  flex: 1 1 200px; min-width: 180px; max-width: 260px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border-radius: 14px; padding: 18px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  transition: 160ms;
  cursor: pointer;
}
.platform:hover { background: rgba(74,140,240,0.18); border-color: var(--blue-3); transform: translateY(-2px); }
.platform .pname { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.platform .psub { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55); }
.platform .gl {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-3), var(--blue-1));
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============ Footer ============ */
footer {
  padding: 48px 0 32px;
  background: var(--navy-0);
  color: rgba(255,255,255,0.6);
}
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer h5 { font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 14px; letter-spacing: -0.005em; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
footer ul a:hover { color: var(--blue-3); }
footer .colophon { font-size: 13px; line-height: 1.55; max-width: 34ch; }
footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; margin-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4);
}
footer .brand-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
footer .brand-mini .icon { width: 32px; height: 32px; border-radius: 9px; }
footer .brand-mini .name { font-weight: 800; color: #fff; font-size: 16px; }

@media (max-width: 980px) {
  .phones, .phones.n2 { grid-template-columns: 1fr; gap: 80px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 14px 16px; gap: 12px; }
  .brand .name span { display: none; }
  .nav .links { display: none; }
  .feat-grid, .platforms { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 3px;
  border-radius: 4px;
}
.section.alt :where(a, button):focus-visible { outline-color: var(--blue-2); }

html { scroll-behavior: smooth; }

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