:root {
  --bg: #f6f5f2;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-border: rgba(15, 23, 42, 0.08);
  --ink: #121418;
  --muted: #58616f;
  --accent: #1d5cff;
  --accent-strong: #1546c2;
  --shadow: 0 24px 80px rgba(16, 20, 28, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(29, 92, 255, 0.09), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
ul {
  margin: 0;
}

.site-shell,
.subpage-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.12);
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.topnav a:hover,
.text-link:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  padding: 48px 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.2;
}

.lede,
.section-heading p,
.document-page p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy .lede {
  max-width: 58ch;
  margin-top: 20px;
}

.cta-row,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #08090c;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--surface-border);
  color: var(--ink);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

.app-store-badge {
  display: block;
  height: 56px;
  width: auto;
}

.hero-points,
.document-list {
  padding-left: 18px;
}

.hero-points {
  margin-top: 22px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.phone-frame {
  width: 100%;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(180deg, #15171b 0%, #050608 100%);
  box-shadow: 0 30px 100px rgba(10, 12, 17, 0.2);
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
}

.phone-frame-large {
  max-width: 420px;
  margin-left: auto;
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-grid .steps,
.feature-grid,
.instrument-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.instrument-card,
.trust-card,
.final-cta-card {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card,
.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.feature-card p,
.instrument-card p,
.card p {
  color: var(--muted);
}

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

.instrument-card {
  overflow: hidden;
  border-radius: 28px;
}

.instrument-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.instrument-card div {
  padding: 20px 22px 24px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.shot-card {
  margin: 0;
}

.shot-card .phone-frame {
  border-radius: 30px;
  padding: 10px;
}

.shot-card .phone-frame img {
  border-radius: 20px;
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
}

.trust-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18, 20, 24, 0.08);
}

.trust-metric {
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.trust-metric + .trust-metric {
  border-left: 1px solid var(--surface-border);
}

.metric-value {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  line-height: 0.95;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.final-cta-card {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding: 34px 36px;
  border-radius: 30px;
}

.final-cta-card p {
  max-width: 54ch;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 42px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.document-page {
  max-width: 840px;
  padding: 44px 0 72px;
}

.document-meta {
  margin-top: 14px;
}

.document-section {
  margin-top: 34px;
}

.document-section h2 {
  margin-bottom: 16px;
  font-size: 1.9rem;
}

.document-section h3 {
  margin-top: 18px;
}

.support-grid {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hero,
  .trust,
  .steps,
  .feature-grid,
  .instrument-grid,
  .support-grid,
  .screenshot-grid,
  .final-cta-card,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
  }

  .phone-frame-large {
    margin: 0 auto;
  }

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

  .final-cta-card,
  .footer {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .subpage-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    flex-direction: column;
    align-items: center;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding-top: 28px;
    gap: 22px;
  }

  .section {
    padding: 42px 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.7rem, 12vw, 4rem);
    line-height: 0.94;
  }

  h2 {
    line-height: 1.02;
  }

  .hero-copy,
  .section-heading,
  .trust-copy,
  .document-page {
    text-align: center;
  }

  .hero-copy .lede,
  .section-heading p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row,
  .inline-links {
    justify-content: center;
  }

  .cta-row .button,
  .inline-links .button {
    width: 100%;
  }

  .app-store-badge-link {
    width: 100%;
  }

  .app-store-badge {
    height: 52px;
  }

  .hero-points {
    margin-top: 18px;
    text-align: left;
  }

  .screenshot-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screenshot-grid::-webkit-scrollbar {
    display: none;
  }

  .shot-card {
    scroll-snap-align: center;
  }

  .shot-card .phone-frame {
    padding: 9px;
    border-radius: 26px;
  }

  .trust {
    gap: 18px;
  }

  .trust-card {
    grid-template-columns: 1fr;
    text-align: center;
    border-radius: 20px;
  }

  .trust-metric + .trust-metric {
    border-left: 0;
    border-top: 1px solid var(--surface-border);
  }

  .final-cta-card {
    padding: 26px 20px;
    text-align: center;
    justify-items: center;
  }

  .footer {
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
