/* ============================================================
   SaveClips v2 — Design System
   Theme: Light (default) + Dark | Stack: Inter + Lucide
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand */
  --blue-50:#eff6ff;--blue-100:#dbeafe;--blue-200:#bfdbfe;
  --blue-300:#93c5fd;--blue-400:#60a5fa;--blue-500:#3b82f6;
  --blue-600:#2563eb;--blue-700:#1d4ed8;--blue-800:#1e40af;
  --blue-900:#1e3a8a;

  /* Semantic — Light Mode */
  --bg:          #ffffff;
  --bg-subtle:   #f8fafc;
  --bg-muted:    #f1f5f9;
  --surface:     #ffffff;
  --surface-2:   #f8fafc;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;
  --text:        #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;
  --primary:     #2563eb;
  --primary-h:   #1d4ed8;
  --primary-fg:  #ffffff;
  --primary-bg:  #eff6ff;
  --primary-bd:  #bfdbfe;
  --green:       #16a34a; --green-bg:#f0fdf4; --green-bd:#bbf7d0;
  --amber:       #d97706; --amber-bg:#fffbeb; --amber-bd:#fde68a;
  --red:         #dc2626; --red-bg:  #fef2f2; --red-bd:  #fecaca;

  /* Shadows */
  --sh-xs: 0 1px 2px 0 rgb(0 0 0/.05);
  --sh-sm: 0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1);
  --sh-md: 0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1);
  --sh-lg: 0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);
  --sh-xl: 0 20px 25px -5px rgb(0 0 0/.1),0 8px 10px -6px rgb(0 0 0/.1);
  --sh-blue: 0 4px 14px 0 rgb(37 99 235/.25);

  /* Radii */
  --r-sm:6px;--r-md:10px;--r-lg:14px;--r-xl:18px;--r-2xl:24px;--r-f:9999px;

  /* Misc */
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --nav-h:64px;
  --sidebar-w:240px;
  --max-w:1180px;
  --ease:cubic-bezier(.4,0,.2,1);
  --t:150ms var(--ease);
  --t-s:300ms var(--ease);
}

[data-theme=dark] {
  --bg:#09090b;--bg-subtle:#111113;--bg-muted:#1c1c22;
  --surface:#18181b;--surface-2:#1c1c22;
  --border:#27272a;--border-2:#3f3f46;
  --text:#fafafa;--text-2:#a1a1aa;--text-3:#52525b;
  --primary-bg:#162044;--primary-bd:#1e3a8a;
  --green-bg:#052e16;--green-bd:#14532d;
  --amber-bg:#1c1400;--amber-bd:#78350f;
  --red-bg:#1c0a0a;--red-bd:#7f1d1d;
  --sh-xs:0 1px 2px 0 rgb(0 0 0/.3);
  --sh-sm:0 1px 3px 0 rgb(0 0 0/.4),0 1px 2px -1px rgb(0 0 0/.3);
  --sh-md:0 4px 6px -1px rgb(0 0 0/.4),0 2px 4px -2px rgb(0 0 0/.3);
  --sh-lg:0 10px 15px -3px rgb(0 0 0/.5),0 4px 6px -4px rgb(0 0 0/.4);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,::before,::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--text);
  line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{cursor:pointer;font-family:var(--font);border:none;background:none}
input,select,textarea{font-family:var(--font)}
svg{display:inline-block;vertical-align:middle;flex-shrink:0}

/* ── Utilities ──────────────────────────────────────────────── */
.container{max-width:var(--max-w);margin:0 auto;padding:0 24px}
.section{padding:96px 0}
.section-sm{padding:64px 0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.text-center{text-align:center}
.text-gradient{background:linear-gradient(135deg,var(--primary) 0%,var(--blue-400) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ── Typography Scale ───────────────────────────────────────── */
.t-display{font-size:clamp(40px,5.5vw,68px);font-weight:800;letter-spacing:-.03em;line-height:1.08}
.t-h1    {font-size:clamp(28px,3.5vw,48px);font-weight:700;letter-spacing:-.025em;line-height:1.15}
.t-h2    {font-size:clamp(22px,2.5vw,36px);font-weight:700;letter-spacing:-.02em;line-height:1.2}
.t-h3    {font-size:clamp(16px,1.5vw,20px);font-weight:600;letter-spacing:-.01em;line-height:1.35}
.t-body  {font-size:15px;line-height:1.7;color:var(--text-2)}
.t-sm    {font-size:13px;line-height:1.6;color:var(--text-3)}
.t-xs    {font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}

/* ── Badge ──────────────────────────────────────────────────── */
.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;
  border-radius:var(--r-f);font-size:12px;font-weight:600;letter-spacing:.02em;border:1px solid}
.badge-blue  {background:var(--primary-bg);color:var(--primary);  border-color:var(--primary-bd)}
.badge-green {background:var(--green-bg);  color:var(--green);    border-color:var(--green-bd)}
.badge-amber {background:var(--amber-bg);  color:var(--amber);    border-color:var(--amber-bd)}
.badge-red   {background:var(--red-bg);    color:var(--red);      border-color:var(--red-bd)}
.badge-gray  {background:var(--bg-muted);  color:var(--text-3);   border-color:var(--border)}

/* ── Buttons ────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  font-size:14px;font-weight:600;padding:10px 20px;border-radius:var(--r-md);
  border:1.5px solid transparent;transition:var(--t);white-space:nowrap;cursor:pointer;
  text-decoration:none;line-height:1.4;font-family:var(--font)}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);
  box-shadow:var(--sh-blue)}
.btn-primary:hover{background:var(--primary-h);border-color:var(--primary-h);
  box-shadow:0 6px 20px rgb(37 99 235/.35);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary-bd)}
.btn-outline:hover{background:var(--primary-bg);border-color:var(--primary)}
.btn-ghost{background:transparent;color:var(--text-2);border-color:var(--border)}
.btn-ghost:hover{background:var(--bg-subtle);color:var(--text);border-color:var(--border-2)}
.btn-white{background:#fff;color:var(--primary);border-color:#fff;box-shadow:var(--sh-md)}
.btn-white:hover{background:var(--blue-50);transform:translateY(-1px)}
.btn-danger{background:var(--red-bg);color:var(--red);border-color:var(--red-bd)}
.btn-danger:hover{background:var(--red);color:#fff}
.btn-sm{padding:7px 14px;font-size:13px;border-radius:var(--r-sm)}
.btn-sm svg{width:14px;height:14px}
.btn-lg{padding:14px 28px;font-size:16px;border-radius:var(--r-lg)}
.btn-lg svg{width:18px;height:18px}
.btn-xl{padding:16px 36px;font-size:17px;border-radius:var(--r-xl)}
.btn-xl svg{width:20px;height:20px}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none !important;box-shadow:none !important}

/* ── Inputs ─────────────────────────────────────────────────── */
.input{width:100%;background:var(--surface);border:1.5px solid var(--border);
  border-radius:var(--r-md);padding:10px 14px;font-size:14px;color:var(--text);
  font-family:var(--font);outline:none;transition:var(--t)}
.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgb(37 99 235/.1)}
.input::placeholder{color:var(--text-3)}
.input-lg{padding:14px 18px;font-size:16px;border-radius:var(--r-lg)}
.textarea{resize:vertical;min-height:120px;line-height:1.6}
.select{appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat:no-repeat;background-position:right 10px center;background-size:16px;padding-right:36px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-label{font-size:13px;font-weight:600;color:var(--text-2)}
.form-hint {font-size:12px;color:var(--text-3)}
.form-error{font-size:12px;color:var(--red)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label.required::after{content:' *';color:var(--red)}

/* ── Card ───────────────────────────────────────────────────── */
.card{background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-xl);transition:var(--t)}
.card-p{padding:24px}
.card-hover:hover{border-color:var(--primary-bd);box-shadow:var(--sh-md);transform:translateY(-2px)}
.card-sm{border-radius:var(--r-lg)}
.card-flush{border-radius:0;border-left:none;border-right:none}

/* ── Navigation ─────────────────────────────────────────────── */
.nav{position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--nav-h);
  background:rgba(255,255,255,.92);backdrop-filter:blur(16px) saturate(1.8);
  border-bottom:1px solid var(--border);transition:var(--t)}
[data-theme=dark] .nav{background:rgba(9,9,11,.92)}
.nav.scrolled{box-shadow:var(--sh-sm)}
.nav-inner{max-width:var(--max-w);margin:0 auto;padding:0 24px;height:100%;
  display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-logo{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;
  color:var(--primary);text-decoration:none;flex-shrink:0}
.nav-logo img{height:32px;width:auto}
.nav-logo-fallback{width:34px;height:34px;border-radius:var(--r-md);background:var(--primary);
  display:flex;align-items:center;justify-content:center}
.nav-logo-fallback svg{width:18px;height:18px;color:#fff}
.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{font-size:14px;font-weight:500;color:var(--text-2);padding:7px 12px;
  border-radius:var(--r-sm);transition:var(--t)}
.nav-links a:hover,.nav-links a.active{color:var(--text);background:var(--bg-subtle)}
.nav-links a.active{font-weight:600;color:var(--primary)}
.nav-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.theme-btn{width:36px;height:36px;border-radius:var(--r-md);background:var(--bg-subtle);
  border:1px solid var(--border);color:var(--text-2);display:flex;
  align-items:center;justify-content:center;transition:var(--t)}
.theme-btn:hover{border-color:var(--primary);color:var(--primary)}
.theme-btn svg{width:16px;height:16px}

/* Mobile nav */
.nav-hamburger{display:none;width:36px;height:36px;border-radius:var(--r-md);
  background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-2);
  align-items:center;justify-content:center;transition:var(--t)}
.nav-hamburger svg{width:18px;height:18px}
.nav-drawer{display:none;position:fixed;top:var(--nav-h);left:0;right:0;bottom:0;
  background:var(--bg);z-index:999;padding:12px;overflow-y:auto;
  border-top:1px solid var(--border)}
.nav-drawer.open{display:flex;flex-direction:column;gap:4px}
.nav-drawer a{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:500;
  color:var(--text-2);padding:12px 14px;border-radius:var(--r-lg);transition:var(--t)}
.nav-drawer a:hover{background:var(--bg-subtle);color:var(--text)}
.nav-drawer a svg{width:18px;height:18px;color:var(--primary)}

/* ── Hero ───────────────────────────────────────────────────── */
.hero{padding:calc(var(--nav-h) + 80px) 0 80px;
  background:radial-gradient(ellipse 80% 50% at 50% -5%,
    rgb(37 99 235/.08) 0%,transparent 70%);
  position:relative;overflow:hidden}
[data-theme=dark] .hero{background:radial-gradient(ellipse 80% 50% at 50% -5%,
    rgb(37 99 235/.12) 0%,transparent 70%)}
.hero::before,.hero::after{content:'';position:absolute;pointer-events:none;border-radius:50%}
.hero::before{width:600px;height:600px;
  background:radial-gradient(circle,rgb(37 99 235/.06),transparent 70%);
  top:-200px;right:-100px}
.hero::after{width:500px;height:500px;
  background:radial-gradient(circle,rgb(14 165 233/.05),transparent 70%);
  bottom:-150px;left:-100px}
.hero-inner{position:relative;z-index:1;max-width:800px;margin:0 auto;text-align:center}
.hero-badge{margin-bottom:24px}
.hero-title{margin-bottom:16px}
.hero-sub{font-size:clamp(16px,2vw,18px);color:var(--text-2);
  max-width:580px;margin:0 auto 40px;line-height:1.7}

/* Downloader Box */
.downloader{background:var(--surface);border:1.5px solid var(--border);
  border-radius:var(--r-2xl);padding:6px 6px 6px 20px;
  display:flex;align-items:center;gap:8px;max-width:640px;margin:0 auto 16px;
  box-shadow:var(--sh-lg);transition:var(--t)}
.downloader:focus-within{border-color:var(--primary);
  box-shadow:var(--sh-lg),0 0 0 4px rgb(37 99 235/.08)}
.downloader-input{flex:1;background:transparent;border:none;outline:none;
  font-size:15px;color:var(--text);min-width:0}
.downloader-input::placeholder{color:var(--text-3)}
.downloader-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.trust-row{display:flex;align-items:center;justify-content:center;gap:20px;
  flex-wrap:wrap;margin-top:18px}
.trust-item{display:flex;align-items:center;gap:6px;font-size:13px;
  color:var(--text-3);font-weight:500}
.trust-item svg{width:14px;height:14px;color:var(--green)}
.platform-pills{display:flex;align-items:center;justify-content:center;gap:10px;
  flex-wrap:wrap;margin-top:40px}
.platform-pill{display:flex;align-items:center;gap:7px;background:var(--surface);
  border:1px solid var(--border);padding:8px 16px;border-radius:var(--r-f);
  font-size:13px;font-weight:600;color:var(--text-2);transition:var(--t);
  cursor:pointer;box-shadow:var(--sh-xs)}
.platform-pill:hover{border-color:var(--primary);color:var(--primary);
  background:var(--primary-bg);box-shadow:var(--sh-blue);transform:translateY(-2px)}
.platform-pill.disabled{opacity:.55;cursor:not-allowed}
.platform-pill.disabled:hover{transform:none;box-shadow:var(--sh-xs);
  border-color:var(--border);color:var(--text-2);background:var(--surface)}
.platform-pill-icon{width:22px;height:22px;flex-shrink:0}

/* Result Panel */
.result-panel{max-width:640px;margin:16px auto 0;background:var(--surface);
  border:1.5px solid var(--primary-bd);border-radius:var(--r-xl);overflow:hidden;
  display:none;animation:slideUp .3s var(--ease);box-shadow:var(--sh-lg)}
.result-panel.show{display:block}
@keyframes slideUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.result-header{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;
  background:var(--primary-bg);border-bottom:1px solid var(--primary-bd)}
.result-thumb{width:88px;height:60px;border-radius:var(--r-sm);object-fit:cover;
  background:var(--bg-muted);flex-shrink:0}
.result-thumb-placeholder{width:88px;height:60px;border-radius:var(--r-sm);
  background:var(--bg-muted);flex-shrink:0;display:flex;
  align-items:center;justify-content:center}
.result-thumb-placeholder svg{width:24px;height:24px;color:var(--text-3)}
.result-meta{flex:1;min-width:0}
.result-title{font-size:14px;font-weight:600;line-height:1.4;margin-bottom:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-sub{font-size:12px;color:var(--text-3)}
.result-body{padding:16px 20px}
.result-download-btn{width:100%}

/* Progress */
.progress{height:3px;background:var(--bg-muted);border-radius:var(--r-f);
  overflow:hidden;margin-top:12px;max-width:640px;margin-left:auto;margin-right:auto}
.progress-bar{height:100%;background:var(--primary);border-radius:var(--r-f);
  width:0;transition:width .4s var(--ease)}

/* ── Stats ──────────────────────────────────────────────────── */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--border);border:1px solid var(--border);
  border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-sm)}
.stat-cell{background:var(--surface);padding:28px 20px;text-align:center;transition:var(--t)}
.stat-cell:hover{background:var(--primary-bg)}
.stat-value{font-size:clamp(26px,3vw,38px);font-weight:800;color:var(--primary);
  line-height:1;margin-bottom:6px;letter-spacing:-.02em}
.stat-label{font-size:12px;color:var(--text-3);font-weight:500}

/* ── Platform Cards ─────────────────────────────────────────── */
.platforms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.platform-card{padding:28px 20px;text-align:center;border-radius:var(--r-xl);transition:var(--t)}
.platform-card:not(.platform-card--coming):hover{border-color:var(--primary-bd);
  box-shadow:0 8px 24px rgb(37 99 235/.12);transform:translateY(-4px)}
.platform-card--coming{opacity:.7}
.platform-icon-wrap{width:60px;height:60px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;overflow:hidden}
.platform-icon-wrap svg{width:32px;height:32px}
.platform-name{font-size:16px;font-weight:700;margin-bottom:6px}
.platform-desc{font-size:12px;color:var(--text-3);line-height:1.5}
.platform-tag{display:inline-flex;align-items:center;gap:4px;margin-top:12px;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  padding:4px 10px;border-radius:var(--r-f)}
.platform-tag-live   {background:var(--green-bg);color:var(--green);border:1px solid var(--green-bd)}
.platform-tag-soon   {background:var(--bg-muted);color:var(--text-3);border:1px solid var(--border)}

/* ── Feature Cards ──────────────────────────────────────────── */
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}
.feature-card{padding:28px}
.feature-icon{width:46px;height:46px;border-radius:var(--r-md);
  background:var(--primary-bg);display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;border:1px solid var(--primary-bd)}
.feature-icon svg{width:22px;height:22px;color:var(--primary)}
.feature-title{font-size:15px;font-weight:700;margin-bottom:8px}
.feature-desc{font-size:14px;color:var(--text-2);line-height:1.65}

/* ── How it Works ───────────────────────────────────────────── */
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;position:relative}
.steps-grid::before{content:'';position:absolute;top:28px;
  left:calc(16.6% + 14px);right:calc(16.6% + 14px);height:1.5px;
  background:linear-gradient(90deg,var(--primary-bd),var(--primary),var(--primary-bd))}
.step{text-align:center;padding:20px 14px}
.step-num{width:56px;height:56px;border-radius:50%;margin:0 auto 20px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;font-weight:800;position:relative;z-index:1;
  border:2px solid var(--primary-bd);background:var(--surface);color:var(--primary)}
.step:nth-child(2) .step-num{background:var(--primary);color:#fff;
  border-color:var(--primary);box-shadow:var(--sh-blue)}
.step-title{font-size:16px;font-weight:700;margin-bottom:8px}
.step-desc{font-size:13px;color:var(--text-2);line-height:1.65}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list{display:flex;flex-direction:column;gap:8px;max-width:720px;margin:0 auto}
.faq-item{border-radius:var(--r-lg);overflow:hidden;transition:var(--t)}
.faq-item.open{border-color:var(--primary);box-shadow:var(--sh-sm)}
.faq-btn{display:flex;align-items:center;justify-content:space-between;
  width:100%;padding:16px 20px;font-size:15px;font-weight:600;
  text-align:left;color:var(--text);transition:var(--t);gap:12px;
  background:var(--surface);border:none;cursor:pointer;font-family:var(--font)}
.faq-btn:hover{background:var(--bg-subtle)}
.faq-icon{flex-shrink:0;width:24px;height:24px;border-radius:50%;
  background:var(--bg-muted);display:flex;align-items:center;justify-content:center;
  transition:transform .2s var(--ease)}
.faq-icon svg{width:14px;height:14px;color:var(--text-3)}
.faq-item.open .faq-icon{transform:rotate(45deg);background:var(--primary-bg)}
.faq-item.open .faq-icon svg{color:var(--primary)}
.faq-body{display:none;padding:0 20px 18px;font-size:14px;color:var(--text-2);line-height:1.75}
.faq-item.open .faq-body{display:block}

/* ── Blog ───────────────────────────────────────────────────── */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:22px}
.blog-card{overflow:hidden;display:flex;flex-direction:column}
.blog-card:hover{transform:translateY(-4px);border-color:var(--primary-bd);box-shadow:var(--sh-lg)}
.blog-thumb{aspect-ratio:16/9;background:var(--primary-bg);
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.blog-thumb svg{width:40px;height:40px;color:var(--primary);opacity:.4}
.blog-cat-tag{position:absolute;top:12px;left:12px;background:var(--primary);
  color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;padding:3px 9px;border-radius:var(--r-f)}
.blog-body{padding:20px;flex:1;display:flex;flex-direction:column}
.blog-date{font-size:12px;color:var(--text-3);margin-bottom:8px}
.blog-title{font-size:16px;font-weight:700;line-height:1.35;
  margin-bottom:8px;flex:1;color:var(--text)}
.blog-excerpt{font-size:13px;color:var(--text-2);line-height:1.6;margin-bottom:16px}
.blog-foot{display:flex;align-items:center;justify-content:space-between;
  padding-top:14px;border-top:1px solid var(--border)}
.blog-author{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-3)}
.blog-avatar{width:24px;height:24px;border-radius:50%;background:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.blog-read{display:flex;align-items:center;gap:3px;font-size:13px;
  font-weight:600;color:var(--primary)}
.blog-read svg{width:14px;height:14px}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}
.testimonial{padding:26px}
.testimonial:hover{box-shadow:var(--sh-md);border-color:var(--primary-bd)}
.t-stars{display:flex;gap:3px;margin-bottom:12px}
.t-stars svg{width:16px;height:16px;color:#f59e0b;fill:#f59e0b}
.t-text{font-size:14px;color:var(--text-2);line-height:1.75;
  margin-bottom:18px;font-style:italic}
.t-author{display:flex;align-items:center;gap:10px}
.t-avatar{width:38px;height:38px;border-radius:50%;background:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:14px;color:#fff;flex-shrink:0}
.t-name{font-size:13px;font-weight:600}
.t-role{font-size:12px;color:var(--text-3)}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner{background:linear-gradient(135deg,var(--blue-700),var(--blue-600) 50%,var(--blue-500));
  border-radius:var(--r-2xl);padding:72px 48px;text-align:center;
  position:relative;overflow:hidden;box-shadow:var(--sh-xl)}
.cta-banner::before{content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23fff' fill-opacity='.07'/%3E%3C/svg%3E");
  pointer-events:none}
.cta-banner>*{position:relative;z-index:1}
.cta-banner h2{color:#fff;margin-bottom:12px}
.cta-banner p{color:rgb(255 255 255/.8);font-size:17px;margin-bottom:32px}
.cta-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ── Section Headers ────────────────────────────────────────── */
.section-head{margin-bottom:48px}
.section-head.center{text-align:center}
.section-head.center .section-desc{margin-left:auto;margin-right:auto}
.section-eyebrow{margin-bottom:12px}
.section-title{margin-bottom:12px}
.section-desc{font-size:17px;color:var(--text-2);max-width:540px;line-height:1.7}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-head{padding:calc(var(--nav-h) + 52px) 0 52px;
  background:linear-gradient(160deg,var(--bg) 0%,var(--bg-subtle) 100%);
  border-bottom:1px solid var(--border);text-align:center}
.breadcrumb{display:flex;align-items:center;justify-content:center;gap:6px;
  font-size:13px;color:var(--text-3);margin-bottom:12px}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb svg{width:12px;height:12px}

/* ── Prose (legal pages) ────────────────────────────────────── */
.prose{max-width:780px;margin:0 auto;padding:64px 24px}
.prose-updated{display:flex;align-items:center;gap:8px;
  background:var(--primary-bg);border:1px solid var(--primary-bd);
  border-radius:var(--r-lg);padding:12px 16px;font-size:13px;
  color:var(--primary);margin-bottom:36px}
.prose-updated svg{width:16px;height:16px;flex-shrink:0}
.prose h2{font-size:22px;font-weight:700;margin:40px 0 12px;color:var(--text)}
.prose h3{font-size:17px;font-weight:600;margin:28px 0 10px;color:var(--text)}
.prose p{font-size:15px;line-height:1.8;color:var(--text-2);margin-bottom:14px}
.prose ul,.prose ol{margin:12px 0 14px 20px}
.prose li{font-size:15px;line-height:1.7;color:var(--text-2);margin-bottom:6px}
.prose a{color:var(--primary)}
.prose a:hover{text-decoration:underline}

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:56px;padding:72px 0}
.contact-info h3{font-size:22px;font-weight:700;margin-bottom:12px}
.contact-info p{color:var(--text-2);margin-bottom:24px;line-height:1.7}
.contact-item{display:flex;gap:14px;margin-bottom:20px}
.contact-item-icon{width:42px;height:42px;border-radius:var(--r-md);
  background:var(--primary-bg);border:1px solid var(--primary-bd);
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.contact-item-icon svg{width:20px;height:20px;color:var(--primary)}
.contact-item-lbl{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--text-3);margin-bottom:2px}
.contact-item-val{font-size:14px;font-weight:500;color:var(--text)}

/* ── Status Page ────────────────────────────────────────────── */
.status-overall{display:flex;align-items:center;gap:16px;
  padding:24px 28px;margin-bottom:24px}
.status-overall-icon{width:48px;height:48px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.status-overall-icon.ok{background:var(--green-bg);border:2px solid var(--green-bd)}
.status-overall-icon.ok svg{width:22px;height:22px;color:var(--green)}
.status-services{display:flex;flex-direction:column;gap:8px}
.status-row{display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;gap:16px}
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}
.status-dot.green {background:#22c55e;box-shadow:0 0 0 3px rgb(34 197 94/.2)}
.status-dot.amber {background:#f59e0b;box-shadow:0 0 0 3px rgb(245 158 11/.2)}
.status-dot.red   {background:#ef4444;box-shadow:0 0 0 3px rgb(239 68 68/.2)}
.status-dot.gray  {background:var(--text-3);box-shadow:none}

/* ── API Docs ───────────────────────────────────────────────── */
.api-layout{display:grid;grid-template-columns:210px 1fr;gap:48px;padding:56px 0}
.api-nav{position:sticky;top:80px;height:fit-content}
.api-nav-section{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--text-3);padding:14px 10px 6px}
.api-nav a{display:block;font-size:13px;color:var(--text-2);
  padding:6px 10px;border-radius:var(--r-sm);transition:var(--t);
  border-left:2px solid transparent}
.api-nav a:hover,.api-nav a.active{color:var(--primary);
  border-left-color:var(--primary);background:var(--primary-bg)}
.api-content h2{font-size:26px;font-weight:700;margin-bottom:12px}
.api-content h3{font-size:18px;font-weight:700;margin:36px 0 10px}
.api-content p{color:var(--text-2);font-size:15px;line-height:1.75;margin-bottom:12px}
.endpoint-pill{display:inline-flex;align-items:center;gap:10px;
  background:var(--bg-subtle);border:1px solid var(--border);
  border-radius:var(--r-md);padding:9px 16px;font-family:monospace;
  font-size:14px;margin:10px 0 20px}
.method{padding:3px 8px;border-radius:4px;font-size:11px;font-weight:700;text-transform:uppercase}
.method.post{background:var(--amber-bg);color:var(--amber);border:1px solid var(--amber-bd)}
.method.get {background:var(--green-bg);color:var(--green);border:1px solid var(--green-bd)}
.code-block{background:var(--blue-900);border-radius:var(--r-lg);padding:20px 22px;
  font-family:'Courier New',monospace;font-size:13px;line-height:1.7;
  color:#94a3b8;overflow-x:auto;margin:10px 0 24px}
.code-block .k{color:#7dd3fc}
.code-block .s{color:#86efac}
.code-block .n{color:#fca5a5}
[data-theme=dark] .code-block{background:#000}
.params-table{width:100%;border-collapse:collapse;font-size:13px;margin:10px 0 24px}
.params-table th{background:var(--bg-subtle);font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.07em;color:var(--text-3);
  padding:9px 14px;text-align:left;border-bottom:1px solid var(--border)}
.params-table td{padding:10px 14px;border-bottom:1px solid var(--border);color:var(--text-2)}
.params-table code{background:var(--primary-bg);color:var(--primary);
  padding:2px 6px;border-radius:4px;font-family:monospace;font-size:12px}

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-wrap{display:flex;min-height:100vh}
.admin-side{width:var(--sidebar-w);background:var(--blue-900);
  padding:16px 10px;position:fixed;top:0;left:0;height:100vh;
  overflow-y:auto;z-index:200;display:flex;flex-direction:column}
[data-theme=dark] .admin-side{background:#111113;border-right:1px solid var(--border)}
.admin-logo{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:800;
  color:#fff;padding:10px 12px;margin-bottom:20px;text-decoration:none}
.admin-logo img{height:28px;width:auto}
.admin-logo-icon{width:30px;height:30px;border-radius:8px;background:var(--primary);
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.admin-logo-icon svg{width:16px;height:16px;color:#fff}
.admin-section-label{font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;color:rgba(255 255 255/.3);padding:14px 12px 5px}
.admin-nav-item{display:flex;align-items:center;gap:9px;padding:9px 12px;
  border-radius:var(--r-sm);font-size:13px;font-weight:500;
  color:rgba(255 255 255/.65);transition:var(--t);text-decoration:none;
  width:100%;font-family:var(--font)}
.admin-nav-item svg{width:16px;height:16px;flex-shrink:0}
.admin-nav-item:hover{background:rgba(255 255 255/.08);color:#fff}
.admin-nav-item.active{background:var(--primary);color:#fff}
.admin-main{margin-left:var(--sidebar-w);flex:1;background:var(--bg-subtle);min-height:100vh}
.admin-topbar{height:58px;background:var(--surface);border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;padding:0 24px;
  position:sticky;top:0;z-index:100;box-shadow:var(--sh-xs)}
.admin-topbar-title{font-size:16px;font-weight:700}
.admin-page{padding:28px}
.admin-page-title{margin-bottom:4px}
.admin-page-desc{font-size:14px;color:var(--text-3);margin-bottom:24px}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:24px}
.kpi-card{padding:20px}
.kpi-label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;
  text-transform:uppercase;letter-spacing:.07em;color:var(--text-3);margin-bottom:8px}
.kpi-label svg{width:14px;height:14px;color:var(--primary)}
.kpi-value{font-size:28px;font-weight:800;color:var(--primary);letter-spacing:-.02em;margin-bottom:4px}
.kpi-trend{font-size:12px;display:flex;align-items:center;gap:3px}
.kpi-trend.up  {color:var(--green)}
.kpi-trend.down{color:var(--red)}
.kpi-trend svg {width:13px;height:13px}
.admin-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:20px}
.admin-card-title{font-size:14px;font-weight:700;margin-bottom:16px;
  display:flex;align-items:center;justify-content:space-between}
.admin-card-title a,.admin-card-title button{font-size:12px;font-weight:600;
  color:var(--primary);background:none;border:none;cursor:pointer;font-family:var(--font)}
.data-table{width:100%;border-collapse:collapse;font-size:13px}
.data-table th{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--text-3);padding:8px 12px;
  border-bottom:1px solid var(--border);text-align:left}
.data-table td{padding:10px 12px;border-bottom:1px solid var(--border);color:var(--text-2)}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover td{background:var(--bg-subtle)}
.platform-toggle-grid{display:flex;flex-direction:column;gap:10px}
.platform-toggle-row{display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-radius:var(--r-lg);background:var(--surface);
  border:1px solid var(--border)}
.platform-toggle-info{display:flex;align-items:center;gap:12px}
.platform-toggle-icon{width:38px;height:38px;border-radius:var(--r-md);
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.platform-toggle-name{font-size:14px;font-weight:600}
.platform-toggle-status{font-size:12px;color:var(--text-3)}
.platform-toggle-actions{display:flex;align-items:center;gap:8px}
/* Toggle switch */
.toggle-sw{position:relative;width:42px;height:24px;display:inline-block;flex-shrink:0}
.toggle-sw input{opacity:0;width:0;height:0}
.toggle-track{position:absolute;cursor:pointer;inset:0;background:var(--border-2);
  border-radius:var(--r-f);transition:var(--t)}
.toggle-track::before{content:'';position:absolute;width:18px;height:18px;
  left:3px;bottom:3px;background:#fff;border-radius:50%;transition:var(--t);
  box-shadow:var(--sh-sm)}
.toggle-sw input:checked+.toggle-track{background:var(--primary)}
.toggle-sw input:checked+.toggle-track::before{transform:translateX(18px)}

/* Bar chart */
.bar-chart{display:flex;align-items:flex-end;gap:6px;height:140px;padding:8px 0 0}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.bar-fill{width:100%;border-radius:4px 4px 0 0;min-height:3px;
  background:var(--primary);opacity:.7;transition:opacity var(--t)}
.bar-fill:hover{opacity:1}
.bar-lbl{font-size:10px;color:var(--text-3);margin-top:4px}

/* ── Cookie Manager ─────────────────────────────────────────── */
.cookie-card{padding:22px}
.cookie-status{display:flex;align-items:center;gap:10px;padding:14px 16px;
  border-radius:var(--r-md);margin-bottom:16px}
.cookie-status.valid  {background:var(--green-bg);border:1px solid var(--green-bd)}
.cookie-status.invalid{background:var(--red-bg);  border:1px solid var(--red-bd)}
.cookie-status.missing{background:var(--bg-muted);border:1px solid var(--border)}
.cookie-status svg{width:18px;height:18px;flex-shrink:0}
.cookie-status.valid   svg{color:var(--green)}
.cookie-status.invalid svg{color:var(--red)}
.cookie-status.missing svg{color:var(--text-3)}
.cookie-status-text{font-size:13px;font-weight:500}
.cookie-upload-zone{border:2px dashed var(--border-2);border-radius:var(--r-lg);
  padding:32px;text-align:center;cursor:pointer;transition:var(--t)}
.cookie-upload-zone:hover,.cookie-upload-zone.dragover{border-color:var(--primary);
  background:var(--primary-bg)}
.cookie-upload-zone svg{width:36px;height:36px;color:var(--text-3);margin:0 auto 12px}

/* ── Login ──────────────────────────────────────────────────── */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--bg-subtle);padding:24px}
.login-card{width:100%;max-width:400px;padding:40px;box-shadow:var(--sh-xl);border-radius:var(--r-2xl)}
.login-card .logo{text-align:center;margin-bottom:28px}
.login-card h2{font-size:22px;font-weight:700;text-align:center;margin-bottom:6px}
.login-card .sub{text-align:center;margin-bottom:24px}
.alert{padding:12px 14px;border-radius:var(--r-md);font-size:13px;
  margin-bottom:16px;display:flex;align-items:center;gap:8px}
.alert svg{width:16px;height:16px;flex-shrink:0}
.alert-error{background:var(--red-bg);border:1px solid var(--red-bd);color:var(--red)}
.alert-success{background:var(--green-bg);border:1px solid var(--green-bd);color:var(--green)}
.alert-info{background:var(--primary-bg);border:1px solid var(--primary-bd);color:var(--primary)}

/* ── Footer ─────────────────────────────────────────────────── */
.footer{background:var(--blue-900);padding:72px 0 0}
[data-theme=dark] .footer{background:#111113;border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;
  padding-bottom:48px;border-bottom:1px solid rgba(255 255 255/.1)}
.footer-brand p{font-size:14px;color:rgba(255 255 255/.55);line-height:1.7;
  margin-bottom:20px;margin-top:12px;max-width:260px}
.footer-logo-wrap{display:flex;align-items:center;gap:9px;color:#fff;
  font-size:18px;font-weight:800;text-decoration:none}
.footer-logo-wrap img{height:28px;width:auto}
.footer-logo-icon{width:30px;height:30px;border-radius:8px;background:var(--primary);
  display:flex;align-items:center;justify-content:center}
.footer-logo-icon svg{width:15px;height:15px;color:#fff}
.socials{display:flex;gap:8px}
.social-btn{width:36px;height:36px;border-radius:var(--r-md);
  background:rgba(255 255 255/.08);border:1px solid rgba(255 255 255/.12);
  display:flex;align-items:center;justify-content:center;transition:var(--t)}
.social-btn:hover{background:var(--primary);border-color:var(--primary);transform:translateY(-2px)}
.social-btn svg{width:16px;height:16px;fill:rgba(255 255 255/.7)}
.social-btn:hover svg{fill:#fff}
.footer-col h4{font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:rgba(255 255 255/.35);margin-bottom:16px}
.footer-col ul li+li{margin-top:9px}
.footer-col ul a{font-size:14px;color:rgba(255 255 255/.6);transition:var(--t)}
.footer-col ul a:hover{color:#fff}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;padding:20px 0}
.footer-copy{font-size:13px;color:rgba(255 255 255/.35)}
.footer-bottom-links{display:flex;gap:18px}
.footer-bottom-links a{font-size:13px;color:rgba(255 255 255/.35);transition:var(--t)}
.footer-bottom-links a:hover{color:rgba(255 255 255/.7)}

/* ── Cookie Banner ──────────────────────────────────────────── */
#cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9990;
  background:var(--surface);border-top:1px solid var(--border);
  padding:14px 24px;display:none;align-items:center;
  justify-content:space-between;gap:16px;flex-wrap:wrap;box-shadow:var(--sh-lg)}
#cookie-banner.show{display:flex}
#cookie-banner p{font-size:13px;color:var(--text-2);max-width:660px;margin:0}
#cookie-banner p a{color:var(--primary)}
.cookie-actions{display:flex;gap:8px;flex-shrink:0}

/* ── Notification Toast ─────────────────────────────────────── */
.toast{position:fixed;bottom:24px;right:24px;z-index:9999;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);padding:14px 16px;
  display:flex;align-items:flex-start;gap:10px;
  box-shadow:var(--sh-xl);max-width:340px;min-width:280px;
  transform:translateY(110%);opacity:0;transition:var(--t-s);pointer-events:none}
.toast.show{transform:translateY(0);opacity:1;pointer-events:auto}
.toast svg{width:18px;height:18px;flex-shrink:0;margin-top:1px}
.toast-success{border-left:3px solid var(--green)}
.toast-success svg{color:var(--green);fill:var(--green)}
.toast-error  {border-left:3px solid var(--red)}
.toast-error   svg{color:var(--red);fill:var(--red)}
.toast-info   {border-left:3px solid var(--primary)}
.toast-info    svg{color:var(--primary)}
.toast-body{flex:1}
.toast-title{font-size:13px;font-weight:600;margin-bottom:2px}
.toast-msg  {font-size:12px;color:var(--text-2);line-height:1.5}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner{width:18px;height:18px;border:2px solid rgba(255 255 255/.3);
  border-top-color:#fff;border-radius:50%;animation:spin .65s linear infinite;display:inline-block}
.spinner-blue{border-color:var(--primary-bd);border-top-color:var(--primary)}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Skeleton ───────────────────────────────────────────────── */
.skeleton{background:linear-gradient(90deg,var(--bg-muted) 25%,var(--bg-subtle) 50%,var(--bg-muted) 75%);
  background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--r-sm)}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ── Scroll-reveal ──────────────────────────────────────────── */
.reveal{opacity:0;transform:translateY(22px);
  transition:opacity .55s var(--ease),transform .55s var(--ease)}
.reveal.in{opacity:1;transform:translateY(0)}
.reveal-1{transition-delay:.08s}
.reveal-2{transition-delay:.16s}
.reveal-3{transition-delay:.24s}

/* ── Misc ───────────────────────────────────────────────────── */
.divider{height:1px;background:var(--border);margin:32px 0}
.tag{display:inline-flex;align-items:center;gap:4px;background:var(--bg-muted);
  color:var(--text-2);border-radius:var(--r-sm);padding:3px 8px;font-size:12px;font-weight:500}

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .admin-side{width:220px}
  .admin-main{margin-left:220px}
  .admin-grid{grid-template-columns:1fr}
  .api-layout{grid-template-columns:1fr}
  .api-nav{display:none}
  .contact-grid{grid-template-columns:1fr;gap:32px}
  .steps-grid::before{display:none}
}
@media(max-width:768px){
  :root{--nav-h:58px}
  .section{padding:60px 0}
  .section-sm{padding:44px 0}
  .container{padding:0 16px}
  .nav-links,.nav-actions .btn{display:none}
  .nav-hamburger{display:flex}
  .hero{padding:calc(var(--nav-h)+44px) 0 56px}
  .downloader{flex-direction:column;padding:10px;border-radius:var(--r-xl);gap:8px}
  .downloader-input{text-align:center;padding:10px 4px;font-size:15px;width:100%}
  .downloader-actions{width:100%}
  .downloader-actions .btn{flex:1}
  .platforms-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:1fr}
  .steps-grid{grid-template-columns:1fr;gap:20px}
  .testimonials-grid{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .stats-row{grid-template-columns:repeat(2,1fr)}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-bottom{flex-direction:column;text-align:center}
  .cta-banner{padding:44px 20px}
  .cta-actions{flex-direction:column}
  .cta-actions .btn{width:100%}
  .admin-side{display:none}
  .admin-main{margin-left:0}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .page-head{padding:calc(var(--nav-h)+32px) 0 32px}
}
@media(max-width:480px){
  .stats-row{grid-template-columns:1fr 1fr}
  .platforms-grid{grid-template-columns:1fr 1fr}
  .kpi-grid{grid-template-columns:1fr}
  .result-header{flex-direction:column}
}
