:root {
  --brand: #1777F2;
  --brand-dark: #0B5ED0;
  --brand-light: #5FA8FF;
  --ink: #0B1220;
  --muted: #5B6474;
  --faint: #8A93A2;
  --surface: #F5F7FA;
  --line: #E6E9EE;
  --deep: #061B33;
  --deep-card: #0B2846;
  --shell: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 16px 0 0;
}

.store-btn img { height: 56px; width: auto; display: block; }

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark img { width: 38px; height: 38px; border-radius: 10px; display: block; }
.wordmark span { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: rgba(255,255,255,0.82); font-size: 14px; }
.nav a:hover { color: #fff; }
.nav .cta {
  color: var(--ink);
  background: #fff;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav .cta:hover { color: var(--ink); background: rgba(255,255,255,0.88); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(23,119,242,0.95) 0%, rgba(15,74,158,0.95) 45%, var(--deep) 100%);
  padding-bottom: 90px;
}

.hero-copy { text-align: center; padding-top: 56px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2.6px;
  margin: 26px 0 0;
  text-wrap: balance;
}

.hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.5;
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-actions { display: flex; justify-content: center; margin-top: 34px; }

.hero-rating {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 16px 0 0;
}
.hero-rating strong { color: #fff; font-weight: 700; }

/* phone + floating logos */

.stage { position: relative; margin-top: 52px; }

.phone {
  width: 283px;
  margin: 0 auto;
  padding: 10px;
  background: #0B0B0D;
  border-radius: 52px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.phone img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top;
  border-radius: 42px;
  display: block;
}

.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters > div { position: absolute; animation: floaty 7s ease-in-out infinite; }

.chip {
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 40px rgba(3,20,45,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip.icon { width: 84px; height: 84px; }
.chip.icon img { width: 46px; height: 46px; }

.f1 { left: 10%; top: 8%; }
.f2 { left: 19%; top: 44%; animation-delay: -1.2s; }
.f3 { left: 8%; top: 76%; animation-delay: -3s; }
.f4 { right: 10%; top: 14%; animation-delay: -2s; }
.f5 { right: 13%; top: 62%; animation-delay: -0.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* compact logo strip shown instead of floaters on narrow screens */
.logo-strip { display: none; }

/* ---------- supported sites ---------- */

.sites { padding: clamp(64px, 9vw, 110px) 0; }
.sites .intro { max-width: 720px; }
.sites .intro p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 18px 0 0; }

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.site {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 24px;
  min-height: 88px;
}
.site img { width: 44px; height: 44px; }
.site span { font-size: 17px; font-weight: 600; }
.site.more {
  justify-content: center;
  background: none;
  border: 1px dashed #C9D1DC;
  color: var(--faint);
  font-size: 16px;
  font-weight: 600;
}

/* ---------- library ---------- */

.library { background: var(--surface); padding: clamp(64px, 9vw, 110px) 0; }
.library .split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.library p.lede { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 18px 0 0; max-width: 520px; }

.library-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.library-shot::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,119,242,0.22) 0%, rgba(23,119,242,0) 70%);
}
.library-shot img {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(11,18,32,0.22));
}

.points { list-style: none; padding: 0; margin: 34px 0 0; }
.points li { padding: 18px 0; border-top: 1px solid #DDE3EB; }
.points li:last-child { border-bottom: 1px solid #DDE3EB; }
.points b { display: block; font-size: 16px; font-weight: 700; }
.points span { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- background player ---------- */

.background-player {
  background: var(--deep);
  color: #fff;
  padding: clamp(64px, 9vw, 110px) 0;
}
.background-player .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.background-player .eyebrow { color: var(--brand-light); }
.background-player p.lede {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 480px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
}
.stack div { background: var(--deep-card); padding: 20px 24px; }
.stack b { font-size: 16px; font-weight: 700; }
.stack p { color: rgba(255,255,255,0.62); font-size: 15px; margin: 4px 0 0; }

.lockscreen { display: flex; justify-content: center; }
.lockscreen img {
  width: 330px;
  height: auto;
  display: block;
  filter: drop-shadow(0 34px 70px rgba(0,0,0,0.55));
}

/* ---------- features ---------- */

.features { padding: clamp(64px, 9vw, 110px) 0; }
.features .section-title { text-align: center; margin-top: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.feature { border-top: 2px solid var(--brand); padding-top: 22px; }
.feature b { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }

/* ---------- closing cta ---------- */

.closer { background: var(--brand); padding: clamp(64px, 8vw, 100px) 32px; text-align: center; }
.closer img.mark { width: 76px; height: 76px; border-radius: 20px; display: block; margin: 0 auto; }
.closer h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 26px 0 0;
}
.closer p { color: rgba(255,255,255,0.82); font-size: 19px; margin: 14px 0 0; }
.closer .hero-actions { margin-top: 30px; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); padding: 44px 0; }
.site-footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .former { display: flex; align-items: center; gap: 12px; }
.site-footer .former img { width: 26px; height: 26px; border-radius: 7px; opacity: 0.5; display: block; }
.site-footer span { color: #6C7279; font-size: 13px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: #9AA3B2; font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 18px; }
  .nav a:not(.cta) { display: none; }

  .floaters { display: none; }
  .logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
  }
  .logo-strip img { width: 34px; height: 34px; }

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

  .library .split { grid-template-columns: 1fr; }
  .library p.lede { max-width: none; }
  .library-shot img { max-width: min(280px, 68vw); }
  .library-shot::before { width: 300px; height: 300px; }

  .background-player .split { grid-template-columns: 1fr; gap: 44px; }
  .background-player p.lede { max-width: none; }
  .lockscreen img { width: min(280px, 70vw); }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 64px; }
  .hero h1 { letter-spacing: -1.4px; }
  .site-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone { width: min(240px, 70vw); border-radius: 44px; }
  .phone img { height: 460px; border-radius: 36px; }
  .site-footer .row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .floaters > div { animation: none; }
}

/* ---------- article pages ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar .masthead { padding-top: 20px; padding-bottom: 20px; }
.topbar .wordmark span { color: var(--ink); }
.topbar .nav a { color: var(--muted); }
.topbar .nav a:hover { color: var(--ink); }
.topbar .nav .cta { color: #fff; background: var(--brand); }
.topbar .nav .cta:hover { color: #fff; background: var(--brand-dark); }

.article { padding: 56px 0 96px; }
.article .shell { max-width: 780px; }

.article h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin: 18px 0 0;
}
.article .standfirst {
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  margin: 22px 0 0;
}
.article .byline { color: var(--faint); font-size: 14px; margin: 26px 0 0; }

.prose { margin-top: 44px; }
.prose h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin: 52px 0 0;
  scroll-margin-top: 24px;
}
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 0; }
.prose p { font-size: 17px; line-height: 1.7; color: #2A3342; margin: 16px 0 0; }
.prose ul, .prose ol { font-size: 17px; line-height: 1.7; color: #2A3342; padding-left: 22px; margin: 16px 0 0; }
.prose li { margin-top: 8px; }
.prose strong { font-weight: 700; color: var(--ink); }

.prose .takeaway {
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 28px 0 0;
}
.prose .takeaway p { margin: 0; }

.table-scroll { overflow-x: auto; margin: 26px 0 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
.prose th, .prose td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.prose th { font-weight: 700; color: var(--ink); background: var(--surface); }
.prose td { color: #2A3342; }

.article-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: 22px;
  padding: 28px 32px;
  margin: 56px 0 0;
}
.article-cta div { flex: 1 1 260px; }
.article-cta b { display: block; font-size: 18px; }
.article-cta p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
