/* ═══════════════════════════════════════════════════
   ZeeMSG — 2026 Premium Design System
   ═══════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-soft: #fafafa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-alt: rgba(245, 245, 250, 0.82);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-soft: #86868b;
  --accent: #0071e3;
  --accent-2: #2997ff;
  --accent-3: #64b5f6;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-glow: rgba(0, 113, 227, 0.2);
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff3b30;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --max-width: 1200px;
  --sans: "SF Pro Display", "SF Pro Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", "Fira Code", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #0a0a0a;
    --surface: rgba(28, 28, 30, 0.72);
    --surface-strong: rgba(36, 36, 38, 0.88);
    --surface-alt: rgba(44, 44, 46, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-soft: #86868b;
    --accent: #2997ff;
    --accent-2: #64b5f6;
    --accent-3: #5ac8fa;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --accent-glow: rgba(41, 151, 255, 0.25);
    --success: #30d158;
    --warning: #ffd60a;
    --danger: #ff453a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Manual theme overrides (JS toggle) */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: rgba(28, 28, 30, 0.72);
  --surface-strong: rgba(36, 36, 38, 0.88);
  --surface-alt: rgba(44, 44, 46, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-soft: #86868b;
  --accent: #2997ff;
  --accent-2: #64b5f6;
  --accent-3: #5ac8fa;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --accent-glow: rgba(41, 151, 255, 0.25);
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-soft: #fafafa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-alt: rgba(245, 245, 250, 0.82);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-soft: #86868b;
  --accent: #0071e3;
  --accent-2: #2997ff;
  --accent-3: #64b5f6;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-glow: rgba(0, 113, 227, 0.2);
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff3b30;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}

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

.theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Reset & Base ──────────────────────────────── */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

main a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
}

main a:not(.btn):hover {
  text-decoration: underline;
}

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

button, input, textarea, select {
  font: inherit;
}

/* ── Background Effects ────────────────────────── */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 10%, var(--accent-glow), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(90, 200, 250, 0.08), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(52, 199, 89, 0.05), transparent 30%);
  opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
  .bg-grid {
    opacity: 0.5;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.hero, .section, .footer {
  position: relative;
  z-index: 1;
}

/* ── Navigation ────────────────────────────────── */

.hero {
  padding: 20px 20px 24px;
}

.hero-compact {
  padding-bottom: 8px;
}

.nav {
  width: min(var(--max-width), 100%);
  margin: 0 auto 28px;
  padding: 10px 10px 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-logo, .footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-arrow {
  color: var(--accent-2);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 200ms ease;
}

.nav-toggle:hover {
  background: var(--accent-soft);
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 200ms ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 200ms ease, background 200ms ease;
}

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

.nav-links a.active {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: #fff;
  background: var(--accent-2);
}

.nav-pill {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

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

.terminal {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(52, 199, 89, 0.06), transparent 40%);
  pointer-events: none;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px 0;
}

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

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.title {
  margin-left: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-body {
  position: relative;
  padding: 32px 28px 40px;
}

/* ── Typography ────────────────────────────────── */

.prompt, .eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p { margin: 0; }

.sub, .lead {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.section {
  padding: 48px 20px;
}

.section-header,
.panel-narrow,
.footnote,
.faq-list,
.timeline,
.platform-grid,
.showcase-grid,
.visual-strip,
.legal-grid,
.support-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
}

/* ── Grid Layouts ──────────────────────────────── */

.grid, .split, .cta-grid, .features {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.split {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 32px;
}

.cta-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ── Cards ─────────────────────────────────────── */

.card, .feature, .panel, .cta-card, .visual-card,
.timeline-item, .faq-item, .legal-card, .support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.card:hover, .feature:hover, .visual-card:hover,
.timeline-item:hover, .support-card:hover, .legal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card, .cta-card, .visual-card, .timeline-item, .support-card {
  padding: 28px;
}

.feature, .panel, .legal-card, .faq-item {
  padding: 24px;
}

.card p, .feature p, .panel p, .cta-card p,
.timeline-item p, .legal-card p, .support-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Tags ──────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Lists ─────────────────────────────────────── */

.list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 14px 0 14px 28px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.list li:last-child {
  border-bottom: 0;
}

.list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* ── Panels ────────────────────────────────────── */

.panel-body {
  display: grid;
  gap: 12px;
}

.ok { color: var(--success); }
.warn { color: var(--warning); }

/* ── Buttons ───────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.cta-row-left {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.btn.ghost:hover {
  background: var(--surface-strong);
  box-shadow: var(--shadow-hover);
}

.btn[disabled], .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

/* ── Visual Cards & Showcase ───────────────────── */

.visual-strip, .showcase-grid, .platform-grid,
.legal-grid, .support-grid {
  display: grid;
  gap: 16px;
}

.visual-strip {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.visual-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  margin-bottom: 16px;
}

.visual-card h3, .timeline-item h3,
.platform-card h3, .support-card h3 {
  margin-bottom: 8px;
}

/* ── Metrics ───────────────────────────────────── */

.metric-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ── Timeline ──────────────────────────────────── */

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 72px;
}

.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── FAQ ───────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-cta-panel {
  margin-top: 24px;
}

/* ── Platform Cards ────────────────────────────── */

.platform-grid, .legal-grid, .support-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.platform-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.platform-chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.platform-chip.muted {
  background: var(--surface-alt);
  color: var(--text-soft);
}

/* ── Invite / Code Blocks ──────────────────────── */

.invite-code {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* ── Utility ───────────────────────────────────── */

.mono { font-family: var(--mono); }

.hint, .footnote {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footnote {
  margin-top: 18px;
}

/* ── Compare Table ─────────────────────────────── */

.compare-wrap {
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-table tbody td {
  background: var(--surface);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child, .compare-feature {
  width: 30%;
  font-weight: 600;
  color: var(--text);
}

.compare-head { position: relative; }

.compare-tag, .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

.compare-tag {
  margin-left: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.chip { border: 1px solid transparent; }
.chip-yes { background: rgba(52, 199, 89, 0.1); color: var(--success); border-color: rgba(52, 199, 89, 0.15); }
.chip-no { background: rgba(255, 59, 48, 0.08); color: var(--danger); border-color: rgba(255, 59, 48, 0.12); }
.chip-warn { background: rgba(255, 159, 10, 0.1); color: var(--warning); border-color: rgba(255, 159, 10, 0.14); }
.chip-info { background: var(--accent-soft); color: var(--accent); border-color: rgba(0, 113, 227, 0.12); }
.chip-muted { background: var(--surface-alt); color: var(--text-soft); border-color: var(--border); }

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

.footer {
  padding: 60px 20px 80px;
}

.footer-shell {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 36px 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(200px, 0.6fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.footer-brand p, .footer-meta p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-brand, .footer-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.footer-links a, .footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 200ms ease;
}

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

/* ── Admin ─────────────────────────────────────── */

.admin-input, .admin-textarea, select {
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-strong);
  transition: border-color 200ms ease;
}

.admin-input:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-textarea {
  min-height: 180px;
  resize: vertical;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}

.admin-table td {
  background: var(--surface);
}

.admin-table tr:last-child td { border-bottom: 0; }

.admin-table .ua {
  max-width: 360px;
  word-break: break-word;
  color: var(--text-muted);
}

.flag {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin-right: 6px;
}

/* ── Animations ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pagination ────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-table + .pagination {
  margin-top: 20px;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 980px) {
  .nav { border-radius: 20px; }

  .split, .footer-shell {
    grid-template-columns: 1fr;
  }

  .compare-table thead { display: none; }

  .compare-table, .compare-table tbody,
  .compare-table tr, .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    border-bottom: 1px solid var(--border);
  }

  .compare-table td:first-child { width: 100%; }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-links a {
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 16px 16px;
  }

  .section {
    padding: 32px 16px;
  }

  .footer {
    padding: 40px 16px 60px;
  }

  .terminal-bar {
    padding: 16px 20px 0;
  }

  .terminal-body, .card, .feature, .panel,
  .visual-card, .cta-card, .timeline-item,
  .platform-card, .legal-card, .support-card {
    padding: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-item::before {
    left: 20px;
    top: 20px;
  }

  .btn { width: 100%; }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .sub, .lead { font-size: 1rem; }

  .footer-links { grid-template-columns: 1fr; }

  .metric-grid, .visual-strip, .showcase-grid,
  .grid, .features, .cta-grid, .platform-grid,
  .legal-grid, .support-grid {
    grid-template-columns: 1fr;
  }
}

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

  .btn, .nav-links a, .reveal,
  .card, .feature, .visual-card,
  .timeline-item, .support-card, .legal-card,
  .metric-card, .platform-card {
    transition: none;
  }

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