/* ============================================================
   QCrypton Landing Page — Redesigned
   Teal/Indigo palette, bento grid layouts, glassmorphism cards
   ============================================================ */

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

:root {
  --bg-primary: #050a12;
  --bg-secondary: #080e1c;
  --bg-tertiary: #0c1425;
  --bg-card: rgba(15, 25, 50, 0.6);
  --bg-card-hover: rgba(20, 35, 65, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(45, 212, 191, 0.3);

  --text-primary: #f0f4f8;
  --text-secondary: #8b9dc3;
  --text-muted: #5b6b8a;

  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --indigo: #818cf8;
  --indigo-bright: #a5b4fc;
  --violet: #c084fc;
  --rose: #fb7185;
  --amber: #fbbf24;
  --emerald: #34d399;
  --red: #f87171;
  --sky: #38bdf8;

  --gradient-primary: linear-gradient(135deg, var(--teal), var(--indigo));
  --gradient-hero: linear-gradient(135deg, var(--teal), var(--indigo), var(--violet));
  --gradient-warm: linear-gradient(135deg, var(--rose), var(--amber));
  --gradient-card: linear-gradient(160deg, rgba(15, 25, 50, 0.8), rgba(8, 14, 28, 0.9));

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-teal: 0 0 60px rgba(45, 212, 191, 0.08);
  --shadow-indigo: 0 0 60px rgba(129, 140, 248, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin-left: 220px;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--indigo-bright); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}
.btn-lg { padding: 14px 32px; font-size: 15px; letter-spacing: 0.3px; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--border-accent);
  color: var(--teal);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 8px 20px; font-size: 14px;
}
.btn-outline-light:hover {
  border-color: var(--teal-dim);
  color: var(--teal);
  background: rgba(45, 212, 191, 0.06);
}
.btn-primary-nav {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  border: none;
  padding: 8px 20px; font-size: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 220px; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(5, 10, 18, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary); text-decoration: none;
}
.nav-logo-icon { width: 32px; height: 32px; }
.nav-logo-text {
  font-size: 19px; font-weight: 700; letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: none; list-style: none; gap: 28px; }
.nav-links .mobile-only { display: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); transition: all 0.3s;
  border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -250px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background:
    radial-gradient(ellipse 40% 50% at 35% 45%, rgba(45, 212, 191, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 65% 45%, rgba(129, 140, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--teal);
  margin-bottom: 28px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; }
.hero-tagline {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 3px; font-weight: 600;
}

/* Hero Metrics — horizontal pill bar */
.hero-metrics {
  position: relative;
  display: flex; justify-content: center; gap: 2px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 60px;
  overflow: hidden;
  max-width: 800px; width: 100%;
}
.metric {
  flex: 1;
  background: var(--bg-secondary);
  padding: 22px 16px; text-align: center;
}
.metric:first-child { border-radius: 60px 0 0 60px; }
.metric:last-child { border-radius: 0 60px 60px 0; }
.metric-value {
  display: block;
  font-size: 26px; font-weight: 800;
  color: var(--teal);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  line-height: 1.3;
}

/* ---------- Section Shared ---------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-header p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}

/* ---------- QCrypton Pulse ---------- */
.pulse-section {
  padding: 72px 0 64px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.pulse-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.pulse-header { text-align: center; margin-bottom: 40px; }
.pulse-live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  letter-spacing: 0.5px;
}
.pulse-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-blink 2s ease-in-out infinite;
}
.pulse-separator { color: var(--text-muted); margin: 0 2px; }
.pulse-disclaimer {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
  letter-spacing: 0.3px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pulse-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}
.pulse-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; min-height: 56px;
}

.pulse-label h3 {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.2px; margin-bottom: 2px;
}
.pulse-label span {
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.2px;
}

.pulse-metric { text-align: right; }
.pulse-value {
  font-size: 28px; font-weight: 800; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pulse-arrow {
  font-size: 16px; font-weight: 700; margin-left: 3px;
}
.pulse-arrow.up { color: var(--rose); }
.pulse-arrow.down { color: var(--emerald); }
.pulse-unit {
  display: block;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-top: 2px;
}

/* SVG waveform */
.pulse-wave {
  display: block;
  width: 100%; height: 48px;
  margin-top: 4px;
}
.pulse-wave-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px currentColor);
}

/* Sweep animation — a highlight bar sweeps across each card */
.pulse-card::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: pulse-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse-sweep {
  0%   { left: -60px; }
  100% { left: calc(100% + 60px); }
}

/* ---------- Capabilities — Bento Grid ---------- */
.capabilities {
  padding: 100px 0;
  position: relative;
}
.capabilities::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.cap-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.cap-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 40%, rgba(45, 212, 191, 0.03) 100%);
  pointer-events: none;
}
.cap-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}
.cap-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--teal);
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.cap-card p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 14px;
}
.cap-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.12);
  padding: 3px 10px; border-radius: 4px;
}

/* ---------- Quantum Attack Cost ---------- */
.attack-cost {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.attack-cost::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.attack-cost-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left panel — controls */
.cost-controls {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 100px;
}
.cost-controls h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.cost-controls > p {
  font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5;
}
.control-group { margin-bottom: 16px; }
.control-group label {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.control-group select,
.control-group input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 0.2s;
}
.control-group select:focus,
.control-group input:focus {
  outline: none;
  border-color: var(--teal-dim);
}
.control-group select option { background: var(--bg-primary); }

/* Result card in controls */
.cost-result-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.cost-result-card h4 {
  font-size: 13px; font-weight: 700;
  color: var(--teal); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cost-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.cost-stat:last-child { border-bottom: none; }
.cost-stat-label {
  font-size: 12px; color: var(--text-muted);
}
.cost-stat-value {
  font-size: 13px; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.cost-stat-value.safe { color: var(--emerald); }
.cost-stat-value.warn { color: var(--amber); }
.cost-stat-value.danger { color: var(--red); }

.feasibility-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 12px;
  width: 100%; justify-content: center;
}
.feasibility-badge.safe {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--emerald);
}
.feasibility-badge.vulnerable {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--amber);
}
.feasibility-badge.broken {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--red);
}

/* Right panel — comparison table */
.cost-table-wrap {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Height matched to inspector panel via JS; scroll the rest */
}
.cost-table-wrap .cost-table-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.cost-table-wrap .cost-table-scroll::-webkit-scrollbar { width: 6px; }
.cost-table-wrap .cost-table-scroll::-webkit-scrollbar-track { background: transparent; }
.cost-table-wrap .cost-table-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light); border-radius: 3px;
}
.cost-table-wrap .cost-table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.cost-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cost-table-header h3 { font-size: 15px; font-weight: 700; }
.cost-table-header span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cost-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.cost-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cost-table tbody tr { transition: background 0.15s; cursor: pointer; }
.cost-table tbody tr:hover { background: rgba(45, 212, 191, 0.04); }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr.active { background: rgba(45, 212, 191, 0.06); }

.algo-name {
  font-weight: 600; color: var(--text-primary);
}
.status-pill {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pill.safe { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }
.status-pill.vulnerable { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.status-pill.broken { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.status-pill.theoretical { background: rgba(129, 140, 248, 0.12); color: var(--indigo-bright); }

/* ---------- How It Works — Horizontal steps ---------- */
.how-it-works {
  padding: 100px 0;
  position: relative;
}
.steps-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}
.steps-row::before {
  content: ''; position: absolute;
  top: 32px; left: 48px; right: 48px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--indigo), var(--violet), var(--rose), var(--teal-dim));
  opacity: 0.3;
}
.step-item {
  text-align: center; padding: 0 16px;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-size: 20px; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
}
.step-item:nth-child(1) .step-number { background: linear-gradient(135deg, var(--teal), var(--teal-dim)); }
.step-item:nth-child(2) .step-number { background: linear-gradient(135deg, var(--teal-dim), var(--indigo)); }
.step-item:nth-child(3) .step-number { background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.step-item:nth-child(4) .step-number { background: linear-gradient(135deg, var(--violet), var(--rose)); }
.step-item:nth-child(5) .step-number { background: linear-gradient(135deg, var(--rose), var(--teal)); }
.step-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- Threat Landscape ---------- */
.threat-landscape {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.threat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 56px;
}
.threat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}
.threat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.threat-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.threat-severity {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 8px; border-radius: 4px;
}
.threat-header.critical .threat-severity { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.threat-header.high .threat-severity { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.threat-header.warn .threat-severity { background: rgba(192, 132, 252, 0.12); color: var(--violet); }
.threat-header h3 { font-size: 15px; font-weight: 700; }
.threat-card > p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 14px;
}
.threat-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.threat-tags span {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
  background: rgba(45, 212, 191, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Crypto Tiers */
.crypto-tiers { margin-top: 8px; }
.tiers-title {
  text-align: center;
  font-size: 20px; font-weight: 700;
  margin-bottom: 28px;
}
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}
.tier-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.tier-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tier-card h4 { font-size: 14px; font-weight: 700; }
.tier-card > p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.tier-card ul { list-style: none; margin-bottom: 14px; }
.tier-card ul li {
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-action {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 4px;
  text-align: center;
}
.tier-weak .tier-action { background: rgba(248, 113, 113, 0.08); color: var(--red); }
.tier-modern .tier-action { background: rgba(251, 191, 36, 0.08); color: var(--amber); }
.tier-pqc .tier-action { background: rgba(52, 211, 153, 0.08); color: var(--emerald); }

/* ---------- Live Status — inline strip ---------- */
.live-status {
  padding: 80px 0;
  position: relative;
}
.status-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.status-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.status-indicator {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.status-indicator.online {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: pulse 2.5s ease-in-out infinite;
}
.status-info h4 { font-size: 13px; font-weight: 600; }
.status-text { font-size: 11px; color: var(--text-muted); }

/* ---------- Use Cases ---------- */
.use-cases {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.usecase-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}
.usecase-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}
.usecase-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.usecase-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.usecase-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex;
  justify-content: space-between; align-items: center;
  padding: 18px 0;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--teal); }
.faq-toggle {
  font-size: 22px; font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--teal); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 400px; padding-bottom: 18px; }
.faq-answer p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; }
.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800; margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.cta-content > p {
  font-size: 15px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 28px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 14px;
  margin-bottom: 28px;
}
.cta-cli {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
}
.cta-cli code {
  font-family: var(--font-mono);
  font-size: 14px; color: var(--teal);
}
.copy-btn {
  background: none; border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 12px; border-radius: 4px;
  font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--teal-dim); color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 28px; margin-bottom: 40px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.footer-logo-icon { width: 24px; height: 24px; }
.footer-logo span { font-size: 16px; font-weight: 700; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 14px; color: var(--text-secondary);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--text-primary); }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Landing Sidebar ---------- */
.landing-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  z-index: 900;
  background: rgba(5, 10, 18, 0.95);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 0 16px;
  overflow-y: auto;
}

.sidebar-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-links li a {
  display: block;
  padding: 10px 16px 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: normal;
}

.sidebar-nav-links li a:hover {
  color: var(--teal);
  border-left-color: var(--teal);
  background: rgba(45, 212, 191, 0.06);
}

.sidebar-nav-links li a.active {
  color: var(--teal);
  border-left-color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .attack-cost-layout { grid-template-columns: 1fr; }
  .cost-controls { position: static; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .threat-grid, .tiers-grid, .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .landing-sidebar { display: none; }
  body { margin-left: 0; }
  .navbar { left: 0; }
  .mobile-menu-btn { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  .nav-links.active .mobile-only { display: list-item; }

  .hero-metrics { flex-direction: column; border-radius: var(--radius-lg); }
  .metric:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .metric:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .hero-title { font-size: 30px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid, .threat-grid, .tiers-grid, .usecase-grid, .status-grid {
    grid-template-columns: 1fr;
  }
  .steps-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }

  .cost-table { font-size: 12px; }
  .cost-table thead th,
  .cost-table tbody td { padding: 10px 10px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 40px; }
  .container { padding: 0 16px; }
  .pulse-grid { grid-template-columns: 1fr; }
}

/* ---------- App Download Badges ---------- */
.app-download {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.app-download-content {
  text-align: center;
}

.app-download-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.app-download-content > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, border-color 0.2s;
  min-width: 200px;
}

.app-badge:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.app-badge svg {
  flex-shrink: 0;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.app-badge-small {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.app-badge-big {
  font-size: 1.3rem;
  font-weight: 600;
}
