/* =========================================================================
   VENOM — design system
   Black / red / white symbiote theme. Vanilla CSS, dark default + light.
   ========================================================================= */

:root,
:root[data-theme="dark"] {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 43, 43, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 43, 43, 0.38);
  --text: #f4f4f6;
  --muted: #9a9aa5;
  --faint: #6a6a75;
  --red: #ff2b2b;
  --red-bright: #ff4040;
  --red-deep: #8b0000;
  --good: #35d07f;
  --warn: #ffb020;
  --grad: linear-gradient(135deg, #ff3b3b 0%, #a40008 60%, #6e0008 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,59,59,.18), rgba(139,0,0,.18));
  --glow: 0 0 44px rgba(255, 20, 20, 0.22);
  --ring: 0 0 0 3px rgba(255, 43, 43, 0.28);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f3f5;
  --bg-2: #ffffff;
  --surface: rgba(10, 10, 12, 0.025);
  --surface-2: rgba(10, 10, 12, 0.05);
  --surface-hover: rgba(255, 43, 43, 0.05);
  --border: rgba(10, 10, 12, 0.10);
  --border-strong: rgba(214, 10, 10, 0.4);
  --text: #0d0d11;
  --muted: #55555f;
  --faint: #8a8a94;
  --red: #d60a0a;
  --red-bright: #e01e1e;
  --red-deep: #8b0000;
  --grad: linear-gradient(135deg, #e01e1e 0%, #b00010 60%, #7a0010 100%);
  --grad-soft: linear-gradient(135deg, rgba(224,30,30,.12), rgba(139,0,0,.10));
  --glow: 0 0 40px rgba(214, 10, 10, 0.14);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-bright); }

/* ambient symbiote glow behind everything */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(255, 20, 20, 0.16), transparent 70%),
    radial-gradient(45% 40% at 12% 85%, rgba(139, 0, 0, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* ---------- layout helpers ---------- */
.app { min-height: 60vh; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dot { color: var(--faint); margin: 0 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 22px; color: var(--text); background: var(--surface-2);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); color: var(--text); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-grad {
  background: var(--grad); border: none; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 20, 20, .6);
}
.btn-grad:hover { box-shadow: 0 14px 34px -10px rgba(255, 20, 20, .8), var(--glow); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--red); border: none; color: #fff; }
.btn-danger:hover { background: var(--red-bright); color: #fff; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  max-width: 1320px; margin: 0 auto;
  backdrop-filter: blur(10px);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-grid; place-items: center; filter: drop-shadow(0 0 10px rgba(255,20,20,.45)); }
.brand-name {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 1.6rem; letter-spacing: 1.5px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-link:hover { color: var(--text); }

.theme-toggle {
  width: 56px; height: 28px; border-radius: 999px; cursor: pointer; position: relative;
  border: 1px solid var(--border-strong); background: var(--grad-soft); padding: 0;
}
.theme-knob {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  transition: transform .22s ease; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.theme-ico { font-size: 12px; color: #fff; }
:root[data-theme="light"] .theme-knob { transform: translateX(28px); }

.join-mini { display: flex; align-items: center; gap: 8px; }
.code-input {
  width: 92px; padding: 8px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: .9rem;
}
.code-input::placeholder { color: var(--faint); }
.code-input:focus { outline: none; border-color: var(--border-strong); box-shadow: var(--ring); }

.account { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.avatar:hover { color: var(--text); border-color: var(--border-strong); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; z-index: 50; overflow: hidden;
}
.menu-head { padding: 12px 14px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font: inherit; padding: 11px 14px; border-radius: 9px; cursor: pointer;
}
.menu-item:hover { background: var(--surface-hover); }
.menu-item.danger { color: var(--red); }

.hamburger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 36px; background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; margin-bottom: 18px; }
.hero h1 { margin: 0 0 20px; line-height: .98; }
.hero h1 .l1 {
  display: block; font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .5px; color: var(--text);
}
.hero h1 .l2 {
  display: block; font-family: "Bangers", sans-serif;
  font-size: clamp(2.8rem, 6.4vw, 5rem); letter-spacing: 1.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255,20,20,.35));
}
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin: 0 0 16px; }
.hero .pitch { font-weight: 500; margin: 0 0 26px; }
.hero .pitch b { color: var(--red); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.join { display: flex; gap: 8px; }
.join .code-input { width: 190px; padding: 12px 16px; }
.trust { color: var(--faint); font-size: .82rem; margin: 2px 0; }

/* terminal mock */
.terminal {
  background: #09090c; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow), var(--glow); overflow: hidden; min-height: 320px;
}
:root[data-theme="light"] .terminal { background: #0b0b0f; }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lights .r { background: #ff5f56; } .lights .y { background: #ffbd2e; } .lights .g { background: #27c93f; }
.term-title { color: #c9c9d2; font-family: "JetBrains Mono", monospace; font-size: .82rem; }
.badge-ready { margin-left: auto; font-size: .72rem; font-family: "JetBrains Mono", monospace; color: #35d07f; background: rgba(53,208,127,.12); border: 1px solid rgba(53,208,127,.3); padding: 3px 10px; border-radius: 999px; }
.term-body { padding: 18px 18px 26px; font-family: "JetBrains Mono", monospace; font-size: .9rem; color: #e7e7ee; min-height: 230px; }
.term-body .line { opacity: 0; transform: translateY(4px); animation: lineIn .35s ease forwards; white-space: pre-wrap; }
.term-body .prompt { color: #fff; }
.term-body .cmd { color: #fff; font-weight: 700; }
.term-body .tag-v { color: var(--red-bright); }
.term-body .tag-ok { color: #35d07f; }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--red); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- pricing ---------- */
.pricing { max-width: var(--maxw); margin: 36px auto 72px; padding: 0 24px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s, background .2s;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-hover); }
.price-card.featured { border-color: var(--border-strong); box-shadow: var(--glow); }
.price-tier { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.tag-red { background: var(--grad); color: #fff; }
.price-amt { font-family: "Anton", sans-serif; font-size: 2.1rem; margin: 10px 0 4px; }
.price-amt small { font-family: "Inter"; font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-feats { list-style: none; padding: 0; margin: 14px 0 20px; color: var(--muted); font-size: .92rem; }
.price-feats li { padding: 6px 0 6px 24px; position: relative; }
.price-feats li::before { content: "▸"; color: var(--red); position: absolute; left: 4px; }

/* ---------- page headers ---------- */
.page-head { text-align: center; padding: 56px 24px 10px; }
.page-head h2 { font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; letter-spacing: .5px; }
.page-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- download ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.platform {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
}
.platform:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-hover); }
.platform.featured { border-color: var(--border-strong); box-shadow: var(--glow); }
.platform .os-ico { font-size: 2rem; margin-bottom: 10px; display: block; }
.platform .os-name { font-weight: 700; font-size: 1.2rem; }
.platform .os-sub { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.platform .os-sub.soon { color: var(--red); }

.panel { background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 22px; margin: 8px 0 28px; }
.panel h3 { margin: 0 0 6px; }
.panel .hint { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.key-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.kbd-row { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
kbd {
  font-family: "JetBrains Mono", monospace; font-size: .76rem; background: #16161b; color: #eee;
  border: 1px solid rgba(255,255,255,.14); border-bottom-width: 2px; border-radius: 6px; padding: 4px 8px;
}
.key-card .what { font-size: .9rem; font-weight: 600; }
.keys-foot { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.keys-foot b { color: var(--red); }

.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, background .2s;
}
.cmd:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.cmd code { font-family: "JetBrains Mono", monospace; color: var(--red-bright); font-size: .92rem; font-weight: 600; }
.cmd .desc { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.copy-btn { flex: 0 0 auto; background: none; border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: .78rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.ok { color: var(--good); border-color: rgba(53,208,127,.4); }

.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); }
.note b { color: var(--text); }

/* ---------- dashboard ---------- */
.dash { max-width: 820px; margin: 0 auto; padding: 36px 24px 72px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan-card { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.tag-warn { background: rgba(255,176,32,.14); color: var(--warn); border: 1px solid rgba(255,176,32,.35); }
.plan-sub { color: var(--muted); margin: 6px 0; }
.plan-meta { color: var(--faint); font-size: .85rem; max-width: 46ch; }
.plan-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 160px; }

.login-bar { margin: 16px 0; color: var(--muted); font-size: .9rem; }
.login-bar .card { padding: 14px 18px; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin: 24px 0 20px; }
.tab { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; position: relative; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--red); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); border-radius: 2px; }

.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.pill b { color: var(--text); }
.tag-full { background: rgba(255,43,43,.14); color: var(--red); border: 1px solid var(--border-strong); }

.list-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; color: var(--muted); font-size: .9rem; }
.device {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.device .os { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border-radius: 9px; }
.device .info { flex: 1; }
.device .name { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.status { font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.offline::before { background: var(--red); }
.status.online::before { background: var(--good); }
.device .hint { color: var(--faint); font-size: .82rem; margin-top: 2px; }
.device .hint code { color: var(--red-bright); font-family: "JetBrains Mono", monospace; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--faint); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table tr:hover td { background: var(--surface-hover); }
.table .strong { font-weight: 700; }
.table .sub { color: var(--muted); font-size: .82rem; }
.chip { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chip.good { background: rgba(53,208,127,.14); color: var(--good); }
.chip.warn { background: rgba(255,176,32,.14); color: var(--warn); }
.chip.muted { background: var(--surface-2); color: var(--muted); }
.replay-btn { background: var(--grad); color: #fff; border: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.replay-btn:hover { box-shadow: 0 8px 20px -8px rgba(255,20,20,.7); }

.cancel-note { margin-top: 22px; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.3); border-radius: var(--radius); padding: 20px; }
.cancel-note h4 { color: var(--warn); margin: 0 0 6px; }
.cancel-note p { color: var(--muted); margin: 0 0 14px; font-size: .9rem; }
.cancel-note .row { display: flex; gap: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer a:hover { color: var(--red-bright); }
.footer .social { color: var(--red); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow), var(--glow);
  font-size: .9rem; z-index: 90; opacity: 0; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- mobile nav drawer ---------- */
.mobile-open .nav-actions .nav-link,
.mobile-open .nav-actions .join-mini { }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-grid, .platforms, .keys { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-link, .join-mini { display: none; }
  .hamburger { display: flex; }
  .nav.open .nav-actions { }
  .nav.open + .mobile-menu { display: block; }
}

/* mobile dropdown menu */
.mobile-menu {
  display: none; position: sticky; top: 64px; z-index: 39;
  background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 24px;
}
.mobile-menu a { display: block; padding: 12px 4px; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-menu a:last-child { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; scroll-behavior: auto; }
  .term-body .line { opacity: 1; transform: none; }
}
