:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #14161a;
  --muted: #5d6573;
  --line: #e3e6eb;
  --brand: #3b6df0;
  --brand-ink: #ffffff;
  --dark: #0d0f13;
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f13; --bg-alt: #14171d; --ink: #f2f4f7; --muted: #9aa3b2; --line: #272b33;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.15; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--outline { border-color: var(--line); background: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--bg-alt); }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.nav__inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 22px; flex: 1; font-size: .95rem; }
.nav__links > a:not(.btn):hover { color: var(--brand); }
.nav__spacer { flex: 1; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: 80px 0 40px; background: linear-gradient(var(--bg-alt), var(--bg)); }
.hero__inner { text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -.03em; max-width: 16ch; margin: 0 auto .4em; }
.hero__sub { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* App mockup */
.mock { margin: 56px auto 0; max-width: 960px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,.14); overflow: hidden; text-align: left; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__body { display: grid; grid-template-columns: 200px 1fr; min-height: 340px; }
.mock__side { padding: 20px; border-right: 1px solid var(--line); background: var(--bg-alt); }
.mock__page { padding: 36px 8%; }
.line { height: 10px; border-radius: 5px; background: var(--line); margin: 0 0 14px; }
.line.center { margin-left: auto; margin-right: auto; }
.w30{width:30%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}

/* Social proof */
.proof { padding: 40px 0; text-align: center; }
.proof__label { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.proof__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; color: var(--muted); font-weight: 700; font-size: 1.1rem; opacity: .75; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-align: center; letter-spacing: -.02em; }
.section__sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 56px; }
.section__title + .grid, .section__title + .toggle { margin-top: 40px; }

/* Alternating features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.feature:last-child { margin-bottom: 0; }
.feature--reverse .feature__text { order: 2; }
.feature h3 { font-size: 1.8rem; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: 1.05rem; }
.ph { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px dashed var(--line); background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }

/* Grids / cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h4 { font-size: 1.05rem; margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); opacity: .15; margin-bottom: 16px; }

/* Testimonials */
.quote { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line); flex: none; }

/* Pricing */
.toggle { display: flex; width: max-content; margin: 0 auto 40px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.toggle__btn { border: 0; background: none; color: var(--ink); padding: 8px 20px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.toggle__btn small { color: var(--brand); font-weight: 600; }
.toggle__btn.is-active { background: var(--ink); color: var(--bg); }
.toggle__btn.is-active small { color: inherit; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.plan--featured { border-color: var(--brand); box-shadow: 0 12px 40px rgba(59,109,240,.15); }
.plan h3 { font-size: 1.2rem; }
.price { margin: 0 0 20px; }
.price .amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
.price .amount::before { content: "$"; font-size: 1.4rem; vertical-align: top; margin-right: 2px; }
.price small { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { text-align: center; }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* Final CTA */
.cta { background: var(--dark); color: #fff; text-align: center; padding: 88px 0; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.cta p { color: #aab2c0; margin: 0 0 28px; }

/* Footer */
.footer { background: var(--bg-alt); padding: 64px 0 24px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: .95rem; margin-bottom: 12px; }
.footer__grid a:not(.logo) { display: block; color: var(--muted); padding: 4px 0; }
.footer__grid a:not(.logo):hover { color: var(--ink); }
.footer__blurb { color: var(--muted); max-width: 30ch; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__bottom a { margin-left: 16px; }

/* Responsive */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 12px 0; }
  .nav__spacer { display: none; }
  .nav__links .btn { text-align: center; margin-top: 8px; }
  .feature, .grid--3, .footer__grid { grid-template-columns: 1fr; }
  .feature { gap: 28px; margin-bottom: 56px; }
  .feature--reverse .feature__text { order: 0; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
