/* ═══════════════════════════════════════════════════════════════
   ORBIT DESIGN SYSTEM — Typography + Light Theme
   Inter (primary) + JetBrains Mono (monospace)
   ═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #F8FAFC;
  --bg-card:       #FFFFFF;
  --surface:       #F1F5F9;
  --border:        #E2E8F0;
  --border-bright: #CBD5E1;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --text-dim:      #94A3B8;
  --accent:        #3B82F6;
  --accent-hover:  #2563EB;
  --accent-dim:    rgba(59,130,246,0.08);
  --accent-2:      #06B6D4;
  --accent-2-dim:  rgba(6,182,212,0.08);
  --success:       #10B981;
  --success-dim:   rgba(16,185,129,0.1);
  --warning:       #F59E0B;
  --warning-dim:   rgba(245,158,11,0.1);
  --danger:        #EF4444;
  --danger-dim:    rgba(239,68,68,0.1);

  /* Typography */
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -1px rgba(15,23,42,0.04);
  --shadow-lg:  0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.04);

  /* Border radius */
  --radius-sm:  6px;
  --radius:     8px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;
}

/* ── BASE ──────────────────────────────────────────────────── */
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(59,130,246,0.2); color: var(--text); }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (max-width: 600px) { .container { padding-left: 1.25rem; padding-right: 1.25rem; } }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 900px) { .nav { padding: 0 1.5rem; } }

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  font-weight: 700;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link-login { margin-left: 0.5rem; }
.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-left: 0.75rem;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.6rem 0.75rem; }
  .nav-link-login { margin-left: 0; }
  .nav-cta { margin-left: 0; text-align: center; padding: 0.7rem 1.1rem; }
}

/* ── TOP NAV (dashboard) ──────────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 0;
}
.nav-logo-plan {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.nav-tabs { display: flex; align-items: center; gap: 0.25rem; flex: 1; margin-left: 1rem; }
.nav-tab { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-tab:hover { color: var(--text); background: var(--surface); }
.nav-tab.active { color: var(--accent); font-weight: 600; }
.nav-tab.active::after { content: ''; display: block; height: 2px; background: var(--accent); border-radius: 1px; margin-top: 2px; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; flex-shrink: 0; }
.nav-user { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--text-muted); }
.nav-user-avatar { width: 30px; height: 30px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: white; flex-shrink: 0; }
.nav-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: all 0.15s; border: none; text-decoration: none; }
.nav-btn-ghost { color: var(--text-muted); background: none; }
.nav-btn-ghost:hover { color: var(--text); background: var(--surface); }

@media (max-width: 900px) {
  .nav-tabs { display: none; }
  .nav-tabs.mobile-open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
}

/* ── APP LAYOUT (dashboard) ───────────────────────────────── */
.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }

.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.6rem; padding: 0 0.5rem; }
.sidebar-stat { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; font-family: var(--font-body); }
.sidebar-stat-sub { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 1.25rem; padding: 0 0.25rem; }
.sidebar-nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: all 0.15s; cursor: pointer; border: 1px solid transparent; }
.sidebar-nav-item:hover { background: var(--bg-card); color: var(--text); }
.sidebar-nav-item.active { background: var(--accent-dim); color: var(--accent); border-color: rgba(59,130,246,0.15); }
.sidebar-nav-item .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; }

.main-content { padding: 2rem 2.5rem; overflow-x: hidden; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.page-subtitle { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-hamburger { display: flex; }
  .main-content { padding: 1.5rem; }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.25); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-bright); color: var(--text); }
.btn-danger { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.btn-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(16,185,129,0.15); }
.btn-ghost { background: none; color: var(--text-muted); border: none; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.35); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; margin-left: 0.5rem; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.card-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.card-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.card-value-sm { font-size: 1.5rem; }
.card-sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }
.card-trend { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); }
.trend-up { color: var(--success); background: var(--success-dim); }
.trend-down { color: var(--danger); background: var(--danger-dim); }
.trend-neutral { color: var(--text-muted); background: var(--surface); }

/* ── METRICS ──────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.metric-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-md); }
.metric-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
.metric-value { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; }
.metric-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); }
@media (max-width: 1200px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }

/* ── TABS ─────────────────────────────────────────────────── */
.tab-bar { display: flex; gap: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.25rem; margin-bottom: 1.5rem; }
.tab-btn { padding: 0.4rem 0.85rem; border-radius: var(--radius-sm); border: none; background: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; font-family: var(--font-body); cursor: pointer; transition: all 0.15s; }
.tab-btn.active { background: var(--accent); color: white; }
.tab-btn:hover:not(.active) { color: var(--text); background: var(--bg-card); }

/* ── BADGES ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); }
.badge-blue { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(59,130,246,0.15); }
.badge-green { background: var(--success-dim); color: var(--success); border: 1px solid rgba(16,185,129,0.15); }
.badge-yellow { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(245,158,11,0.15); }
.badge-red { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.badge-orange { background: rgba(249,115,22,0.1); color: #F97316; border: 1px solid rgba(249,115,22,0.15); }
.badge-cyan { background: var(--accent-2-dim); color: var(--accent-2); border: 1px solid rgba(6,182,212,0.15); }
.badge-gray { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ── DRAFT LIST ───────────────────────────────────────────── */
.draft-list { display: flex; flex-direction: column; gap: 0.75rem; }
.draft-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.draft-item:hover { border-color: var(--border-bright); box-shadow: var(--shadow-md); }
.draft-item.pending { border-left: 3px solid var(--accent); }
.draft-item.approved { border-left: 3px solid var(--success); }
.draft-item.posted { border-left: 3px solid var(--accent-2); }
.draft-item.rejected { opacity: 0.6; border-left: 3px solid var(--danger); }
.draft-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); gap: 1rem; }
.draft-topic { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.draft-time { font-size: var(--text-sm); color: var(--text-dim); }
.draft-body { font-size: var(--text-base); line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; margin-bottom: 1rem; }
.draft-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.draft-meta { font-size: var(--text-sm); color: var(--text-muted); }
.draft-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.char-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.char-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.char-bar-fill.ok { background: var(--success); }
.char-bar-fill.warn { background: var(--warning); }
.char-bar-fill.over { background: var(--danger); }

/* ── TABLES ───────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.data-table th { text-align: left; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.data-table tbody tr:hover td { background: var(--surface); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .col-content { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; }
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-input::placeholder { color: var(--text-dim); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
.form-error { background: var(--danger-dim); border: 1px solid rgba(239,68,68,0.2); color: var(--danger); padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: 1rem; }

/* ── SKELETON LOADING ─────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; border-radius: 4px; }
.skeleton-title { height: 24px; border-radius: var(--radius-sm); }
.skeleton-value { height: 48px; border-radius: var(--radius-md); }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { font-size: var(--text-sm); margin-bottom: 1.5rem; }

/* ── TOAST ────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 9999; pointer-events: none; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem 1.25rem; font-size: var(--text-sm); color: var(--text); display: flex; align-items: center; gap: 0.6rem; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; pointer-events: auto; max-width: 360px; }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(8px); } }

/* ── DIVIDERS ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 2rem 0; }

/* ── SECTION HEADINGS ─────────────────────────────────────── */
.section-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.section-headline { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4rem; max-width: 640px; line-height: 1.1; }

/* ── GRID LAYOUTS ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.footer-tagline { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.25rem; }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }
@media (max-width: 600px) { .footer { flex-direction: column; gap: 1rem; text-align: center; } }

/* ── STEPPER ──────────────────────────────────────────────── */
.step-number { width: 32px; height: 32px; background: var(--accent-dim); border: 1px solid rgba(59,130,246,0.2); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.step-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-content { flex: 1; }
.step-title { font-size: var(--text-base); font-weight: 600; margin-bottom: 0.3rem; }
.step-desc { font-size: var(--text-sm); color: var(--text-muted); }

/* ── LOADING SPINNER ──────────────────────────────────────── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-it-works, .features, .comparison, .pricing, .gallery, .pain-fixes { padding: 3.5rem 0; }
}
@media (max-width: 600px) {
  .how-it-works, .features, .comparison, .pricing, .gallery, .pain-fixes { padding: 2.5rem 0; }
}