/* ==========================================================================
   Voksa, voksa.org
   One-page marketing site. Dark, modern, streamer-grade.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #06060c;
  --bg-2: #0b0b16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #eef0fa;
  --fg-muted: #a7abc4;
  --fg-subtle: #6c7089;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --danger: #f43f5e;
  --grad: linear-gradient(100deg, var(--violet), var(--blue) 55%, var(--cyan));
  --grad-danger: linear-gradient(100deg, #f43f5e, #fb923c);
  --radius: 16px;
  --radius-lg: 24px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1120px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Background ornaments ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52rem 32rem at 78% -6%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(46rem 30rem at 12% 14%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(60rem 40rem at 50% 115%, rgba(34, 211, 238, 0.07), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80rem 50rem at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80rem 50rem at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Type helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-danger {
  background: var(--grad-danger);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--fg-muted); font-size: 18px; max-width: 640px; margin-bottom: 48px;
}
.section { padding: 110px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-family: var(--font-body);
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(100deg, #7c4fe8, #3874e0);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(124, 79, 232, 0.65), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(124, 79, 232, 0.8), 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--fg-muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 172px 0 96px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--fg-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.03);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18.5px; color: var(--fg-muted); max-width: 520px; margin-bottom: 34px;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--fg-subtle); }

/* ---------- Hero demo window ---------- */
.hero-demo { position: relative; }
.demo-glow {
  position: absolute; inset: -8% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 45%, rgba(139, 92, 246, 0.22), transparent 70%);
  filter: blur(10px);
}
.demo-window {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #12121f, #0b0b15);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  font-size: 13.5px;
}
.demo-titlebar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 10px;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a4d; }
.demo-dots i:nth-child(1) { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-tab {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 12px;
  color: var(--fg-muted); min-width: 0; flex: 0 1 auto;
  overflow: hidden; white-space: nowrap;
}
.demo-favicon {
  width: 12px; height: 12px; border-radius: 4px; flex: none;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.demo-stream-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 5px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-subtle);
  transition: all 0.35s ease;
  white-space: nowrap;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #565a72; transition: all 0.35s ease;
}
.pill-label-on { display: none; }
.is-masked .demo-stream-pill {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.14);
  color: #c4b0fa;
}
.is-masked .pill-dot { background: var(--violet); box-shadow: 0 0 10px rgba(139, 92, 246, 0.9); }
.is-masked .pill-label-on { display: inline; }
.is-masked .pill-label-off { display: none; }

.demo-addressbar {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 14px 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  color: var(--fg-muted);
  overflow: hidden; white-space: nowrap;
}
.demo-addressbar svg { color: #34d399; flex: none; }

.demo-page { padding: 8px 18px 20px; }
.demo-line {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
}
.demo-label { color: var(--fg-subtle); font-size: 12.5px; width: 92px; flex: none; }
.mask { position: relative; display: inline-grid; }
.mask .raw, .mask .hid {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
  white-space: nowrap;
}
.mask .hid { opacity: 0; color: #c4b0fa; letter-spacing: 0.5px; }
.is-masked .mask .raw { opacity: 0; filter: blur(6px); }
.is-masked .mask .hid { opacity: 1; }
.mask-chip .raw, .mask-chip .hid {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 7px; padding: 3px 9px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 12.5px;
}
.is-masked .mask-chip .hid {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
}
.demo-skeleton { margin-top: 14px; display: grid; gap: 9px; }
.demo-skeleton i {
  display: block; height: 9px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}
.demo-toast {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--fg);
  background: rgba(18, 18, 30, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.toast-in .demo-toast { opacity: 1; transform: translateY(0); }

/* ---------- Recorder strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 24px; flex-wrap: wrap;
}
.strip-label { font-size: 13.5px; color: var(--fg-subtle); }
.strip-names {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--fg-muted); letter-spacing: 0.02em;
}

/* ---------- Cards (problem) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 18px 0 8px; }
.card p { color: var(--fg-muted); font-size: 15px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon.danger { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.card-icon.accent { background: rgba(139, 92, 246, 0.12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.28); }

/* ---------- Solution steps ---------- */
.section-solution {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.045) 30%, rgba(59, 130, 246, 0.035) 70%, transparent);
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px; align-items: stretch;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.12em;
}
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 12px 0 8px; }
.step p { color: var(--fg-muted); font-size: 15px; }
.step-arrow { display: flex; align-items: center; color: var(--fg-subtle); }
.solution-tagline {
  margin-top: 54px; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em;
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bento-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.bento-wide { grid-column: span 4; }
@media (min-width: 861px) {
  .bento-card { grid-column: span 1; }
  .bento-wide { grid-column: span 2; }
}
.bento-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.bento-card p { color: var(--fg-muted); font-size: 15px; }
.chip-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chip {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 12px; color: #c4b0fa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px; padding: 5px 10px;
}
.chip s { color: var(--fg-subtle); text-decoration-color: rgba(244, 63, 94, 0.7); }

/* ---------- Versus ---------- */
.versus {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch;
}
.versus-col {
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  border: 1px solid var(--border);
}
.versus-them { background: rgba(244, 63, 94, 0.045); border-color: rgba(244, 63, 94, 0.18); }
.versus-us {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.06));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 30px 70px -40px rgba(139, 92, 246, 0.45);
}
.versus-col h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 20px; }
.versus-col ul { list-style: none; display: grid; gap: 13px; }
.versus-col li { display: flex; gap: 12px; align-items: baseline; color: var(--fg-muted); font-size: 15.5px; }
.versus-us li { color: #d6d9ee; }
.versus-col li em { font-style: normal; font-weight: 600; color: var(--fg); }
.versus-col .x, .versus-col .v {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transform: translateY(3px);
}
.versus-col .x { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.versus-col .v { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.versus-vs {
  align-self: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--fg-subtle);
  border: 1px solid var(--border); border-radius: 999px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
}

/* ---------- Download ---------- */
.dl-card {
  position: relative; overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.05) 60%, transparent);
  padding: 72px 32px;
  text-align: center;
}
.dl-glow {
  position: absolute; inset: -40% -20% auto;  height: 120%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
}
.dl-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.dl-sub { color: var(--fg-muted); font-size: 17px; margin-bottom: 34px; }
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-note { margin-top: 22px; font-size: 13px; color: var(--fg-subtle); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0 46px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.footer-tag { font-family: var(--font-body); font-weight: 400; color: var(--fg-subtle); font-size: 13.5px; margin-left: 8px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 140px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-demo { max-width: 620px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-content: center; }
}
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-wide { grid-column: span 1; }
  .versus { grid-template-columns: 1fr; }
  .versus-vs { justify-self: center; }
  .strip-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .btn-lg { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .dl-buttons { flex-direction: column; align-items: stretch; }
  .demo-label { width: 76px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
