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

:root {
  --red: #ff2a3d;
  --red-hot: #ff4757;
  --red-dim: #8f1622;
  --red-glow: rgba(255, 42, 61, 0.35);
  --bg: #060608;
  --bg-panel: #0c0c10;
  --bg-card: #101014;
  --border: #1e1e28;
  --border-red: rgba(255, 42, 61, 0.25);
  --text: #ececf0;
  --muted: #6b6b78;
  --green: #3dff8a;
  --yellow: #ffd166;
  --font: 'Rajdhani', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); }

/* ── SVG background ── */
.bg-grid {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.scan-line { animation: scan 8s linear infinite; }
@keyframes scan {
  0% { transform: translateY(-120px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.hex-deco {
  position: fixed; top: 15%; right: 4%; width: 100px; opacity: 0.4;
  pointer-events: none; z-index: 0; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; text-decoration: none; flex: 1; min-width: 0; }
.logo-wrap { display: block; line-height: 0; max-width: 100%; }
.logo-wrap--center { margin: 0 auto 28px; }

.logo-main {
  display: block;
  width: clamp(200px, 42vw, 420px);
  height: auto;
  max-height: clamp(48px, 9vw, 80px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 20px var(--red-glow));
  transition: filter 0.25s, transform 0.25s;
}
.logo-main--lg {
  width: clamp(240px, 55vw, 480px);
  max-height: clamp(56px, 11vw, 96px);
  object-position: center;
}
.logo-main--sm {
  width: clamp(160px, 35vw, 280px);
  max-height: clamp(40px, 7vw, 56px);
}
.brand:hover .logo-main,
.footer-brand:hover .logo-main {
  filter: drop-shadow(0 0 28px var(--red-glow));
  transform: scale(1.02);
}

.nav { display: flex; gap: 24px; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); opacity: 0; transition: opacity 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a:hover .nav-dot { opacity: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; font-family: var(--font);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  text-decoration: none; text-transform: uppercase;
  border-radius: 4px; cursor: pointer; transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 36px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #c41e3a 100%);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--red-dim); color: var(--text); }

main { position: relative; z-index: 1; }

/* ── Hero ── */
.hero { padding: 60px 5vw 80px; max-width: 1200px; margin: 0 auto; }
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

.status-bar {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
}
.status-bar .sep { color: var(--border); }
.status-bar .muted { color: var(--muted); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: 0.02em;
  margin-bottom: 20px; text-transform: uppercase;
}
.h1-line { display: block; color: var(--text); }
.h1-accent {
  display: block;
  background: linear-gradient(90deg, var(--red), #ff8a96);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15em;
}
.hero h1 em {
  font-style: normal; color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.hero-lead {
  font-size: 1.05rem; color: var(--muted); max-width: 520px;
  margin-bottom: 32px; font-weight: 500;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-stats {
  display: flex; gap: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-val {
  display: block; font-size: 1.6rem; font-weight: 700;
  color: var(--red); font-family: var(--mono);
}
.stat-lbl {
  font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Terminal visual */
.hero-visual { position: relative; }
.terminal-frame {
  background: var(--bg-panel);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,42,61,0.08);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #08080c;
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.terminal-title {
  margin-left: 8px; font-family: var(--mono);
  font-size: 0.72rem; color: var(--muted);
}
.terminal-body { padding: 20px; position: relative; min-height: 280px; }
.terminal-code {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.7;
  white-space: pre-wrap; color: var(--text);
}
.c-dim { color: var(--muted); }
.c-green { color: var(--green); }
.c-red { color: var(--red); font-weight: 600; }
.c-yellow { color: var(--yellow); }
.cursor-blink {
  font-family: var(--mono); color: var(--red);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.corner { position: absolute; width: 40px; height: 40px; opacity: 0.6; }
.corner.tl { top: -8px; left: -8px; }
.corner.br { bottom: -8px; right: -8px; }

/* ── Sections ── */
.section { padding: 80px 5vw; max-width: 1100px; margin: 0 auto; }
.section-dark {
  max-width: none; padding-inline: 5vw;
  background: linear-gradient(180deg, transparent, rgba(255,42,61,0.03), transparent);
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-icon {
  width: 32px; height: 32px; color: var(--red);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-sub { color: var(--muted); margin-top: 8px; font-size: 1rem; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cyber-card {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.cyber-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 40px; height: 2px; background: var(--red);
}
.cyber-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,42,61,0.08);
}
.card-svg { width: 40px; height: 40px; margin-bottom: 16px; }
.cyber-card h3 {
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cyber-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.card-tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--red);
  padding: 3px 8px; border: 1px solid var(--border-red);
}

/* Stack table */
.stack-table {
  max-width: 800px; margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.stack-row {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; align-items: center;
}
.stack-row.head {
  background: rgba(255,42,61,0.06);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.75rem; color: var(--muted);
}
.stack-row:last-child { border-bottom: none; }
.badge {
  display: inline-block; font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 2px;
}
.badge.live { background: rgba(61,255,138,0.1); color: var(--green); border: 1px solid rgba(61,255,138,0.3); }
.badge.local { background: rgba(255,209,102,0.1); color: var(--yellow); border: 1px solid rgba(255,209,102,0.3); }

/* Download */
.download-section { padding-bottom: 100px; }
.download-panel {
  position: relative; text-align: center;
  padding: 56px 32px; overflow: hidden;
  border: 1px solid var(--border-red);
  background: var(--bg-card);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.download-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.download-panel h2 {
  font-size: 1.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px; position: relative; z-index: 1;
}
.download-panel p {
  color: var(--muted); margin-bottom: 28px;
  max-width: 480px; margin-inline: auto; position: relative; z-index: 1;
}
.download-panel code { color: var(--red); }
.download-panel .btn { position: relative; z-index: 1; }
.download-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 32px;
  margin-top: 28px; font-size: 0.82rem; color: var(--muted);
  position: relative; z-index: 1;
}
.download-meta span { display: flex; align-items: center; gap: 6px; }
.download-meta svg { color: var(--green); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); margin-bottom: 8px;
  background: var(--bg-card);
}
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  list-style: none; font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--red); border-bottom: 1px solid var(--border); }
.faq-item p { padding: 16px 20px; color: var(--muted); font-size: 0.9rem; }

kbd {
  font-family: var(--mono); background: #0008;
  border: 1px solid var(--border); border-radius: 3px;
  padding: 2px 7px; font-size: 0.85em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 5vw; position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 16px;
}
.footer-brand { display: flex; align-items: center; text-decoration: none; opacity: 0.9; }
.footer-brand:hover { opacity: 1; }
.footer-copy { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nav { display: none; }
  .hero-stats { gap: 20px; }
  .header { flex-wrap: wrap; justify-content: center; }
  .brand { flex: 1 1 100%; justify-content: center; }
  .logo-main { object-position: center; width: min(92vw, 420px); }
}

@media (max-width: 520px) {
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
  .stack-row.head { display: none; }
  .stack-row span:first-child { font-weight: 700; color: var(--red); }
}
