﻿/* ============================================================
   SaveWave.lol — Premium Stylesheet
   ============================================================ */

:root {
  --bg: #050507;
  --bg-2: #0a0a0f;
  --surface: #0f0f17;
  --surface-2: #16161f;
  --border: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.16);

  --text: #ffffff;
  --text-muted: #ffffff;
  --text-dim: #a1a1aa;

  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-3: #93c5fd;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', "SF Mono", Monaco, Consolas, monospace;

  --max: 1200px;
  --narrow: 800px;
  --header-h: 84px;

  --t: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }

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

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: #fff; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 0.5rem; font-weight: 600; }

p { color: var(--text-dim); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-2); text-decoration: none; transition: color var(--t); }
a:hover { color: #fff; }

strong { color: #fff; font-weight: 600; }

code {
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--accent-3);
  word-break: break-word;
}

pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: #fff; font-size: 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { section { padding: 5.5rem 0; } }

/* ============================================================
   HEADER — transparent by default, glass on scroll
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: rgba(255,255,255,0.07);
}

.site-header.scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 4px 20px -6px rgba(59, 130, 246, 0.35);
}

.logo:hover { text-decoration: none; }
.logo:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 28px -6px rgba(59, 130, 246, 0.6);
}

/* WHITE nav links — forced */
.nav-desktop { display: none; gap: 0.15rem; align-items: center; }
@media (min-width: 1020px) { .nav-desktop { display: flex; } }

.nav-desktop a,
.nav-desktop a:not(.nav-cta) {
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.88;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-desktop a:not(.nav-cta):hover {
  color: #ffffff !important;
  opacity: 1;
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff !important;
  color: #000000 !important;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 14px -4px rgba(255,255,255,0.15);
  margin-left: 0.5rem;
  opacity: 1 !important;
}
.nav-cta svg { color: #000000 !important; stroke: #000000 !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 10px 32px -6px rgba(59, 130, 246, 0.55);
  color: #000000 !important;
  text-decoration: none;
  opacity: 1 !important;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
  color: #fff;
  transition: all var(--t);
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
@media (min-width: 1020px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 22px; height: 22px; }

.nav-mobile { display: none; border-top: 1px solid var(--border); padding: 0.75rem 0 1.25rem; background: rgba(5, 5, 7, 0.98); backdrop-filter: blur(20px); }
.nav-mobile.open { display: block; animation: slideDown 0.25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile a { display: block; padding: 0.9rem 1rem; color: #ffffff !important; font-size: 1rem; border-bottom: 1px solid var(--border); transition: all var(--t); border-radius: 8px; text-decoration: none; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: rgba(255,255,255,0.05); padding-left: 1.25rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary { background: #fff; color: #000; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255,255,255,0.15);
  color: #000; text-decoration: none;
}

.btn-ghost { background: transparent; color: #fff; border-color: var(--border-2); }
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
  color: #fff; text-decoration: none;
  transform: translateY(-1px);
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; border-radius: 14px; }

/* HERO */
.hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; text-align: center; }
@media (min-width: 768px) { .hero { padding: 7rem 0 5rem; } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  font-size: 0.78rem; font-weight: 500;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-accent {
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.hero-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.7;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #fff;
  opacity: 0.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-bottom: 1.5rem; }
.hero-meta { font-size: 0.85rem; color: #fff; opacity: 0.5; }

/* APP MOCKUP */
.mockup-section { padding: 2rem 0 5rem; }
.mockup-section .container { max-width: 1100px; }
.mockup-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.mockup-head .section-label { justify-content: center; display: inline-flex; }
.mockup-head h2 { margin-bottom: 0.75rem; }
.mockup-head p { color: #fff; opacity: 0.65; }

.app-window {
  background: #0a0a0f;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 120px -30px rgba(59, 130, 246, 0.25);
  font-size: 0.82rem;
}

.app-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #0f0f17; border-bottom: 1px solid var(--border); }
.app-dots { display: flex; gap: 6px; }
.app-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.app-dots span:nth-child(1) { background: #ff5f57; }
.app-dots span:nth-child(2) { background: #febc2e; }
.app-dots span:nth-child(3) { background: #28c840; }
.app-title { color: #fff; opacity: 0.7; font-size: 0.82rem; font-weight: 500; }
.app-status { display: flex; align-items: center; gap: 0.4rem; color: var(--success); font-size: 0.78rem; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.app-toolbar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; background: #0c0c13; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #fff;
  opacity: 0.75;
  font-size: 0.78rem; font-weight: 500;
  font-family: inherit;
  cursor: default;
}
.tool-btn.primary {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.app-body { display: grid; grid-template-columns: 200px 1fr 280px; min-height: 320px; }
@media (max-width: 900px) { .app-body { grid-template-columns: 1fr; } .app-side, .app-console { display: none; } }

.app-side { background: #08080d; border-right: 1px solid var(--border); padding: 0.85rem 0; }
.side-head { padding: 0 1rem 0.6rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; opacity: 0.4; font-weight: 600; }
.side-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 1rem; color: #fff; opacity: 0.75; font-size: 0.82rem; }
.side-item.active { background: rgba(59, 130, 246, 0.08); color: #fff; opacity: 1; border-left: 2px solid var(--accent); }
.side-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.side-item.active .side-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.app-main { padding: 1rem 1.25rem; background: #050507; font-family: var(--mono); font-size: 0.78rem; line-height: 1.75; overflow: hidden; }
.code-line { display: flex; gap: 1rem; white-space: nowrap; }
.code-line .ln { color: #fff; opacity: 0.35; user-select: none; min-width: 22px; text-align: right; }
.code-line .ck { color: #c084fc; }
.code-line .cf { color: #60a5fa; }
.code-line .cs { color: #86efac; }
.code-line .cn { color: #fbbf24; }

.app-console { background: #08080d; border-left: 1px solid var(--border); padding: 0.85rem 0; font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; overflow: hidden; }
.console-head { padding: 0 1rem 0.6rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; opacity: 0.4; font-weight: 600; }
.log { padding: 0.1rem 1rem; color: #fff; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .t { opacity: 0.5; }
.log .hl { color: var(--accent-3); opacity: 1; }
.log .ok { color: var(--success); opacity: 1; }
.log .warn { color: var(--warning); opacity: 1; }

/* METRICS */
.metrics-section { padding: 3rem 0 5rem; }
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .metrics { grid-template-columns: 1fr; } }

.metric { padding: 2.5rem 1.75rem; border-right: 1px solid var(--border); text-align: left; transition: background var(--t); }
.metric:hover { background: rgba(59, 130, 246, 0.03); }
.metric:last-child { border-right: 0; }
@media (max-width: 900px) { .metric:nth-child(2n) { border-right: 0; } .metric:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 500px) { .metric { border-right: 0; } .metric:nth-child(n+2) { border-top: 1px solid var(--border); } }

.metric-val { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.5rem; }
.metric-icon { color: var(--accent-2); opacity: 0.75; flex-shrink: 0; }
.metric-slash { color: #fff; opacity: 0.4; font-weight: 400; margin: 0 0.05em; }
.metric-unit { font-size: 0.55em; font-weight: 600; color: var(--accent-2); margin-left: 0.15em; letter-spacing: 0; }
.metric-badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent-2); font-size: 0.6em; font-weight: 600; letter-spacing: 0; }
.metric-lbl { font-size: 0.85rem; color: #fff; opacity: 0.6; font-weight: 400; line-height: 1.4; }

/* SECTION LABELS */
.section-label { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: #fff; opacity: 0.7; font-weight: 500; margin-bottom: 1.25rem; }
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 3rem; color: #fff; }

/* BENTO */
.features-section { padding: 5rem 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 1rem; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--t); position: relative; overflow: hidden; }
.bento-card:hover { border-color: var(--border-hover); transform: translateY(-2px); background: var(--surface-2); }
.bento-large { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.25rem; background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 60%), var(--surface); }
@media (max-width: 900px) { .bento-large { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 600px) { .bento-large { grid-column: span 1; } }
.bento-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); font-weight: 600; margin-bottom: 0.85rem; }
.bento-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 600; }
.bento-large h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-bottom: 0.85rem; letter-spacing: -0.02em; }
.bento-card p { font-size: 0.92rem; color: #fff; opacity: 0.65; margin-bottom: 1rem; line-height: 1.6; }
.bento-link { font-size: 0.88rem; font-weight: 500; color: var(--accent-2); }
.bento-link:hover { color: #fff; }

/* STEPS */
.install-section { padding: 5rem 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--t); }
.step:hover { border-color: var(--border-hover); background: var(--surface-2); }
.step-num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-2); font-weight: 500; margin-bottom: 1.25rem; letter-spacing: 0.05em; }
.step h3 { margin-bottom: 0.6rem; font-weight: 600; }
.step p { font-size: 0.92rem; color: #fff; opacity: 0.65; line-height: 1.6; }
.section-cta { margin-top: 2.5rem; text-align: center; }

/* SAFETY */
.safety-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.safety-grid { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) { .safety-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.safety-label { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: #fff; opacity: 0.7; font-weight: 500; align-self: flex-start; }
.safety-copy p { font-size: 0.98rem; line-height: 1.75; color: #fff; opacity: 0.75; }
.safety-copy p + p { margin-top: 1.25rem; }
.safety-copy a { color: var(--accent-2); border-bottom: 1px solid rgba(96, 165, 250, 0.4); padding-bottom: 1px; }
.safety-copy a:hover { color: #fff; border-bottom-color: #fff; }

/* FAQ */
.faq-section { padding: 5rem 0; }
.faq-list { max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.5rem 0; font-size: 1.05rem; font-weight: 500; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; transition: all var(--t); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: #fff; opacity: 0.5; transition: all var(--t); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent-2); opacity: 1; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-body { padding: 0 0 1.5rem; color: #fff; opacity: 0.7; font-size: 0.95rem; line-height: 1.7; max-width: 720px; }
.faq-body p { margin: 0; }
.faq-body code { font-size: 0.82rem; }

/* FINAL CTA */
.final-cta { padding: 6rem 0; text-align: center; border-top: 1px solid var(--border); background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.08) 0%, transparent 60%); }
.final-cta h2 { margin-bottom: 1rem; }
.final-cta > .container > p { color: #fff; opacity: 0.7; margin-bottom: 2rem; }

/* FOOTER — white text enforced */
.site-footer { border-top: 1px solid var(--border); background: #030304; padding: 4rem 0 2rem; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff !important;
  opacity: 1;
  margin-bottom: 1.35rem;
  font-weight: 700;
}

.footer-grid ul { list-style: none; display: grid; gap: 0.65rem; }

.footer-grid a,
.footer-grid a:link,
.footer-grid a:visited,
.site-footer a {
  color: #ffffff !important;
  font-size: 0.93rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
  text-decoration: none;
  letter-spacing: -0.005em;
  display: inline-block;
}

.footer-grid a:hover,
.site-footer a:hover {
  color: #ffffff !important;
  opacity: 1;
  transform: translateX(3px);
}

.footer-disclaimer { border-top: 1px solid var(--border); padding-top: 2rem; font-size: 0.82rem; color: #fff; opacity: 0.5; line-height: 1.7; }
.footer-disclaimer p + p { margin-top: 0.75rem; }
.footer-disclaimer strong { color: #fff; opacity: 0.75; font-weight: 500; }

/* ============================================================
   TERMINAL (install page)
   ============================================================ */
.install-mockup { padding: 4rem 0; }
.install-mockup .container { max-width: 1050px; }

.terminal {
  background: #0a0a0f;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 120px -30px rgba(59, 130, 246, 0.2);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #0f0f17; border-bottom: 1px solid var(--border); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title { color: #fff; opacity: 0.6; font-size: 0.82rem; font-weight: 500; }
.terminal-badge { display: flex; align-items: center; gap: 0.4rem; color: var(--warning); font-size: 0.76rem; font-weight: 500; }
.terminal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 10px var(--warning); }

.terminal-body { padding: 1.25rem 1.5rem; background: #050507; line-height: 1.85; overflow-x: auto; }
.term-line { display: flex; align-items: baseline; gap: 0.6rem; white-space: nowrap; color: #d4d4d8; font-family: var(--mono); }
.term-gap { height: 0.85rem; }
.term-output { color: #fff; opacity: 0.7; }
.term-lbl { color: #fff; opacity: 0.9; }
.term-sep { color: #fff; opacity: 0.4; }
.term-key { color: #60a5fa; font-weight: 600; }
.term-hash { color: #93c5fd; }
.term-path { color: #fff; opacity: 0.4; }
.term-prompt { color: #60a5fa; font-weight: 600; flex-shrink: 0; }
.term-cmd { color: #f5f5f7; }
.term-str { color: #86efac; }
.term-success { color: #86efac; }
.term-check { color: var(--success); font-weight: 700; }
.term-ok { color: #86efac; }
.term-cursor { color: #60a5fa; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.terminal-foot { border-top: 1px solid var(--border); background: #0a0a0f; padding: 1.25rem 1.5rem; }
.terminal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 700px) { .terminal-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .terminal-stats { grid-template-columns: 1fr; } }
.tstat { text-align: left; }
.tstat-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; opacity: 0.4; font-weight: 600; margin-bottom: 0.3rem; font-family: var(--font); }
.tstat-val { font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.tstat-ok { color: var(--success); }

/* LEGACY */
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid transparent; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--accent-3); border-color: rgba(59, 130, 246, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.download-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-xl); padding: 2rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), 0 0 80px -40px rgba(59, 130, 246, 0.3); margin-bottom: 2rem; }
.download-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.download-meta { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .download-meta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .download-meta { grid-template-columns: repeat(3, 1fr); } }
.meta-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; }
.meta-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; opacity: 0.5; margin-bottom: 0.35rem; font-weight: 600; }
.meta-value { font-size: 0.95rem; color: #fff; font-family: var(--mono); word-break: break-all; font-weight: 500; }
.meta-value.plain { font-family: var(--font); font-weight: 600; }
.hash-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.hash-box code { display: block; font-size: 0.76rem; line-height: 1.6; word-break: break-all; background: none; border: 0; padding: 0; color: var(--accent-3); }
.download-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; transition: all var(--t); height: 100%; }
.card:hover { border-color: var(--border-hover); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: #fff; opacity: 0.65; font-size: 0.93rem; margin-bottom: 0.75rem; }
.card a { color: var(--accent-2); font-weight: 500; font-size: 0.92rem; }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius); background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon img { width: 22px; height: 22px; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.screenshot-wrap { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: var(--bg-2); }
.screenshot-wrap img { width: 100%; height: auto; display: block; }
.screenshot-caption { padding: 0.9rem 1rem; font-size: 0.85rem; color: #fff; opacity: 0.6; border-top: 1px solid var(--border); text-align: center; }

.notice { display: flex; gap: 0.85rem; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid; font-size: 0.93rem; margin: 1rem 0; align-items: flex-start; line-height: 1.55; }
.notice-info { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.25); color: var(--accent-3); }
.notice-warning { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.notice-danger { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.25); color: #fca5a5; }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.7rem 0; }

ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.5rem; color: #fff; opacity: 0.75; }
li::marker { color: var(--accent-2); }

img, picture, svg, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   FINAL OVERRIDES — enforced for specificity
   ============================================================ */

/* CTA button — always white bg, black text + icon */
.site-header .nav-desktop a.nav-cta,
.site-header .nav-desktop a.nav-cta:link,
.site-header .nav-desktop a.nav-cta:visited,
.site-header .nav-desktop a.nav-cta:hover,
.site-header .nav-desktop a.nav-cta:active {
  background: #ffffff !important;
  color: #000000 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.site-header .nav-desktop a.nav-cta svg,
.site-header .nav-desktop a.nav-cta svg * {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: none !important;
}

/* Footer headings — bright white */
.site-footer .footer-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff !important;
  opacity: 1;
  margin-bottom: 1.35rem;
  font-weight: 700;
}

/* Footer links — bright white, dim slightly on rest */
.site-footer .footer-grid a {
  color: #ffffff !important;
  opacity: 0.85 !important;
}
.site-footer .footer-grid a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}
/* ============================================================
   FINAL OVERRIDES — White navigation everywhere
   ============================================================ */

/* Header nav links */
.site-header .nav-desktop a:not(.nav-cta) {
  color: #ffffff !important;
  opacity: 0.88 !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .nav-desktop a:not(.nav-cta):hover {
  color: #ffffff !important;
  opacity: 1 !important;
  background: rgba(255,255,255,0.07) !important;
  transform: translateY(-1px);
}

.site-header .nav-desktop a:not(.nav-cta):active {
  background: rgba(255,255,255,0.11) !important;
  transform: translateY(0);
}

/* Footer headings — bright white */
.site-footer .footer-grid h3 {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

/* Footer links — bright white with slide effect */
.site-footer .footer-grid a,
.site-footer .footer-grid a:link,
.site-footer .footer-grid a:visited {
  color: #ffffff !important;
  opacity: 0.85 !important;
  font-weight: 500;
  font-size: 0.93rem;
  display: inline-block;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer .footer-grid a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
  transform: translateX(3px);
}

/* Footer disclaimer */
.site-footer .footer-disclaimer {
  color: #ffffff !important;
  opacity: 0.55;
}

.site-footer .footer-disclaimer strong {
  color: #ffffff !important;
  opacity: 0.85;
}

/* Mobile nav links */
.nav-mobile a {
  color: #ffffff !important;
  opacity: 0.9 !important;
  font-weight: 500;
}
.nav-mobile a:hover {
  opacity: 1 !important;
  background: rgba(255,255,255,0.06) !important;
}