/* ── Tokens (Light) ─────────────────────────────────── */
:root {
  --bg:             #f7f8fc;
  --bg-alt:         #eef1f8;
  --surface:        #ffffff;
  --surface-raised: #ffffff;
  --text:           #0c1222;
  --text-secondary: #525d78;
  --text-tertiary:  #8892a8;
  --border:         #dce1ed;
  --border-subtle:  #e9ecf4;

  --accent:         #6366f1;
  --accent-hover:   #4f46e5;
  --accent-soft:    #eef2ff;
  --accent-text:    #4338ca;
  --highlight:      #06d6a0;
  --highlight-soft: #ecfdf5;

  --shadow-sm:  0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-lg:  0 12px 40px rgba(15,23,42,0.08), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-xl:  0 20px 60px rgba(15,23,42,0.12), 0 8px 20px rgba(15,23,42,0.06);
  --shadow-glow: 0 0 0 3px rgba(99,102,241,0.15);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --content-max: 1140px;
  --header-h:    64px;

  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 40%, #f5f3ff 100%);
  --gradient-cta:  linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
  --gradient-btn:  linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --gradient-panel: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);

  --header-bg:   rgba(247,248,252,0.82);
  --section-alt-bg: linear-gradient(160deg, rgba(238,242,255,0.5) 0%, rgba(240,249,255,0.5) 100%);
  --footer-bg:   rgba(247,248,252,0.9);

  color-scheme: light;
}

/* ── Tokens (Dark) ──────────────────────────────────── */
[data-theme="dark"] {
  --bg:             #0b0f1a;
  --bg-alt:         #111827;
  --surface:        #1a1f2e;
  --surface-raised: #222838;
  --text:           #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #64748b;
  --border:         #2a3040;
  --border-subtle:  #1f2535;

  --accent:         #818cf8;
  --accent-hover:   #a5b4fc;
  --accent-soft:    rgba(99,102,241,0.12);
  --accent-text:    #a5b4fc;
  --highlight:      #34d399;
  --highlight-soft: rgba(6,214,160,0.1);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.4);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 3px rgba(129,140,248,0.2);

  --gradient-hero: linear-gradient(135deg, #0b0f1a 0%, #111827 40%, #0f172a 100%);
  --gradient-cta:  linear-gradient(135deg, #312e81 0%, #4338ca 50%, #1e3a5f 100%);
  --gradient-btn:  linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --gradient-panel: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);

  --header-bg:   rgba(11,15,26,0.85);
  --section-alt-bg: linear-gradient(160deg, rgba(17,24,39,0.6) 0%, rgba(15,23,42,0.6) 100%);
  --footer-bg:   rgba(11,15,26,0.9);

  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  width: min(var(--content-max), 90vw);
  margin: 0 auto;
}

/* ── Skip Link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.site-nav a:not(.btn) {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.938rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--accent-soft);
}

.site-nav a:not(.btn).is-active {
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: 600;
}

/* ── Theme Toggle ───────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-icon-sun,
.theme-icon-moon { display: none; }

[data-theme="light"] .theme-icon-moon,
:root:not([data-theme]) .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* ── Mobile Nav Toggle ──────────────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,214,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero {
  padding: 5rem 0 3.5rem;
  background: var(--gradient-hero);
  position: relative;
}

.page-hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
}

h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
}

p { margin: 0; }

.hero-copy,
.section-copy {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mini-points {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.mini-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.938rem;
}

.mini-points li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--highlight);
}

/* ── Hero Panel (Mock UI) ───────────────────────────── */
.hero-panel {
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  color: #e2e8f0;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #eab308; }
.dot:nth-child(3) { background: #22c55e; }

.panel-body { padding: 1.5rem; }

.panel-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: #f8fafc;
}

.panel-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.813rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  color: #cbd5e1;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

.panel-muted {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #64748b;
  font-size: 0.813rem;
  font-style: italic;
}

/* ── Sections ───────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--section-alt-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Card Grid ──────────────────────────────────────── */
.card-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card,
.feature-block,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.feature-block:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.2);
}

.card h3 {
  color: var(--text);
}

.card p,
.feature-block p,
.contact-card p {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.small {
  margin-top: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.contact-card a {
  color: var(--accent-text);
  font-weight: 600;
}

.section-copy a {
  color: var(--accent-text);
  font-weight: 600;
}

.auth-banner {
  background: var(--highlight-soft);
  border: 1px solid rgba(6, 214, 160, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.auth-banner-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.auth-banner p + p {
  margin-top: 0.65rem;
}

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

/* ── Steps ──────────────────────────────────────────── */
.steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-weight: 800;
  font-size: 0.813rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 50%;
}

.step h3 { margin-top: 1rem; }

.step p {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── CTA Box ────────────────────────────────────────── */
.section-cta { padding-top: 1rem; }

.cta-box {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 { color: #f8fafc; }

.cta-box p {
  color: #94a3b8;
  margin-top: 0.5rem;
  max-width: 44ch;
}

.cta-box .btn-primary {
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

/* ── Feature Layout (Features page) ─────────────────── */
.feature-layout,
.contact-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.feature-block ul,
.contact-card ul {
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-block li,
.contact-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-block li::before,
.contact-card li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ── SDK Section ────────────────────────────────────── */
.feature-sdk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.feature-sdk ul {
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-sdk li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-sdk li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--highlight);
}

.code-sample {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  border: 1px solid #1e293b;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
}

/* ── Pricing ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.1);
}

.price-card.featured:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99,102,241,0.2);
}

.badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--highlight) 0%, #2dd4bf 100%);
  color: #042f2e;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-card h2 {
  font-size: 1.35rem;
}

.price {
  margin-top: 0.75rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 1rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0;
}

.price-note {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.938rem;
}

.price-card ul {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.938rem;
}

.price-card li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(99,102,241,0.3);
}

.faq-item.is-open {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.faq-button {
  width: 100%;
  background: var(--surface);
  border: 0;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.faq-button:hover {
  background: var(--accent-soft);
}

.faq-button::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.125rem;
  font-weight: 400;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item.is-open .faq-button::after {
  content: "\2212";
  background: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid,
  .feature-sdk { grid-template-columns: 1fr; gap: 2.5rem; }

  .pricing-grid,
  .steps { grid-template-columns: 1fr; max-width: 480px; }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a:not(.btn) {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav .btn { width: 100%; margin-top: 0.5rem; }

  .hero { padding: 4.5rem 0 3.5rem; }
  .page-hero { padding: 4rem 0 2.5rem; }
  .section { padding: 3.5rem 0; }

  .card-grid,
  .feature-layout,
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .page-hero { padding: 3rem 0 2rem; }
  .section { padding: 2.5rem 0; }

  h1 { font-size: 1.75rem; }
  .hero-copy, .section-copy { font-size: 1rem; }

  .cta-box { padding: 2rem 1.5rem; }
  .price-card { padding: 1.5rem; }
}
