:root {
  --bg: #041218;
  --bg-elevated: #0a1a28;
  --surface: #0f2438;
  --surface-hover: #152d45;
  --text: #f0f4f8;
  --text-soft: #c5d0dc;
  --muted: #7a8fa3;
  --accent: #3255e2;
  --accent-bright: #4d6ef5;
  --accent-glow: rgba(50, 85, 226, 0.35);
  --pin: #f5c518;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7b96ff;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(4, 18, 24, 0.82);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  color: var(--text);
  background: rgba(50, 85, 226, 0.18);
  border: 1px solid rgba(77, 110, 245, 0.35);
  margin-left: 0.25rem;
}

.site-nav .nav-cta:hover {
  background: rgba(50, 85, 226, 0.28);
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

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

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(245, 197, 24, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
  }
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pin);
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.22);
}

.eyebrow svg {
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 1.125rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, #ffffff 30%, #9eb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.button-primary:hover {
  color: #fff;
  box-shadow: 0 12px 36px rgba(50, 85, 226, 0.45);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button-disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}

.hero-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-note a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Browser frame */

.browser-frame {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #152536 0%, #0a1520 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:last-child { background: #28c840; }

.browser-url {
  flex: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame img {
  width: 100%;
}

/* ── Stats strip ────────────────────────────────────────────────────── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.stat {
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--bg-elevated);
}

.stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ── Features ───────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(50, 85, 226, 0.15);
  color: var(--accent-bright);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ── Steps ──────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 2.5rem;
}

.step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .step {
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
  }

  .step:nth-child(even) .step-copy {
    order: 2;
  }

  .step:nth-child(even) .step-media {
    order: 1;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pin);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.step-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.step-media {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.step-media img {
  width: 100%;
}

/* ── Install ────────────────────────────────────────────────────────── */

.install-panel {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(50, 85, 226, 0.12) 0%, transparent 50%),
    var(--bg-elevated);
}

.install-panel .section-header {
  margin-bottom: 0;
}

.install-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .install-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.install-steps li {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.install-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.install-steps span {
  font-size: 0.875rem;
  color: var(--muted);
}

.install-steps code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ── Feedback ───────────────────────────────────────────────────────── */

.feedback-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feedback-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(145deg, rgba(50, 85, 226, 0.1) 0%, transparent 55%),
    var(--bg-elevated);
}

.feedback-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feedback-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.975rem;
}

.feedback-card .button {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ── Privacy callout ────────────────────────────────────────────────── */

.privacy-callout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(40, 200, 128, 0.25);
  background: linear-gradient(135deg, rgba(40, 200, 128, 0.08), transparent);
}

@media (min-width: 640px) {
  .privacy-callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.privacy-callout p {
  margin: 0;
  color: var(--text-soft);
  max-width: 36rem;
}

.privacy-callout .button-secondary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Prose (privacy page) ───────────────────────────────────────────── */

.prose {
  max-width: 720px;
  padding: 2.5rem 0 3rem;
}

.prose h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.prose p,
.prose li {
  margin: 0.5rem 0;
  color: var(--text-soft);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}
