/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080b12;
  --bg2:       #0d1220;
  --bg3:       #111827;
  --border:    #1e2a3d;
  --fg:        #e2e8f0;
  --fg2:       #94a3b8;
  --fg3:       #475569;
  --accent:    #00d4ff;
  --accent2:   #0ea5e9;
  --accent-g:  #22c55e;
  --red:       #ef4444;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #00bde8; transform: translateY(-1px); box-shadow: 0 8px 24px #00d4ff30; }
.btn-ghost {
  background: transparent;
  color: var(--fg2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-xl  { padding: 14px 28px; font-size: 15px; gap: 12px; }
.btn-xl span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-xl span strong { font-size: 15px; }
.btn-xl span small  { font-size: 11px; font-weight: 400; opacity: 0.7; }

/* ── Logo image ───────────────────────────────────────────────────────────── */
.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg2);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--bg3); }
.nav-cta { margin-left: 8px; flex-shrink: 0; }
.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; margin-left: auto;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: all 0.25s;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 400px;
  background: #00d4ff18;
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: #3b82f612;
  top: 100px; right: -80px;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--fg2);
  background: var(--bg2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-g);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}
.hm-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg3);
}

/* terminal preview */
.terminal-preview {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #060b14;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px #1e2a3d;
  overflow: hidden;
}
.tp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0d1525;
  border-bottom: 1px solid var(--border);
}
.tp-dots { display: flex; gap: 6px; }
.tp-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.tp-red    { background: #ff5f57; }
.tp-yellow { background: #febc2e; }
.tp-green  { background: #28c840; }
.tp-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg3);
}
.tp-badge {
  font-size: 10px;
  font-weight: 700;
  background: #22c55e20;
  color: #22c55e;
  border: 1px solid #22c55e40;
  padding: 2px 8px;
  border-radius: 4px;
}
.tp-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 180px;
  line-height: 1.6;
  overflow: hidden;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 0 48px;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg3);
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg2);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-wide { grid-column: span 3; }

.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  gap: 24px;
}
.feat-card:hover {
  border-color: #2a3a55;
  transform: translateY(-2px);
}
.feat-wide { flex-direction: row; }
.feat-card:not(.feat-wide) { flex-direction: column; }

.feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ic) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feat-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--ic);
}
.feat-body { flex: 1; }
.feat-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feat-list li {
  font-size: 13px;
  color: var(--fg2);
  padding-left: 14px;
  position: relative;
}
.feat-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Tools grid ───────────────────────────────────────────────────────────── */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.tool-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg3);
  transition: all var(--transition);
  cursor: default;
}
.tool-pill:hover { border-color: var(--accent); color: var(--accent); }
.tool-icon {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}
.tools-callouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.tc-arrow { color: var(--accent); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── SIEM ─────────────────────────────────────────────────────────────────── */
.siem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.siem-text .section-title { text-align: left; }
.siem-text .section-eyebrow { text-align: left; }
.siem-desc {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.siem-rules { display: flex; flex-direction: column; gap: 12px; }
.siem-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.sr-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  flex-shrink: 0;
  min-width: 96px;
  text-align: center;
}
.sr-desc {
  font-size: 13px;
  color: var(--fg2);
  font-family: var(--font-mono);
}

/* siem panel */
.siem-panel {
  background: #060b14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0d1525;
  border-bottom: 1px solid var(--border);
}
.sp-label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.sp-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #22c55e; letter-spacing: 1px;
}
.sp-dot {
  width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.sp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.sp-card {
  background: var(--bg);
  padding: 14px 10px;
  text-align: center;
  border-top: 2px solid;
}
.sp-cn { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; color: var(--fg3); margin-bottom: 4px; }
.sp-cv { font-size: 26px; font-weight: 700; font-family: var(--font-mono); line-height: 1; }
.sp-feed-hdr {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.5fr;
  padding: 6px 12px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg3);
}
.sp-feed {
  padding: 8px 12px;
  min-height: 140px;
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
}
.sp-feed::-webkit-scrollbar { width: 4px; }
.sp-feed::-webkit-scrollbar-track { background: transparent; }
.sp-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sp-footer {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--fg3);
  background: var(--bg3);
}

/* ── Protocols ────────────────────────────────────────────────────────────── */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proto-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}
.proto-card:hover { border-color: #2a3a55; }
.proto-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.proto-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.proto-list { display: flex; flex-direction: column; gap: 8px; }
.proto-list li {
  font-size: 13px;
  color: var(--fg2);
  padding-left: 16px;
  position: relative;
}
.proto-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--accent);
}

/* ── Download ─────────────────────────────────────────────────────────────── */
.dl-section { padding: 100px 0; }
.dl-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}
.dl-glow {
  position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, #00d4ff12 0%, transparent 70%);
  top: -60px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.dl-inner {
  position: relative;
  padding: 64px 40px;
}
.dl-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.dl-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.dl-ver {
  color: var(--accent);
}
.dl-sub {
  font-size: 15px;
  color: var(--fg2);
  margin-bottom: 40px;
}
.dl-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dl-checks {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.dl-checks span {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--fg3);
}
.dl-releases {
  margin-top: 16px;
  font-size: 13px;
}
.dl-releases a {
  color: var(--fg3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.dl-releases a:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-appname { font-weight: 700; font-size: 16px; }
.footer-tagline { font-size: 13px; color: var(--fg3); }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--fg3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  font-size: 12px;
  color: var(--fg3);
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-align: left;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  width: 18px; height: 18px;
  stroke: var(--fg3);
  flex-shrink: 0;
  transition: transform 0.25s ease, stroke 0.2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); stroke: var(--accent); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }
.faq-a code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.faq-a a { color: var(--accent); text-decoration: underline; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-wide { grid-column: span 2; }
  .siem-layout { grid-template-columns: 1fr; gap: 40px; }
  .proto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(8,11,18,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 14px; display: block; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; flex-direction: column; }
  .tools-callouts { grid-template-columns: 1fr; }
  .stats-inner { gap: 16px; }
  .stat { padding: 0 24px; }
  .stat-sep { height: 1px; width: 40px; }
  .dl-buttons { flex-direction: column; align-items: center; }
  .sp-feed-hdr { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
}
