/* =====================================================================
   HeavenRP Security — CRVENA „THREAT" TEMA
   ===================================================================== */
:root {
  --bg: #0a0203;
  --bg-2: #140507;
  --surface: rgba(255, 45, 74, 0.055);
  --surface-2: rgba(255, 45, 74, 0.11);
  --line: rgba(255, 60, 85, 0.16);
  --line-2: rgba(255, 70, 95, 0.32);
  --text: #ffeef0;
  --muted: #cf9aa3;
  --red: #ff2447;
  --red-2: #ff5c72;
  --red-3: #ff8a9c;
  --crimson: #e11d2e;
  --deep: #c40f28;
  --ember: #ff7a3d;
  --gold: #ffb020;
  --radius: 20px;
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(255, 36, 71, 0.35), 0 20px 60px rgba(255, 36, 71, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
body > svg[aria-hidden="true"] { width: 0 !important; height: 0 !important; position: absolute; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: rgba(255, 36, 71, 0.5); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0203; }
::-webkit-scrollbar-thumb { background: #40101a; border-radius: 20px; border: 3px solid #0a0203; }
::-webkit-scrollbar-thumb:hover { background: #6b1a2a; }

code {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  background: rgba(255, 36, 71, 0.14);
  color: #ffc6d0;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 0.88em;
}
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- ambient layers ---------- */
.net-canvas { position: fixed; inset: 0; z-index: -4; opacity: 0.6; }
.bg-orbs { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45; animation: drift 26s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { width: 560px; height: 560px; top: -180px; left: -140px; background: #7a0a1c; }
.bg-orbs span:nth-child(2) { width: 500px; height: 500px; top: 8%; right: -180px; background: #b01030; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 680px; height: 680px; bottom: -260px; left: 26%; background: #4d0413; animation-delay: -12s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(46px,-34px) scale(1.14); } }

.grid-floor {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 45, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 74, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(180deg, rgba(255, 60, 85, 0.05) 0 1px, transparent 1px 4px);
}
.scanlines::after {
  content: ""; position: absolute; left: 0; right: 0; top: -200px; height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255, 36, 71, 0.10), transparent);
  animation: sweep 8s linear infinite; will-change: transform;
}
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(120vh); } }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 50% 40%, transparent 45%, rgba(0,0,0,.7)); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--deep), var(--red), var(--red-3));
  box-shadow: 0 0 20px rgba(255, 36, 71, 0.9);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px);
  background: rgba(10, 2, 3, 0.62); border-bottom: 1px solid transparent; transition: .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(10, 2, 3, 0.88); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.05rem; white-space: nowrap; }
.brand-badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 20px;
  background: linear-gradient(140deg, var(--red), var(--deep)); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,36,71,.5), 0 10px 28px rgba(255, 36, 71, 0.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-text b { color: var(--red-2); }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .93rem; padding: 9px 14px; border-radius: 10px; transition: .2s; position: relative; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), transparent); box-shadow: 0 0 12px var(--red); }
.nav-cta svg { font-size: 17px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--red); border-radius: 2px; transition: .3s; }
.nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 19px; } .nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { font-size: 18px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(140deg, var(--red), var(--deep)); color: #fff;
  box-shadow: 0 12px 32px rgba(255, 36, 71, 0.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(255, 36, 71, 0.75); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--red); box-shadow: 0 12px 30px rgba(255,36,71,.25); }
.btn-danger { background: linear-gradient(140deg, var(--red), #8f0a1e); color: #fff; box-shadow: 0 12px 32px rgba(255, 36, 71, 0.4); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(255, 36, 71, 0.65); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px; background: rgba(255,36,71,.10); color: var(--red-2); border: 1px solid rgba(255,36,71,.35); font-size: .84rem; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,36,71,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,36,71,.6); } 70% { box-shadow: 0 0 0 13px rgba(255,36,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,36,71,0); } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; margin: 20px 0 18px; letter-spacing: -0.03em; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--red-2), var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(255,36,71,.4)); }
.rotator { position: relative; display: inline-block; color: var(--red); text-shadow: 0 0 26px rgba(255,36,71,.6); }
.rotator::after { content: ""; position: absolute; right: -3px; top: 6%; height: 88%; width: 3px; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 570px; }
.lead b { color: #ffd9df; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-chips li { display: flex; align-items: center; gap: 8px; }
.hero-chips svg { color: var(--red); font-size: 15px; }

.hero-visual { position: relative; }
.glow-ring { position: absolute; inset: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(255,36,71,.42), transparent 62%); filter: blur(26px); z-index: -1; }
@keyframes breathe { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes breathe { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

.radar { position: absolute; width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; z-index: -1; opacity: .5; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,36,71,.35); box-shadow: inset 0 0 60px rgba(255,36,71,.2); }
.radar::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; border: 1px dashed rgba(255,36,71,.3); }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,36,71,.55), transparent 25%); animation: spin 4.5s linear infinite; }
.radar b { position: absolute; inset: 44%; border-radius: 50%; background: var(--red); box-shadow: 0 0 30px var(--red); animation: pulse 1.8s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.terminal {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(28,7,11,.97), rgba(12,3,5,.97));
  box-shadow: var(--shadow), 0 0 60px rgba(255,36,71,.18), inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
.term-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(255,36,71,.07); border-bottom: 1px solid var(--line); }
.term-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff2b47; box-shadow: 0 0 10px #ff2b47; } .dot.yellow { background: #ff9a3d; } .dot.green { background: #ff556e; }
.term-title { margin-left: 10px; color: var(--muted); font-size: .8rem; font-family: "Cascadia Code", Consolas, monospace; }
.term-body { padding: 18px 18px 22px; font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: .83rem; min-height: 288px; }
.term-line { display: flex; gap: 9px; padding: 3px 0; opacity: 0; animation: linein .35s forwards; align-items: baseline; }
@keyframes linein { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.term-line .t { color: #7a5560; }
.badge { padding: 1px 7px; border-radius: 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge.trap { background: rgba(255,36,71,.2); color: #ff9fb0; }
.badge.bot { background: rgba(255,176,32,.18); color: var(--gold); }
.badge.nuke { background: rgba(255,36,71,.28); color: #ff7d90; }
.badge.ok { background: rgba(255,122,61,.16); color: var(--ember); }
.term-line .msg { color: #ffd3da; }
.term-cursor { color: var(--red); animation: caret 1s steps(1) infinite; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 15px;
  background: rgba(28, 8, 12, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  box-shadow: var(--shadow), 0 0 26px rgba(255,36,71,.2); animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .88rem; }
.float-card span { color: var(--muted); font-size: .76rem; }
.fc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: 0 0 38px; }
.fc-ico.danger { background: rgba(255,36,71,.18); color: var(--red); }
.fc-ico.warn { background: rgba(255,176,32,.16); color: var(--gold); }
.fc-1 { bottom: -26px; left: -28px; animation-delay: -1.5s; }
.fc-2 { top: -24px; right: -20px; animation-delay: -3.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,36,71,.09), rgba(255,36,71,.02)); padding: 13px 0; margin: 30px 0 0; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: inline-flex; gap: 38px; white-space: nowrap; animation: marquee 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { font-family: "Cascadia Code", Consolas, monospace; font-size: .82rem; font-weight: 600; }
.tk.bad { color: var(--red-2); } .tk.warn { color: var(--gold); } .tk.ok { color: var(--ember); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px auto 0; }
.stat {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; backdrop-filter: blur(8px); transition: .25s; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .7; }
.stat:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 0 34px rgba(255,36,71,.2); }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, var(--red-2), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bcard {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(160deg, rgba(255,45,74,.07), rgba(255,45,74,.015));
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.bcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .9; }
.bcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(320px 120px at 50% 0%, rgba(255,36,71,.16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bcard:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 22px 54px rgba(0,0,0,.5), 0 0 40px rgba(255,36,71,.22); }
.bcard:hover::after { opacity: 1; }
.b-trap { grid-column: span 2; } .b-bot { grid-column: span 2; } .b-nuke { grid-column: span 2; }
.b-link { grid-column: span 2; }
.b-logs { grid-column: span 2; } .b-evidence { grid-column: span 2; } .b-test { grid-column: span 3; } .b-admin { grid-column: span 3; }
.bico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; background: rgba(255,36,71,.14); color: var(--red-2); box-shadow: inset 0 0 0 1px rgba(255,36,71,.25); }
.bico.bot { color: var(--gold); } .bico.nuke { color: var(--red); } .bico.link { color: #ff8a9c; } .bico.log { color: var(--red-3); } .bico.folder { color: var(--ember); } .bico.flask { color: #ff9d6e; } .bico.lock { color: var(--red-2); }
.b-link::before { background: linear-gradient(90deg, #ff8a9c, #ff4d6d); }
.bcard h3 { margin: 0 0 9px; font-size: 1.18rem; }
.bcard h3 small { color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-left: 6px; }
.bcard p { color: var(--muted); margin: 0; font-size: .93rem; }
.bcard b { color: #ffd9df; }
.bcard-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bcard-tags span { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,36,71,.09); color: var(--red-3); border: 1px solid var(--line); }

/* ---------- demo ---------- */
.demo-shell { position: relative; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(255,45,74,.06), rgba(255,45,74,.015)); box-shadow: var(--shadow), 0 0 60px rgba(255,36,71,.14); }
.demo-shell::before, .demo-shell::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--red); opacity: .6; z-index: 3; pointer-events: none; }
.demo-shell::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.demo-shell::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.demo-tabs { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.28); flex-wrap: wrap; }
.demo-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--muted); font-weight: 700; font-size: .93rem; cursor: pointer; transition: .2s; }
.demo-tab svg { font-size: 17px; }
.demo-tab:hover { color: var(--text); background: var(--surface); }
.demo-tab.active { color: #fff; background: linear-gradient(140deg, var(--red), var(--deep)); box-shadow: 0 10px 28px rgba(255,36,71,.5); }
.demo-panel { display: none; padding: 30px; }
.demo-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.demo-side h4 { margin: 0 0 16px; }

.chat { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #160609; }
.chat-head { display: flex; justify-content: space-between; padding: 12px 16px; background: rgba(255,36,71,.08); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.chat-hint { color: var(--red); font-size: .76rem; font-weight: 700; }
.chat-body { padding: 18px; display: grid; gap: 14px; min-height: 300px; align-content: start; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: fade .35s ease; }
.msg .av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; }
.av.user { background: linear-gradient(140deg, #ff7a8c, #8f0a1e); }
.av.bot { background: linear-gradient(140deg, var(--red), #6d0416); }
.msg .mc { min-width: 0; flex: 1; }
.msg .b { font-weight: 700; font-size: .88rem; }
.msg .b .tag { font-size: .6rem; background: var(--red); padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }
.msg .txt { color: #ffd3da; font-size: .9rem; }
.embed { border-left: 4px solid var(--red); background: rgba(0,0,0,.32); border-radius: 7px; padding: 12px 14px; margin-top: 8px; }
.embed.danger { border-color: var(--red); }
.embed.ok { border-color: var(--ember); }
.embed .et { font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.embed .er { font-size: .82rem; color: #ffd3da; }
.msg.removed { opacity: .38; text-decoration: line-through; }

.flow { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.flow li { position: relative; padding: 11px 14px 11px 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; transition: .3s; }
.flow li::before { content: ""; position: absolute; left: 15px; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translateY(-50%); background: #3a1017; border: 2px solid #6b1a2a; transition: .3s; }
.flow li.done { color: var(--text); border-color: rgba(255,36,71,.5); background: rgba(255,36,71,.09); }
.flow li.done::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 14px rgba(255,36,71,.9); }

.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.field input[type="text"], .field input[type="search"], .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text); font-family: inherit; font-size: .95rem; outline: none; transition: .2s; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,36,71,.18); }
.field textarea { resize: vertical; font-family: "Cascadia Code", Consolas, monospace; font-size: .8rem; line-height: 1.5; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.perm-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; transition: .2s; user-select: none; }
.perm-toggle:hover { border-color: var(--line-2); }
.perm-toggle input { display: none; }
.perm-toggle .box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #6b1a2a; display: grid; place-items: center; flex: 0 0 18px; transition: .2s; }
.perm-toggle .box svg { font-size: 12px; opacity: 0; color: #fff; }
.perm-toggle input:checked + .box { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(255,36,71,.6); }
.perm-toggle input:checked + .box svg { opacity: 1; }
.perm-toggle input:checked ~ .lbl { color: var(--text); }
.perm-toggle .lbl { color: var(--muted); }
.perm-toggle .w { margin-left: auto; font-size: .7rem; color: #8a5a63; }

.report { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.report-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.verdict { font-weight: 800; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.verdict.safe { background: rgba(255,176,32,.16); color: var(--gold); }
.verdict.suspicious { background: rgba(255,122,61,.18); color: var(--ember); }
.verdict.dangerous { background: rgba(255,36,71,.22); color: #ff8095; }
.score { color: var(--muted); font-size: .85rem; }
.score b { color: var(--text); font-size: 1.1rem; }
.score-bar { height: 9px; border-radius: 999px; background: rgba(255,36,71,.12); overflow: hidden; margin-bottom: 14px; }
.score-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--ember), var(--red)); transition: width .5s ease; box-shadow: 0 0 16px rgba(255,36,71,.7); }
.report-note { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.report-flags { display: flex; flex-wrap: wrap; gap: 7px; }
.flag { font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.flag.hot { border-color: rgba(255,36,71,.5); color: #ff9aa9; background: rgba(255,36,71,.1); }
.flag.disguise { border-color: rgba(255,176,32,.5); color: var(--gold); background: rgba(255,176,32,.08); }

.nuke-stage { display: grid; gap: 20px; justify-items: center; }
.nuke-channel { width: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #160609; transition: .4s; }
.nuke-channel.gone { opacity: 0; transform: scale(.92) rotate(-1deg); filter: blur(3px); }
.nuke-channel.back { opacity: 1; transform: none; filter: none; box-shadow: 0 0 30px rgba(255,36,71,.2); }
.nc-head { display: flex; justify-content: space-between; padding: 12px 16px; background: rgba(255,36,71,.08); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.nc-count { color: var(--muted); font-weight: 600; font-size: .8rem; }
.nc-lines { padding: 18px; display: grid; gap: 10px; }
.nc-lines span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,45,74,.2), rgba(255,45,74,.03)); }
.nc-lines span:nth-child(2) { width: 78%; } .nc-lines span:nth-child(3) { width: 60%; } .nc-lines span:nth-child(4) { width: 88%; } .nc-lines span:nth-child(5) { width: 45%; }
.nuke-log { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; min-height: 150px; }
.nuke-log li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--text); opacity: 0; animation: fade .35s forwards; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.nuke-log li svg { color: var(--ember); font-size: 16px; flex: 0 0 auto; }
.nuke-log li.warn svg { color: var(--gold); }
.nuke-log li.bad svg { color: var(--red); }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--red), var(--ember), var(--gold)); opacity: .45; box-shadow: 0 0 18px rgba(255,36,71,.5); }
.tl-item { position: relative; padding-top: 34px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--red); box-shadow: 0 0 18px rgba(255,36,71,.9); }
.tl-n { font-family: "Cascadia Code", Consolas, monospace; color: var(--red-2); font-weight: 700; font-size: .9rem; }
.tl-item h4 { margin: 6px 0 8px; }
.tl-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- commands ---------- */
.cmd-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 260px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input { width: 100%; padding: 14px 16px 14px 44px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text); font-size: .95rem; outline: none; transition: .2s; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,36,71,.18); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 11px 17px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; transition: .2s; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: #fff; background: linear-gradient(140deg, var(--red), var(--deep)); border-color: transparent; box-shadow: 0 10px 26px rgba(255,36,71,.45); }
.cmd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmd-item { display: flex; align-items: center; gap: 13px; text-align: left; width: 100%; cursor: pointer; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; transition: .18s; }
.cmd-item:hover { border-color: var(--red); background: var(--surface-2); transform: translateX(3px); box-shadow: 0 0 26px rgba(255,36,71,.2); }
.cmd-item .ci-cmd { font-family: "Cascadia Code", Consolas, monospace; font-size: .87rem; color: #ffd9df; white-space: nowrap; }
.cmd-item .ci-desc { color: var(--muted); font-size: .82rem; margin-left: auto; text-align: right; }
.cmd-item .ci-tag { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.ci-tag.hr { background: rgba(255,36,71,.18); color: #ff9fb0; }
.ci-tag.bot { background: rgba(255,176,32,.16); color: var(--gold); }
.ci-tag.zastita { background: rgba(255,122,61,.16); color: var(--ember); }
.cmd-item .ci-copy { color: var(--muted); font-size: 17px; flex: 0 0 auto; }
.cmd-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

/* ---------- permission builder ---------- */
.perm-builder { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.perm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perm-result { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.perm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.perm-meta { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare thead th { background: rgba(255,36,71,.08); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: rgba(255,36,71,.04); }
.compare .hl { background: rgba(255,36,71,.1); color: #ffd9df; font-weight: 600; }
.compare .yes { color: var(--ember); font-weight: 800; text-align: center; }
.compare .part { color: var(--gold); text-align: center; }
.compare .no { color: #7a5560; text-align: center; }

/* ---------- setup ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .22s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 30px rgba(255,36,71,.15); }
.step-card { position: relative; }
.step-badge { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: rgba(255,36,71,.18); color: var(--red-2); box-shadow: inset 0 0 0 1px rgba(255,36,71,.3); }
.step-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: rgba(255,36,71,.14); color: var(--red-2); margin-bottom: 14px; }
.step-card h4 { margin: 0 0 8px; }
.step-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.callout { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 26px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(255,36,71,.16), rgba(255,122,61,.08)); border: 1px solid var(--line-2); flex-wrap: wrap; }
.callout-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: rgba(255,176,32,.16); color: var(--gold); flex: 0 0 48px; }
.callout > div:nth-child(2) { flex: 1; min-width: 240px; }
.callout h4 { margin: 0 0 5px; }
.callout p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 2px 22px; transition: .25s; }
.faq details[open] { border-color: var(--red); background: rgba(255,36,71,.07); box-shadow: 0 0 30px rgba(255,36,71,.12); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-2); font-size: 1.5rem; font-weight: 800; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 30px; border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(255,36,71,.22), rgba(255,122,61,.06)); box-shadow: 0 0 70px rgba(255,36,71,.2); }
.cta h2 { position: relative; font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 10px 0 14px; letter-spacing: -.02em; }
.cta p { position: relative; color: var(--muted); margin: 0 0 28px; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 44px 0 28px; background: rgba(12,3,5,.75); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner .muted { margin: 0; }
.footer-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: var(--red-2); }
.copy { margin-top: 24px; font-size: .82rem; }
.muted { color: var(--muted); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); display: flex; align-items: center; gap: 9px; background: linear-gradient(140deg, var(--red), var(--deep)); color: #fff; font-weight: 800; padding: 13px 22px; border-radius: 13px; opacity: 0; pointer-events: none; transition: .28s; box-shadow: 0 18px 48px rgba(255,36,71,.5); z-index: 200; font-size: .92rem; }
.toast svg { font-size: 19px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-trap, .b-bot, .b-nuke, .b-link, .b-logs, .b-evidence, .b-test, .b-admin { grid-column: span 1; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .demo-split { grid-template-columns: 1fr; }
  .perm-builder { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .cmd-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; background: rgba(14,4,6,.98); border-bottom: 1px solid var(--line); padding: 12px; backdrop-filter: blur(18px); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .stats, .grid-3 { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .perm-grid, .perm-checks { grid-template-columns: 1fr; }
  .cmd-toolbar { flex-direction: column; align-items: stretch; }
  .section { padding: 60px 0; }
  .demo-panel { padding: 20px; }
  .fc-1, .fc-2 { display: none; }
  .terminal { transform: none; }
  .radar { width: 320px; height: 320px; }
}
@media (max-width: 520px) {
  .stats, .grid-3, .timeline { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scanlines::after { display: none; }
}

/* =====================================================================
   NIVO 2 — ultra polish
   ===================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center;
  background: radial-gradient(circle at 50% 42%, #1c0509, #060102 72%);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.pl-emblem { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.pl-emblem svg { width: 56px; height: 56px; color: var(--red); filter: drop-shadow(0 0 22px rgba(255,36,71,.95)); animation: pulse 1.6s infinite; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,36,71,.5); animation: plring 1.9s ease-out infinite; }
.pl-ring.d2 { animation-delay: .95s; }
@keyframes plring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.pl-bar { width: 240px; height: 3px; margin-top: 30px; background: rgba(255,36,71,.15); border-radius: 3px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 42%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: plbar 1.1s ease-in-out infinite; }
@keyframes plbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.pl-text { margin-top: 16px; font-family: "Cascadia Code", Consolas, monospace; font-size: .76rem; letter-spacing: .3em; color: var(--red-2); }
.pl-dots i { opacity: .2; animation: pldot 1.2s infinite; }
.pl-dots i:nth-child(2) { animation-delay: .2s; } .pl-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pldot { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); transform: translate(-50%, -50%); transition: opacity .25s; }
.cursor-ring { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,36,71,.75); transform: translate(-50%, -50%); transition: width .22s, height .22s, background .22s, border-color .22s, opacity .25s; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary, body.has-cursor label { cursor: none; }
.cursor-ring.hover { width: 58px; height: 58px; background: rgba(255,36,71,.12); border-color: var(--red); box-shadow: 0 0 26px rgba(255,36,71,.5); }

/* ---------- animated gradient text + bars + button shine ---------- */
.grad { background-size: 200% 100%; }
@keyframes gradmove { to { background-position: -220% 0; } }


.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-170%) skewX(-18deg); animation: shine 3.8s ease-in-out infinite; }
@keyframes shine { 0%, 62% { transform: translateX(-170%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }

/* ---------- section title underline ---------- */
.section-title::after { content: ""; display: block; width: 82px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--red), transparent); box-shadow: 0 0 18px rgba(255,36,71,.75); }

/* ---------- bento spotlight + conic demo border ---------- */
.bcard { background: linear-gradient(160deg, rgba(255,45,74,.07), rgba(255,45,74,.015)); }
.bcard::after { background: radial-gradient(260px 180px at var(--mx, 50%) var(--my, 0%), rgba(255,36,71,.22), transparent 70%); }
.demo-shell {
  border: 1px solid transparent;
}

/* ---------- stat ring ---------- */
.stat { overflow: visible; }
.stat::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(255,36,71,.9) 84%, transparent 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s ease;
}
.stat.in::after { opacity: .9; }

/* ---------- orbit badges ---------- */
.orbit { position: absolute; inset: -26px; z-index: -1; pointer-events: none; }
.orbit span {
  position: absolute; width: 42px; height: 42px; display: grid; place-items: center; font-size: 19px;
  border-radius: 13px; background: rgba(26,7,11,.92); border: 1px solid var(--line-2);
  box-shadow: 0 0 22px rgba(255,36,71,.35); animation: floaty 5.4s ease-in-out infinite;
}
.o1 { top: -8px; left: 6%; } .o2 { top: 20%; right: -12px; animation-delay: -1.4s; }
.o3 { bottom: -8px; right: 12%; animation-delay: -2.6s; } .o4 { bottom: 24%; left: -12px; animation-delay: -3.8s; }

/* ---------- capability marquee ---------- */
.cap-marquee { overflow: hidden; margin: 70px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255,36,71,.06), transparent); }
.cap-track { display: inline-flex; gap: 14px; white-space: nowrap; animation: marquee 30s linear infinite; }
.cap-track span { font-weight: 700; font-size: .9rem; padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #ffd0d8; }
.cap-marquee:hover .cap-track { animation-play-state: paused; }

/* ---------- misc depth ---------- */
.hero h1 { text-shadow: 0 0 60px rgba(255,36,71,.25); }
.pill, .bcard-tags span, .tk { backface-visibility: hidden; }



@media (max-width: 760px) { .cursor-dot, .cursor-ring { display: none; } .orbit { display: none; } }

/* =====================================================================
   NIVO 3 — logo, aurora, nadzorni centar, Ctrl+K paleta
   ===================================================================== */
.logo-svg { width: 100%; height: 100%; overflow: visible; }
.brand-badge { width: 46px; height: 46px; border-radius: 14px; background: radial-gradient(circle at 50% 28%, rgba(255,36,71,.45), rgba(10,2,4,.65)); box-shadow: 0 0 0 1px rgba(255,36,71,.45), 0 12px 30px rgba(255,36,71,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.brand-badge .logo-svg { width: 34px; height: 34px; }
.brand { font-size: 1.12rem; }
.brand:hover .brand-badge { box-shadow: 0 0 0 1px var(--red), 0 16px 40px rgba(255,36,71,.7), inset 0 1px 0 rgba(255,255,255,.35); }

/* komande: skrolovanje unutar sekcije + osnovne/sve */
.cmd-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.cmd-sub .muted { font-size: .85rem; }
.cmd-list { max-height: 560px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #4a1420 transparent; }
.cmd-list::-webkit-scrollbar { width: 8px; }
.cmd-list::-webkit-scrollbar-thumb { background: #4a1420; border-radius: 20px; }
.cmd-list::-webkit-scrollbar-thumb:hover { background: #6b1a2a; }
.tab-toggle { border-style: dashed; }
.tab-toggle.on { border-style: solid; background: rgba(255,36,71,.14); color: #fff; }
.cmd-hidden { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .85rem; padding: 8px 0 2px; }
.ci-tag.link { background: rgba(255,92,114,.16); color: #ff8a9c; }

/* demo: filter linkova */
.link-demo { display: flex; flex-direction: column; gap: 14px; }
.link-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.link-quick .tab { padding: 8px 12px; font-size: .82rem; }
.link-verdict { font-weight: 800; font-size: 1.05rem; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: .2s; }
.link-verdict.block { border-color: rgba(255,36,71,.55); color: #ff8a9c; background: rgba(255,36,71,.09); box-shadow: 0 0 26px rgba(255,36,71,.2); }
.link-verdict.allow { border-color: rgba(255,176,32,.5); color: var(--gold); background: rgba(255,176,32,.08); }
.link-lists { display: grid; gap: 14px; }
.link-lists b { display: block; font-size: .85rem; margin-bottom: 7px; }
.link-lists .tag { display: inline-block; font-family: "Cascadia Code", Consolas, monospace; font-size: .78rem; padding: 3px 9px; border-radius: 7px; margin: 2px 5px 2px 0; border: 1px solid var(--line-2); color: var(--muted); }
.link-lists .tag.wl { color: var(--gold); border-color: rgba(255,176,32,.4); }

/* nazad na vrh */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: linear-gradient(140deg, rgba(255,36,71,.9), var(--deep));
  color: #fff; cursor: pointer; box-shadow: 0 14px 34px rgba(255,36,71,.45);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: .28s;
}
.to-top svg { transform: rotate(-90deg); font-size: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 18px 44px rgba(255,36,71,.7); }

/* logo shine */
.brand-badge, .pl-emblem { position: relative; }
.brand-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 200% 0; opacity: 0; transition: opacity .2s;
}
.brand:hover .brand-badge::before { opacity: .8; animation: logosheen 1s ease forwards; }
@keyframes logosheen { from { background-position: 200% 0; } to { background-position: -120% 0; } }

/* ---------- tema dugme ---------- */
.theme-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; transition: .2s; }
.theme-btn:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 22px rgba(255,36,71,.35); }
.theme-btn svg { position: absolute; font-size: 18px; }
.theme-btn .ic-sun { display: none; }
body.light .theme-btn .ic-moon { display: none; }
body.light .theme-btn .ic-sun { display: block; }
body.light .theme-btn:hover { color: var(--red); }

/* ---------- live status traka ---------- */
.live-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: rgba(255,36,71,.07); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.live-bar b { color: var(--text); }
.lb-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.lb-dot.on { background: #ff2447; box-shadow: 0 0 12px #ff2447; animation: pulse 1.8s infinite; }
.lb-dot.off { background: #7a5560; }
.lb-dot.demo { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lb-sep { width: 1px; height: 14px; background: var(--line-2); }
.lb-note { margin-left: auto; color: var(--muted); font-size: .78rem; }

/* =====================================================================
   SVETLA TEMA
   ===================================================================== */
body.light {
  --bg: #fceff1;
  --bg-2: #ffe7ea;
  --surface: rgba(216,28,60,.05);
  --surface-2: rgba(216,28,60,.09);
  --line: rgba(180,20,50,.18);
  --line-2: rgba(180,20,50,.32);
  --text: #2a0a11;
  --muted: #8a5560;
  --red: #d81c3c;
  --red-2: #e23a56;
  --red-3: #b31633;
  --deep: #a10f28;
  --ember: #d9601f;
  --gold: #b57e0a;
  --shadow: 0 22px 50px rgba(120,10,30,.16);
}
body.light .net-canvas { opacity: .3; }
body.light .bg-orbs { opacity: .28; }
body.light .aurora { opacity: .3; }
body.light .scanlines { opacity: .22; }
body.light .grid-floor { opacity: .45; }
body.light .noise { opacity: .05; }
body.light .vignette { background: radial-gradient(circle at 50% 40%, transparent 55%, rgba(255,215,222,.65)); }
body.light .nav { background: rgba(252,239,241,.78); }
body.light .nav.scrolled { background: rgba(252,239,241,.94); box-shadow: 0 10px 34px rgba(120,10,30,.12); }
body.light .footer { background: rgba(255,238,241,.85); }
body.light .card, body.light .bcard, body.light .stat, body.light .kpi,
body.light .cmd-group, body.light .cmd-item, body.light .faq details,
body.light .report, body.light .perm-result, body.light .table-wrap, body.light .callout {
  background: rgba(255,255,255,.78);
}
body.light .bcard { background: linear-gradient(160deg, rgba(216,28,60,.06), rgba(216,28,60,.02)); }
body.light .terminal { background: linear-gradient(180deg, #ffffff, #fdf1f3); border-color: rgba(180,20,50,.22); }
body.light .term-head { background: rgba(216,28,60,.06); }
body.light .term-line .t { color: #b98d95; }
body.light .term-line .msg { color: #6f3a44; }
body.light .chat, body.light .nuke-channel { background: #fff; }
body.light .chat-head, body.light .nc-head { background: rgba(216,28,60,.07); }
body.light .msg .txt, body.light .embed .er { color: #5c2a33; }
body.light .embed { background: rgba(216,28,60,.06); }
body.light .nc-lines span { background: linear-gradient(90deg, rgba(216,28,60,.18), rgba(216,28,60,.03)); }
body.light .demo-shell {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(253,241,243,.9)) padding-box,
    conic-gradient(from var(--ang), rgba(216,28,60,.1), rgba(216,28,60,.6), rgba(216,28,60,.35), rgba(216,28,60,.1) 62%) border-box;
}
body.light .palette { background: rgba(252,239,241,.72); }
body.light .palette-box { background: linear-gradient(180deg, #ffffff, #fdf2f4); box-shadow: var(--shadow), 0 0 60px rgba(216,28,60,.18); }
body.light .brand-badge { background: radial-gradient(circle at 50% 28%, rgba(216,28,60,.3), rgba(255,255,255,.85)); box-shadow: 0 0 0 1px rgba(216,28,60,.35), 0 12px 30px rgba(216,28,60,.28), inset 0 1px 0 rgba(255,255,255,.7); }
body.light .stat::after, body.light .bcard::before { opacity: .9; }
body.light .hero h1 { text-shadow: none; }
body.light .stat b, body.light .section-title { filter: none; }
body.light .kbd, body.light .toast { color: #fff; }
body.light .cursor-ring { border-color: rgba(216,28,60,.7); }
body.light .tab.active, body.light .demo-tab.active, body.light .btn-primary, body.light .to-top { color: #fff; }
.pl-emblem svg.logo-svg { width: 76px; height: 76px; filter: drop-shadow(0 0 26px rgba(255,36,71,.95)); animation: logopulse 2.4s ease-in-out infinite; }
@keyframes logopulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.brand:hover .logo-svg { animation: logopulse 1.4s ease-in-out infinite; }

/* aurora */
.aurora {
  position: fixed; inset: -30%; z-index: -2; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(255,36,71,.5), transparent 60%),
    radial-gradient(35% 30% at 80% 15%, rgba(255,122,61,.32), transparent 60%),
    radial-gradient(45% 35% at 60% 85%, rgba(200,16,40,.45), transparent 62%);
  filter: blur(42px);
  animation: aurora 30s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.04); }
}

/* Ctrl+K dugme */
.kbd-btn {
  font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line-2);
  padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.kbd-btn:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 20px rgba(255,36,71,.35); }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 1.65fr 1fr; grid-auto-rows: min-content; gap: 18px; }
.dash-main { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.dash-side { grid-column: 2; grid-row: 1; }
.dash-feed { grid-column: 2; grid-row: 2; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .98rem; }
.dash-title svg { color: var(--red); font-size: 18px; }
.dash-legend { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); }
.lg { display: flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.lg.trap::before { background: var(--red); }
.lg.bot::before { background: var(--gold); }
.lg.nuke::before { background: var(--ember); }
.lg.link::before { background: #ff5c72; }
.chart { width: 100%; height: 240px; display: block; margin: 4px 0 6px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px; text-align: center; transition: .2s; }
.kpi:hover { border-color: var(--line-2); box-shadow: 0 0 24px rgba(255,36,71,.18); }
.kpi b { display: block; font-size: 1.5rem; font-weight: 800; background: linear-gradient(100deg, var(--red-2), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { color: var(--muted); font-size: .76rem; }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.gauge { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.g-bg { fill: none; stroke: rgba(255,36,71,.13); stroke-width: 9; }
.g-fg { fill: none; stroke: var(--gc, var(--red)); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 7px var(--gc, var(--red))); }
.g-lab { position: relative; text-align: center; }
.g-lab b { display: block; font-size: 1.05rem; font-weight: 800; }
.g-lab span { font-size: .68rem; color: var(--muted); }

.feed { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; min-height: 210px; align-content: start; }
.feed li { display: flex; align-items: center; gap: 9px; font-size: .84rem; padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); animation: feedin .35s ease; }
@keyframes feedin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.feed li .dotk { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.feed li .tm { margin-left: auto; color: var(--muted); font-size: .72rem; font-family: "Cascadia Code", Consolas, monospace; }
.feed li.bad .dotk { background: var(--red); box-shadow: 0 0 10px var(--red); }
.feed li.warn .dotk { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.feed li.ok .dotk { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .68rem; color: var(--red-2); font-weight: 700; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }

/* ---------- Ctrl+K paleta ---------- */
.palette { position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding-top: 12vh; background: rgba(6,1,2,.72); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .22s; }
.palette.open { opacity: 1; visibility: visible; }
.palette-box { width: min(640px, 92%); border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(26,7,11,.98), rgba(12,3,5,.98)); box-shadow: var(--shadow), 0 0 70px rgba(255,36,71,.28); overflow: hidden; transform: translateY(-14px) scale(.98); transition: .24s cubic-bezier(.2,.8,.2,1); }
.palette.open .palette-box { transform: none; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { color: var(--red); font-size: 20px; }
.palette-input input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 1rem; }
.kbd { font-size: .68rem; font-weight: 800; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; }
.palette-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; cursor: pointer; transition: .13s; }
.palette-item:hover, .palette-item.sel { background: rgba(255,36,71,.14); }
.palette-item .pi-cmd { font-family: "Cascadia Code", Consolas, monospace; font-size: .86rem; color: #ffd9df; white-space: nowrap; }
.palette-item .pi-desc { color: var(--muted); font-size: .82rem; margin-left: auto; text-align: right; }
.palette-item .ci-tag { font-size: .64rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.palette-empty { text-align: center; color: var(--muted); padding: 34px; }
.palette-foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.palette-foot b { color: #ffd9df; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash-main, .dash-side, .dash-feed { grid-column: 1; grid-row: auto; }
  .kbd-btn { display: none; }
}
@media (max-width: 560px) { .dash-kpis { grid-template-columns: 1fr 1fr; } }


/* pauza animacija kad tab nije vidljiv (stedi CPU/GPU) */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

.ticker.paused .ticker-track, .cap-marquee.paused .cap-track { animation-play-state: paused; }


/* PERFORMANSE: staticna pozadina (bez blur slojeva i animacija) */
body {
  background:
    radial-gradient(1000px 700px at 12% -8%, rgba(255,36,71,.20), transparent 60%),
    radial-gradient(900px 700px at 98% 2%, rgba(190,14,38,.16), transparent 60%),
    radial-gradient(1200px 800px at 50% 112%, rgba(110,8,26,.20), transparent 62%),
    #070103 !important;
  background-attachment: fixed;
}
body::after { content: none !important; }
.nav, .nav.scrolled { backdrop-filter: none !important; background: rgba(8,2,3,.94) !important; }
.glow-ring { filter: none !important; }
.term-head, .chat-head, .nc-head { backdrop-filter: none; }



.ci-tag.profil { background: rgba(255,140,90,.16); color: #ffb59a; }
.card.small code { display: inline-block; margin-top: 10px; }
