/* ==========================================================================
   Synodes Design System — synodes.io
   Light + Dark themes, system font stack, CSS custom properties
   ========================================================================== */

/* --- Design Tokens -------------------------------------------------------- */
:root {
  --color-bg: #FFFFFF;
  --color-surface: #F7F5FB;
  --color-text: #14111D;
  --color-muted: #615B70;
  --color-border: #E7E3F0;
  --color-accent: #7624F4;
  --color-accent-hover: #5E14CE;
  --color-on-accent: #FFFFFF;
  --color-accent-subtle: rgba(118, 36, 244, 0.08);

  --shadow-sm: 0 1px 2px rgba(20, 17, 29, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 17, 29, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 17, 29, 0.12);
  --shadow-glow: 0 0 0 1px var(--color-accent), 0 8px 32px rgba(118, 36, 244, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

[data-theme="dark"] {
  --color-bg: #0B0B0F;
  --color-surface: #14141A;
  --color-text: #F6F4FA;
  --color-muted: #9B96A9;
  --color-border: #272432;
  --color-accent: #C8FF01;
  --color-accent-hover: #AFE000;
  --color-on-accent: #0B0B0F;
  --color-accent-subtle: rgba(200, 255, 1, 0.07);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px var(--color-accent), 0 8px 32px rgba(200, 255, 1, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0B0B0F;
    --color-surface: #14141A;
    --color-text: #F6F4FA;
    --color-muted: #9B96A9;
    --color-border: #272432;
    --color-accent: #C8FF01;
    --color-accent-hover: #AFE000;
    --color-on-accent: #0B0B0F;
    --color-accent-subtle: rgba(200, 255, 1, 0.07);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px var(--color-accent), 0 8px 32px rgba(200, 255, 1, 0.12);
  }
}

/* --- Reset & Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); }

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Utility -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 56px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
}
.btn-ghost:hover { color: var(--color-text); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-group.center { justify-content: center; }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--color-text); }
.nav-logo img, .nav-logo svg { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-text); }

.nav-links-mobile-only { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 1.1rem;
  color: var(--color-muted);
  transition: all 0.15s ease;
  line-height: 1;
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-accent); }

@media (max-width: 768px) {
  .nav-inner { height: 60px; }

  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }

  .nav-links-mobile-only { display: block; }

  .nav-hamburger { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { display: none; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: 80px 0 120px;
  overflow: hidden;
  position: relative;
}

/* Mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
}
[data-theme="dark"] .hero-mesh-grid { opacity: 0.12; }

.hero-mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.hero-mesh-glow--purple {
  width: 500px; height: 500px;
  background: #7624F4;
  top: -100px; right: -100px;
}
.hero-mesh-glow--green {
  width: 350px; height: 350px;
  background: #C8FF01;
  bottom: -80px; left: 10%;
}
[data-theme="dark"] .hero-mesh-glow { opacity: 0.08; }

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

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-content .hero-subhead {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Terminal mockup */
.hero-terminal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.term-window {
  width: 100%;
  max-width: 520px;
  background: #0d0d12;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-dot--red    { background: #FF5F57; }
.term-dot--yellow { background: #FFBD2E; }
.term-dot--green  { background: #28C840; }

.term-title { flex: 1; margin-left: 4px; }
.term-chip {
  background: rgba(40, 200, 64, 0.15);
  color: #28C840;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.term-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.term-line--prompt {
  color: #e0e0e0;
}
.term-line--response {
  color: #8888aa;
  padding-left: 4px;
}
.term-line--output {
  color: #6a6a80;
  padding-left: 4px;
}

.term-prompt { color: var(--color-accent); font-weight: 600; }
.term-id { color: #C8FF01; }
.term-time { color: #28C840; }
.term-env { color: #FFBD2E; }
.term-ok { color: #28C840; font-weight: 600; }

[data-theme="dark"] .term-prompt { color: #C8FF01; }

.term-cursor {
  display: inline-block;
  color: var(--color-accent);
  animation: blink-cursor 1.2s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .term-window { max-width: 100%; }
  .term-body { font-size: 0.72rem; }
}

/* --- Logo Strip ----------------------------------------------------------- */
.logo-strip {
  padding: 44px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.logo-strip-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.logo-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-strip-item {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-muted);
  opacity: 0.5;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.logo-strip-item:hover { opacity: 0.75; }
@media (max-width: 768px) {
  .logo-strip-row { gap: 24px; }
  .logo-strip-item { font-size: 0.95rem; }
}

/* --- Features Grid -------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* --- How It Works --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 32px 32px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* --- Pricing: Consumption Rates ------------------------------------------- */
.pricing-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.rate-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rate-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.rate-card--free {
  border-style: dashed;
  background: var(--color-accent-subtle);
}

.rate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--color-accent);
}

.rate-value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.rate-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.rate-detail {
  font-size: 0.8rem;
  color: var(--color-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .pricing-rates { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* --- Pricing: Calculator -------------------------------------------------- */
.calculator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.calculator-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
  text-align: center;
}
.calculator-sub {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-field {
  margin-bottom: 20px;
}
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.calc-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.calc-input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.calc-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: transparent;
  color: var(--color-text);
  min-width: 0;
}
.calc-input-wrapper input::-webkit-outer-spin-button,
.calc-input-wrapper input::-webkit-inner-spin-button { opacity: 0.5; }

.calc-suffix {
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  border-left: 1px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-surface);
  height: 100%;
  display: flex;
  align-items: center;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.calc-preset-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-right: 4px;
}
.calc-preset {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.calc-preset:hover, .calc-preset.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* Calculator result */
.calculator-result {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.calc-estimate-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.calc-estimate-value {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
}

.calc-estimate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.calc-breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.calc-breakdown-line span:last-child {
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
}
.calc-breakdown-line--free span:last-child {
  color: #22C55E;
}

.calc-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  opacity: 0.7;
  font-style: italic;
}

.pricing-footnote {
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .calculator { padding: 28px 20px; }
  .calculator-grid { grid-template-columns: 1fr; gap: 24px; }
  .calc-estimate-value { font-size: 2.2rem; }
}

/* --- Comparison Table ----------------------------------------------------- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead {
  background: var(--color-surface);
}
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.compare-table th:first-child { color: var(--color-muted); }

.compare-col-synodes {
  border-left: 1px solid var(--color-accent);
  background: var(--color-accent-subtle);
}
.compare-table thead .compare-col-synodes {
  color: var(--color-accent);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}
.compare-table .compare-col-synodes {
  color: var(--color-text);
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr {
  transition: background-color 0.15s ease;
}
.compare-table tbody tr:hover {
  background: var(--color-accent-subtle);
}

.cmp-check {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 6px;
}
.cmp-dash {
  color: var(--color-muted);
  opacity: 0.5;
  margin-right: 6px;
}

@media (max-width: 600px) {
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}

/* --- CTA ------------------------------------------------------------------ */
.cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.04;
  filter: blur(60px);
  pointer-events: none;
}
.cta h2 { margin-bottom: 12px; position: relative; }
.cta p { margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta .btn-group { position: relative; }

@media (max-width: 600px) {
  .cta { padding: 48px 24px; }
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img, .footer-brand svg { height: 26px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-muted);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Scroll Reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Theme Toggle Icons --------------------------------------------------- */
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark  { display: inline; }
[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-theme="dark"] .theme-toggle .icon-dark  { display: none; }