/* ═══════════════════════════════════════════════════════════════
   utilio — Design System v1
   Tokens → Components → Layout → Marketing → Animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #050D1A;
  --bg-secondary: #091525;
  --bg-card:      rgba(9, 20, 38, 0.92);
  --bg-surface:   rgba(255, 255, 255, 0.04);
  --bg-sidebar:   rgba(3, 7, 16, 0.99);
  --surface-card:  linear-gradient(145deg, rgba(13,27,46,.96) 0%, rgba(9,18,34,.86) 54%, rgba(8,13,26,.92) 100%);
  --surface-panel: linear-gradient(145deg, rgba(9,22,40,.98) 0%, rgba(10,18,34,.92) 58%, rgba(13,18,32,.88) 100%);

  /* Accents */
  --cyan:            #22D3EE;
  --cyan-dim:        rgba(34, 211, 238, 0.12);
  --cyan-border:     rgba(34, 211, 238, 0.28);
  --cyan-glow:       rgba(34, 211, 238, 0.20);
  --violet:          #8B5CF6;
  --violet-dim:      rgba(139, 92, 246, 0.12);
  --violet-border:   rgba(139, 92, 246, 0.28);
  --violet-glow:     rgba(139, 92, 246, 0.20);

  /* Semantics */
  --success:  #10B981;
  --warning:  #F59E0B;
  --error:    #EF4444;
  --info:     #22D3EE;

  /* Text */
  --text-primary:   #F1F5F9;
  --text-secondary: #A8BCCF;
  --text-muted:     #4E6580;

  /* Borders */
  --border:         rgba(148, 163, 184, 0.13);
  --border-subtle:  rgba(148, 163, 184, 0.07);
  --border-strong:  rgba(148, 163, 184, 0.22);

  /* Radii */
  --r-card:    24px;
  --r-control: 16px;
  --r-sm:      10px;
  --r-xs:      6px;

  /* Shadows */
  --shadow-card:   0 18px 52px rgba(0,0,0,.44), 0 1px 0 rgba(255,255,255,.07) inset;
  --shadow-panel:  0 24px 70px rgba(0,0,0,.48), 0 1px 0 rgba(255,255,255,.08) inset;
  --shadow-btn:    0 2px 14px rgba(0,0,0,.35);
  --shadow-cyan:   0 0 48px rgba(34,211,238,.18), 0 0 16px rgba(34,211,238,.10);
  --shadow-violet: 0 0 48px rgba(139,92,246,.18), 0 0 16px rgba(139,92,246,.10);

  /* Layout */
  --sidebar-w:   240px;
  --topbar-h:    64px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    150ms;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 18% -8%, rgba(34,211,238,.075) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 82% 108%, rgba(139,92,246,.065) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar            { width: 5px; height: 5px; }
::-webkit-scrollbar-track      { background: transparent; }
::-webkit-scrollbar-thumb      { background: rgba(148,163,184,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(148,163,184,.28); }

/* ════════════════════════════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════════════════════════════ */

/* ── Glass card ───────────────────────────────────────────────── */
.glass {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  position: relative;
}
.glass::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.06) 0%, transparent 35%);
  z-index: 1;
}
.glass-sm {
  background: linear-gradient(145deg, rgba(13,27,46,.90) 0%, rgba(9,18,34,.78) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

/* ── KPI card ─────────────────────────────────────────────────── */
.kpi {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 42px rgba(0,0,0,.34), 0 1px 0 rgba(255,255,255,.06) inset;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.kpi::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.22) 50%, transparent 100%);
}
.kpi.violet::before { background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,.22) 50%, transparent 100%); }
.kpi:hover               { border-color: var(--cyan-border); box-shadow: var(--shadow-cyan), 0 4px 24px rgba(0,0,0,.40); transform: translateY(-1px); }
.kpi.violet:hover        { border-color: var(--violet-border); box-shadow: var(--shadow-violet), 0 4px 24px rgba(0,0,0,.40); transform: translateY(-1px); }

.kpi-label  { font-size: 11px; font-weight: 700; color: #7F94AD; text-transform: uppercase; letter-spacing: .095em; margin-bottom: 14px; }
.kpi-value  { font-size: 34px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.kpi-sub    { font-size: 12px; color: #70849B; letter-spacing: .01em; }
.kpi-icon   {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-dim); border: 1px solid var(--cyan-border);
  color: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 16px rgba(34,211,238,.12);
}
.kpi-icon.violet { background: var(--violet-dim); border-color: var(--violet-border); color: var(--violet); box-shadow: 0 0 16px rgba(139,92,246,.12); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  border-radius: var(--r-control); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--t) var(--ease);
  text-decoration: none; vertical-align: middle;
}
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, #2EE4FF 0%, #0EA5E9 100%);
  color: #06202e; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 0 24px rgba(34,211,238,.38), 0 0 8px rgba(34,211,238,.20), var(--shadow-btn);
}
.btn-primary:hover { background: linear-gradient(135deg, #3DEDFF 0%, #22D3EE 100%); box-shadow: 0 0 40px rgba(34,211,238,.55), 0 0 12px rgba(34,211,238,.28), var(--shadow-btn); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 0 16px rgba(34,211,238,.30), var(--shadow-btn); }

.btn-secondary {
  background: rgba(255,255,255,.06); color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,.10); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent; color: var(--text-secondary); border-color: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }

.btn-danger {
  background: rgba(239,68,68,.12); color: #FCA5A5; border-color: rgba(239,68,68,.28);
}
.btn-danger:hover { background: rgba(239,68,68,.22); }

.btn-violet {
  background: linear-gradient(135deg, var(--violet) 0%, #6D28D9 100%);
  color: white; font-weight: 600;
  box-shadow: 0 0 20px rgba(139,92,246,.28), var(--shadow-btn);
}
.btn-violet:hover { box-shadow: 0 0 32px rgba(139,92,246,.45), var(--shadow-btn); transform: translateY(-1px); }

.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: 10px; gap: 5px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: 18px; }
.btn-xl  { padding: 18px 40px; font-size: 16px; font-weight: 700; border-radius: 20px; letter-spacing: .01em; }

/* ── Forms ────────────────────────────────────────────────────── */
.field        { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field-label  { font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: .02em; }
.field-hint   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field-error  { font-size: 12px; color: #FCA5A5; margin-top: 4px; }

.input {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 11px 16px;
  font-family: inherit; font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  outline: none; width: 100%;
}
.input:focus    { border-color: var(--cyan-border); box-shadow: 0 0 0 3px var(--cyan-dim); }
.input::placeholder { color: var(--text-muted); }
.input.is-error { border-color: rgba(239,68,68,.45); }

select.input  { cursor: pointer; }
textarea.input{ resize: vertical; min-height: 100px; }

/* ── Status pills ─────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.pill-ok      { background: rgba(16,185,129,.11); color: #6EE7B7; border: 1px solid rgba(16,185,129,.24); }
.pill-ok::before { background: #10B981; box-shadow: 0 0 5px #10B981; }

.pill-warn    { background: rgba(245,158,11,.11); color: #FCD34D; border: 1px solid rgba(245,158,11,.24); }
.pill-warn::before { background: #F59E0B; }

.pill-error   { background: rgba(239,68,68,.11); color: #FCA5A5; border: 1px solid rgba(239,68,68,.24); }
.pill-error::before { background: #EF4444; box-shadow: 0 0 5px #EF4444; }

.pill-neutral { background: rgba(148,163,184,.09); color: #94A3B8; border: 1px solid rgba(148,163,184,.18); }
.pill-neutral::before { background: #64748B; }

.pill-live    { background: rgba(16,185,129,.11); color: #6EE7B7; border: 1px solid rgba(16,185,129,.24); }
.pill-live::before { background: #10B981; box-shadow: 0 0 5px #10B981; animation: pulse-dot 2s ease infinite; }

.pill-info    { background: rgba(34,211,238,.11); color: #A5F3FC; border: 1px solid rgba(34,211,238,.24); }
.pill-info::before { background: var(--cyan); }

/* Plan badges */
.badge-free    { background: rgba(148,163,184,.09); color: #94A3B8; border: 1px solid rgba(148,163,184,.18); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; display: inline-block; }
.badge-starter { background: var(--cyan-dim);    color: var(--cyan);   border: 1px solid var(--cyan-border); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; display: inline-block; }
.badge-pro     { background: var(--violet-dim);  color: #C4B5FD;       border: 1px solid var(--violet-border); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; display: inline-block; }

/* ── Alerts / flash messages ──────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; border-radius: var(--r-control);
  font-size: 14px; margin-bottom: 12px;
}
.alert-success { background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.24); color: #A7F3D0; }
.alert-error   { background: rgba(239,68,68,.10);  border: 1px solid rgba(239,68,68,.24);  color: #FCA5A5; }
.alert-warning { background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.24); color: #FCD34D; }
.alert-info    { background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.24); color: #A5F3FC; }

/* ── Tables ───────────────────────────────────────────────────── */
.table-wrap {
  border-radius: 18px;
  overflow: auto;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(145deg, rgba(10,21,38,.96) 0%, rgba(6,14,28,.94) 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,.32), 0 1px 0 rgba(255,255,255,.055) inset;
}
.data-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.data-table th {
  text-align: left; padding: 14px 22px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em;
  color: #7D93AA; background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.026) 100%);
  border-bottom: 1px solid rgba(148,163,184,.15);
}
.data-table td {
  padding: 16px 22px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(148,163,184,.075);
  vertical-align: middle;
}
.data-table tr:last-child td   { border-bottom: none; }
.data-table tbody tr           { transition: background var(--t), box-shadow var(--t); }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,.012); }
.data-table tbody tr:hover     { background: rgba(34,211,238,.035); box-shadow: inset 3px 0 0 rgba(34,211,238,.42); }
.data-table .primary           { color: var(--text-primary); font-weight: 600; }
.data-table .mono              { font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; color: #A5F3FC; }

/* ── Code / mono ──────────────────────────────────────────────── */
.code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); border-radius: var(--r-xs);
  padding: 2px 8px; color: var(--cyan);
}

/* ── Uptime bar (90-day strip) ────────────────────────────────── */
.uptime-strip        { display: flex; gap: 2px; align-items: flex-end; height: 28px; }
.uptime-bar          { flex: 1; border-radius: 2px; background: rgba(16,185,129,.55); min-height: 8px; height: 100%; transition: opacity var(--t); }
.uptime-bar:hover    { opacity: 1 !important; }
.uptime-bar.down     { background: rgba(239,68,68,.55); }
.uptime-bar.degraded { background: rgba(245,158,11,.55); }
.uptime-bar.empty    { background: rgba(255,255,255,.08); }

/* ── Divider ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Gradient text ────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, rgba(5,13,26,.99) 0%, rgba(3,7,16,.99) 100%);
  border-right: 1px solid rgba(148,163,184,.11);
  display: flex; flex-direction: column;
  z-index: 50; overflow: hidden;
}

.sidebar-head {
  padding: 20px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(34,211,238,.30), 0 0 6px rgba(139,92,246,.20);
}

.sidebar-workspace {
  margin-top: 14px; padding: 9px 12px;
  background: linear-gradient(135deg, rgba(34,211,238,.075) 0%, rgba(139,92,246,.055) 100%); border-radius: 10px;
  border: 1px solid rgba(148,163,184,.14);
}

.sidebar-nav { flex: 1; padding: 6px 10px; overflow-y: auto; }

.nav-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  padding: 14px 10px 5px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 11px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  transition: all var(--t) var(--ease);
  margin-bottom: 1px; cursor: pointer;
  border: 1px solid transparent;
}
.nav-item svg { width: 16px; height: 16px; opacity: .65; flex-shrink: 0; transition: opacity var(--t); }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--text-secondary); }
.nav-item:hover svg { opacity: .9; }
.nav-item.is-active {
  background: linear-gradient(135deg, rgba(34,211,238,.14) 0%, rgba(139,92,246,.09) 100%);
  color: var(--cyan); border-color: var(--cyan-border);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 12px rgba(34,211,238,.08);
}
.nav-item.is-active svg { opacity: 1; color: var(--cyan); }

.sidebar-footer {
  padding: 10px; border-top: 1px solid var(--border-subtle);
}
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 11px;
  transition: background var(--t);
  cursor: pointer;
}
.user-row:hover { background: rgba(255,255,255,.05); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #082030;
}

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h);
  background: rgba(5, 12, 24, .96);
  border-bottom: 1px solid rgba(148,163,184,.14);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; gap: 16px; padding: 0 32px;
  z-index: 40;
}
.topbar::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.12) 40%, rgba(139,92,246,.10) 70%, transparent 100%);
  pointer-events: none;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-primary); flex: 1; }
.topbar-search { position: relative; width: 280px; }
.topbar-search input {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 8px 12px 8px 34px;
  font-size: 13px; font-family: inherit; color: var(--text-primary);
  outline: none; transition: border-color var(--t);
}
.topbar-search input:focus { border-color: var(--cyan-border); }
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search .ico-search {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: var(--text-muted); pointer-events: none;
}

/* ── App shell ────────────────────────────────────────────────── */
.app-wrap { display: flex; min-height: 100vh; }
.app-main  { margin-left: var(--sidebar-w); padding-top: var(--topbar-h); flex: 1; position: relative; z-index: 1; }
.page-body { padding: 40px 44px; max-width: 1380px; }

/* ── Page header ──────────────────────────────────────────────── */
.page-hd {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 34px;
}
.page-hd-left h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); letter-spacing: -.035em; }
.page-hd-left p  { font-size: 14px; color: #71869E; margin-top: 5px; }

/* ── Empty state ──────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 72px 32px;
  color: var(--text-muted);
}
.empty-icon  {
  margin: 0 auto 20px; opacity: .45;
  filter: drop-shadow(0 0 18px rgba(34,211,238,.18));
  display: block;
}
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: -.01em; }
.empty-desc  { font-size: 14px; margin-bottom: 28px; line-height: 1.7; max-width: 340px; margin-left: auto; margin-right: auto; }

/* ── Progress / Usage bars ────────────────────────────────────── */
.usage-bar-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px;
}
.usage-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);
  transition: width .4s var(--ease);
}
.usage-bar-fill.warn { background: linear-gradient(90deg, #F59E0B 0%, #EF4444 100%); }

/* ═══════════════════════════════════════════════════════════════
   MARKETING / HOMEPAGE
   ═══════════════════════════════════════════════════════════════ */

.mkt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 64px;
  background: rgba(5, 11, 22, .88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.mkt-nav-links { display: flex; gap: 36px; }
.mkt-nav-link  { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--t); }
.mkt-nav-link:hover { color: var(--text-primary); }

.hero {
  min-height: 96vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 132px 24px 86px;
  position: relative; overflow: hidden;
}

.hero-glow {
  position: absolute; top: 5%; left: 50%; transform: translateX(-50%);
  width: min(1180px, 96vw); height: 650px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(34,211,238,.12) 0%,
    rgba(139,92,246,.075) 36%,
    transparent 65%);
}
.hero-glow-2 {
  position: absolute; bottom: -8%; right: -8%;
  width: 700px; height: 450px; pointer-events: none;
  background: radial-gradient(ellipse at 80% 80%,
    rgba(139,92,246,.09) 0%, transparent 58%);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(34,211,238,.08);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--cyan);
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(34,211,238,.10);
  letter-spacing: .01em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: pulse-dot 2s infinite; }

.hero-h1 {
  font-size: clamp(44px, 6.7vw, 82px);
  font-weight: 800; line-height: 1.01; letter-spacing: -.045em;
  color: var(--text-primary); max-width: 880px; margin-bottom: 24px;
  text-shadow: 0 22px 70px rgba(0,0,0,.44);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #B5C5D5; max-width: 620px;
  margin-bottom: 40px; line-height: 1.72;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

/* Product mockup (CSS-rendered) */
.product-mock {
  width: 100%; max-width: 940px;
  background: linear-gradient(145deg, rgba(11,23,42,.99) 0%, rgba(6,14,28,.99) 100%);
  border: 1px solid rgba(188,211,238,.20);
  border-radius: 22px;
  box-shadow:
    0 46px 120px rgba(0,0,0,.70),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 90px rgba(34,211,238,.14),
    0 0 150px rgba(139,92,246,.09);
  overflow: hidden;
  position: relative;
  transform: perspective(1600px) rotateX(3.5deg) scale(0.985);
  transform-origin: center bottom;
}
.product-mock::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 0, transparent 18%, transparent 82%, rgba(255,255,255,.03) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(34,211,238,.13) 0%, transparent 58%);
  z-index: 1;
}
.product-mock > * { position: relative; z-index: 2; }
.mock-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-body { padding: 22px; }
.mock-row  { display: flex; gap: 12px; margin-bottom: 14px; }
.mock-kpi  { flex: 1; height: 72px; border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.032) 100%); border: 1px solid rgba(148,163,184,.14); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.mock-table{ border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.14); overflow: hidden; }
.mock-thead{ height: 36px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.mock-trow { height: 46px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; padding: 0 16px; gap: 12px; }
.mock-trow:last-child { border-bottom: none; }
.mock-cell { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); }
.mock-cell.accent  { background: rgba(34,211,238,.35); }
.mock-cell.success { background: rgba(16,185,129,.35); }
.mock-cell.warn    { background: rgba(245,158,11,.35); }

/* Stats strip */
.stats-strip {
  display: flex; justify-content: center; gap: 76px; flex-wrap: wrap;
  padding: 46px 24px 52px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(to bottom, rgba(34,211,238,.025) 0%, transparent 100%);
}
.stat-item      { text-align: center; }
.stat-value     { font-size: 36px; font-weight: 800; letter-spacing: -.04em; color: var(--text-primary); line-height: 1; }
.stat-label     { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 6px; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--surface-card);
  border: 1px solid rgba(148,163,184,.15); border-radius: var(--r-card);
  padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 16px 42px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.055) inset;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 50%, transparent 100%);
}
.feature-card:hover { border-color: var(--cyan-border); transform: translateY(-3px); box-shadow: var(--shadow-cyan); }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--cyan-dim); border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(34,211,238,.12);
}
.feature-icon-wrap.violet { background: var(--violet-dim); border-color: var(--violet-border); color: var(--violet); box-shadow: 0 0 20px rgba(139,92,246,.12); }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--surface-card);
  border: 1px solid rgba(148,163,184,.15); border-radius: var(--r-card);
  padding: 36px; position: relative; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.055) inset;
}
.pricing-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
}
.pricing-card.featured {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-cyan), 0 24px 70px rgba(0,0,0,.42);
  background: linear-gradient(145deg, rgba(34,211,238,.08) 0%, rgba(139,92,246,.06) 50%, rgba(15,23,42,.82) 100%);
}
.pricing-card.featured::after {
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.45) 50%, transparent 100%);
}
.price-amount {
  font-size: 48px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -.04em; line-height: 1;
}
.price-period { font-size: 14px; color: var(--text-muted); margin-left: 4px; font-weight: 400; }
.price-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-secondary);
  padding: 5px 0;
}
.price-feature svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }

/* Section chrome */
.section { padding: 92px 48px; max-width: 1200px; margin: 0 auto; }
.section-sm { padding: 62px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--cyan); margin-bottom: 12px;
}
.section-h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.03em; color: var(--text-primary);
  line-height: 1.1; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 540px; line-height: 1.75;
}

/* ── How-it-works step numbers ────────────────────────────────── */
.how-panel {
  background: var(--surface-panel);
  border: 1px solid rgba(148,163,184,.15);
  border-radius: var(--r-card);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.how-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(34,211,238,.34) 40%, rgba(139,92,246,.24) 70%, transparent 95%);
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan-dim) 0%, rgba(139,92,246,.10) 100%);
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--cyan);
  margin: 0 auto 20px;
  box-shadow: 0 0 24px rgba(34,211,238,.14);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(145deg, rgba(9,22,40,.95) 0%, rgba(13,22,42,.90) 50%, rgba(20,10,35,.85) 100%);
  border: 1px solid rgba(34,211,238,.22);
  border-radius: var(--r-card); padding: 72px 64px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 60px rgba(34,211,238,.08), 0 0 100px rgba(139,92,246,.06), 0 16px 48px rgba(0,0,0,.45);
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(34,211,238,.55) 40%, rgba(139,92,246,.40) 70%, transparent 95%);
}
.cta-banner::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(34,211,238,.07) 0%, rgba(139,92,246,.04) 45%, transparent 68%);
  pointer-events: none;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-subtle); padding: 20px 0; }
.faq-q    { font-size: 16px; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a    { font-size: 14px; color: var(--text-secondary); margin-top: 12px; line-height: 1.7; }

/* Footer */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 48px; max-width: 1200px; margin: 0 auto;
}

/* App billing */
.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.billing-summary-card {
  padding: 26px;
  min-height: 168px;
}
.billing-summary-card::before,
.billing-plan-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.22) 48%, rgba(139,92,246,.16) 72%, transparent 100%);
}
.billing-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .095em;
  color: #7F94AD;
  margin-bottom: 18px;
}
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.billing-plan-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 248px;
}
.billing-plan-card.is-featured {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-cyan), 0 18px 48px rgba(0,0,0,.34);
  background: linear-gradient(145deg, rgba(34,211,238,.085) 0%, rgba(139,92,246,.055) 48%, rgba(9,18,34,.90) 100%);
}

/* ── Billing page redesign ────────────────────────────────────── */
.bill-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bill-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.bill-plan-card {
  position: relative;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bill-plan-card:hover { transform: translateY(-3px); }
.bill-plan-card.is-starter {
  background: linear-gradient(145deg, rgba(34,211,238,.09) 0%, rgba(139,92,246,.06) 48%, rgba(9,18,34,.92) 100%);
  border: 1px solid var(--cyan-border);
  box-shadow: var(--shadow-cyan), 0 24px 60px rgba(0,0,0,.38);
}
.bill-plan-card.is-starter:hover { box-shadow: var(--shadow-cyan), 0 32px 72px rgba(0,0,0,.46); }
.bill-plan-card.is-pro {
  background: var(--surface-card);
  border: 1px solid rgba(139,92,246,.3);
  box-shadow: 0 0 30px rgba(139,92,246,.1), 0 18px 48px rgba(0,0,0,.28);
}
.bill-plan-card.is-pro:hover { box-shadow: 0 0 40px rgba(139,92,246,.18), 0 26px 60px rgba(0,0,0,.38); }
.bill-plan-card.is-current {
  border-color: rgba(34,211,238,.45);
}
.bill-plan-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
}
.bill-plan-cta {
  width: 100%; padding: 13px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer; border: none;
  transition: opacity .15s, transform .15s;
}
.bill-plan-cta:hover { opacity: .88; transform: translateY(-1px); }
.bill-plan-cta.is-starter-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, #0891B2 100%);
  color: #000;
  box-shadow: 0 4px 18px rgba(34,211,238,.3);
}
.bill-plan-cta.is-pro-cta {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139,92,246,.3);
}
.bill-toggle-wrap {
  display: inline-flex;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.bill-toggle-btn {
  padding: 7px 20px;
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.bill-toggle-btn.is-active {
  background: rgba(255,255,255,.12);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.bill-save-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(139,92,246,.15));
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  padding: 2px 7px; border-radius: 5px;
}
.bill-current-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--cyan);
  background: rgba(34,211,238,.12);
  border: 1px solid var(--cyan-border);
  padding: 3px 9px; border-radius: 6px;
}

@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero-h1 { font-size: clamp(40px, 12vw, 58px); }
  .product-mock { transform: none; }
  .mock-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-left: 24px; padding-right: 24px; }
  .how-panel,
  .cta-banner { padding: 44px 28px; }
  .billing-summary-grid { grid-template-columns: 1fr; }
  .bill-info-grid { grid-template-columns: 1fr; }
  .bill-plan-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.8); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: .7; }
  50%       { opacity: 1; }
}

.ani-1 { animation: fade-up .45s var(--ease) both; }
.ani-2 { animation: fade-up .45s var(--ease) .08s both; }
.ani-3 { animation: fade-up .45s var(--ease) .16s both; }
.ani-4 { animation: fade-up .45s var(--ease) .24s both; }

/* ── Theme strategy scaffold ─────────────────────────────────── */
:root[data-theme='dark'] {
  color-scheme: dark;
}

:root[data-theme='light'] {
  color-scheme: light;
  /* Reserved for future global light theme tokens. */
}

/* ── Cookie consent UI ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  justify-content: center;
}

.cookie-banner-content {
  width: min(940px, 100%);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 14, 28, 0.96);
  backdrop-filter: blur(8px);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-card {
  width: min(520px, 100%);
  padding: 24px;
}

.cookie-pref {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
