:root {
  color-scheme: dark;
  --brand-300: #7dd3fc;
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-950: #082f49;
  --surface-950: #07070c;
  --surface-900: #0a0a0f;
  --surface-800: #111118;
  --surface-700: #1a1a24;
  --surface-600: #22222e;
  --surface-500: #2c2c3a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #737373;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --ring: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(60rem 32rem at 80% -12rem, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(48rem 30rem at -10% 8rem, rgba(2, 132, 199, 0.1), transparent 60%),
    var(--surface-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.78);
  border-bottom: 1px solid var(--surface-600);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: white;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  box-shadow: 0 14px 36px rgba(2, 132, 199, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--surface-500);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand-500);
  background: rgba(14, 165, 233, 0.08);
  text-decoration: none;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(42rem 26rem at 30% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(42rem 26rem at 30% 20%, black, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--brand-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 10px var(--brand-400);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--surface-600);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8rem;
}

.chips li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--good);
}

.hero-note {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---------- App preview mock ---------- */

.app-preview {
  border-radius: 1.1rem;
  border: 1px solid var(--surface-600);
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.98), rgba(13, 13, 20, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.app-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--surface-600);
}

.app-preview-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--surface-500);
}

.app-preview-bar i:first-child {
  background: var(--bad);
}

.app-preview-bar i:nth-child(2) {
  background: var(--warn);
}

.app-preview-bar i:nth-child(3) {
  background: var(--good);
}

.app-preview-bar span {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.app-preview-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
}

.score-ring {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
}

.score-ring svg {
  display: block;
  transform: rotate(-90deg);
}

.score-ring .track {
  stroke: var(--surface-600);
}

.score-ring .value {
  stroke: url(#ring-gradient);
  stroke-linecap: round;
}

.score-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-ring-label strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-ring-label span {
  font-size: 0.68rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-bars {
  display: grid;
  gap: 0.8rem;
}

.score-bar {
  display: grid;
  gap: 0.3rem;
}

.score-bar header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.score-bar header strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.score-bar .bar {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--surface-600);
  overflow: hidden;
}

.score-bar .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
}

.app-preview-foot {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.4rem 1.4rem;
}

.issue-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-600);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--muted);
}

.issue-chip i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.issue-chip.warn i {
  background: var(--warn);
}

.issue-chip.good i {
  background: var(--good);
}

.issue-chip.bad i {
  background: var(--bad);
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

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

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

.panel,
.pricing-card,
.faq-item,
.download-card,
.step-card {
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.9), rgba(17, 17, 24, 0.9));
  border: 1px solid var(--surface-600);
  border-radius: var(--radius);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  position: relative;
  padding: 1.4rem;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--brand-300);
  font-weight: 700;
  font-size: 0.9rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Feature cards ---------- */

.panel {
  padding: 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.panel:hover {
  transform: translateY(-3px);
  border-color: var(--surface-500);
}

.panel-icon {
  display: grid;
  place-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 0.7rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--brand-300);
  font-size: 1.05rem;
}

.panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.checks {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.checks li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 0.62em;
  width: 0.36rem;
  height: 0.2rem;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------- Pricing ---------- */

.pricing-card {
  position: relative;
  padding: 1.75rem;
}

.pricing-card.pro {
  border-color: rgba(14, 165, 233, 0.45);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.45), rgba(17, 17, 24, 0.95));
  box-shadow: 0 20px 60px rgba(2, 132, 199, 0.18);
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}

.pricing-card.pro h3 {
  color: var(--brand-300);
}

.price {
  margin: 0.5rem 0 0.25rem;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.price-note {
  margin: 0 0 1.25rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: 1.4rem;
}

/* ---------- Download ---------- */

.download-card {
  padding: 2rem;
  background:
    radial-gradient(30rem 16rem at 90% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(26, 26, 36, 0.95), rgba(17, 17, 24, 0.95));
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.checksum {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-600);
  background: rgba(0, 0, 0, 0.3);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.install-card {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-600);
  background: rgba(255, 255, 255, 0.02);
}

.install-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.install-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

.install-card code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid var(--surface-600);
  background: rgba(0, 0, 0, 0.35);
  color: var(--brand-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  overflow-wrap: anywhere;
}

.warning {
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(120, 53, 15, 0.22);
  color: #fcd34d;
  font-size: 0.86rem;
}

.warning strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.15rem 1.3rem;
  border-left: 3px solid var(--brand-600);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--surface-600);
  padding: 2.5rem 0 3rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* ---------- Billing pages ---------- */

.billing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.billing-card {
  width: min(520px, 100%);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-600);
  background: var(--surface-800);
  text-align: center;
}

.billing-card h1 {
  margin-top: 0;
}

.billing-card p {
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .panel {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .grid-3,
  .steps,
  .grid-2,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 3.25rem 0 2.5rem;
  }

  .app-preview-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .app-preview-foot {
    flex-direction: column;
  }

  .site-header .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
  }
}
