/* ============================================
   Nithic Security — Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0e1a;
  --bg-alt:    #111827;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --text:      #e2e8f0;
  --text-dim:  #94a3b8;
  --cyan:      #06b6d4;
  --violet:    #8b5cf6;
  --blue:      #2563eb;
  --amber:     #f59e0b;
  --glow-cyan: rgba(6,182,212,0.35);
  --glow-violet: rgba(139,92,246,0.25);
  --glow-amber: rgba(245,158,11,0.3);
  --radius:    12px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-cyan);
}
.btn-primary:hover { box-shadow: 0 6px 32px var(--glow-cyan); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}
.logo-text { font-weight: 600; font-size: 1.05rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cyan), var(--glow-violet), transparent 70%);
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-10%, -10%) scale(1); }
  50%      { transform: translate(10%, 10%) scale(1.12); }
}

.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 60%, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Product Mockup --- */
.hero-mockup {
  margin-top: 48px;
}
.mockup-browser {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,0.8);
  overflow: visible;
}
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-dot:first-child { background: #ef4444; }
.mockup-dot:nth-child(2) { background: var(--amber); }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
}
.mockup-content {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-page-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.mockup-page-line-long { width: 100%; }
.mockup-page-line-med { width: 75%; }
.mockup-page-line-short { width: 50%; }

/* Extension popup overlay */
.mockup-popup {
  position: absolute;
  top: 44px;
  right: -12px;
  width: 200px;
  background: rgba(17,24,39,0.95);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px var(--glow-cyan);
  z-index: 2;
}
.mockup-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mockup-popup-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 600;
  font-size: 0.6rem;
  color: #fff;
}
.mockup-popup-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.mockup-popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mockup-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.mockup-status {
  font-size: 0.65rem;
  font-weight: 600;
}
.mockup-status-safe { color: #22c55e; }
.mockup-status-detected { color: var(--amber); }
.mockup-scan-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.mockup-scan-fill {
  height: 100%;
  width: 70%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  animation: scanPulse 2s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { width: 70%; opacity: 1; }
  50%      { width: 90%; opacity: 0.7; }
}

/* --- Badge Pills --- */
.badge-security {
  background: rgba(6,182,212,0.15);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.3);
}
.badge-ai {
  background: rgba(245,158,11,0.15);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
}
.inline-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 6px;
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 56px;
}

/* --- Threat Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 0 30px rgba(6,182,212,0.08);
}
.card:last-child:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 30px rgba(245,158,11,0.08);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--cyan);
}
.card-icon-amber { color: var(--amber); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.card p  { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

/* --- Feature Tabs --- */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.feature-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.2s;
}
.feature-tab:hover { transform: translateY(-1px); }
.tab-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-tab.active .tab-badge.badge-security {
  background: rgba(6,182,212,0.2);
  box-shadow: 0 0 20px var(--glow-cyan);
}
.feature-tab.active .tab-badge.badge-ai {
  background: rgba(245,158,11,0.2);
  box-shadow: 0 0 20px var(--glow-amber);
}

/* --- Feature Panels --- */
.feature-panel {
  display: none;
}
.feature-panel.active {
  display: block;
}

/* --- Features --- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 56px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { flex-direction: row-reverse; }

.feature-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--violet);
}
.feature-icon svg { width: 44px; height: 44px; }
.feature-icon-amber {
  color: var(--amber);
  border-color: rgba(245,158,11,0.2);
}

.feature-text h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.feature-text p  { color: var(--text-dim); font-size: 0.95rem; max-width: 480px; }

/* --- Social Proof / Stats --- */
.social-proof {
  padding: 72px 0;
  background: var(--bg-alt);
}
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* --- How It Works (Steps) --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  text-align: center;
  flex: 0 1 220px;
}
.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.step p  { color: var(--text-dim); font-size: 0.9rem; }

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin-top: 26px;
  border-radius: 1px;
  opacity: 0.5;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  border-color: rgba(6,182,212,0.25);
}
.pricing-card-highlight {
  border-color: var(--cyan);
  box-shadow: 0 0 40px var(--glow-cyan), inset 0 1px 0 rgba(6,182,212,0.15);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-dim);
}
.pricing-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '\2713';
  color: var(--cyan);
  margin-right: 10px;
  font-weight: 600;
}
.pricing-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.pricing-note-link {
  color: var(--cyan);
  font-weight: 600;
}
.pricing-note-link:hover { text-decoration: underline; }

/* --- Solutions (tabbed audience panels) --- */
.sol-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.sol-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sol-tab:hover {
  border-color: rgba(6,182,212,0.3);
  color: var(--text);
}
.sol-tab.active {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.4);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--glow-cyan);
}

.sol-panel {
  display: none;
}
.sol-panel.active {
  display: block;
}

.sol-panel-intro {
  text-align: center;
  margin-bottom: 40px;
}
.sol-panel-desc {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.sol-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sol-cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sol-cap-card:hover {
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 0 30px rgba(6,182,212,0.08);
}

.sol-cap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--cyan);
}
.sol-cap-icon-amber { color: var(--amber); }

.sol-cap-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.sol-cap-problem {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.sol-cap-solution {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sol-cap-diff {
  border-left: 3px solid var(--cyan);
  background: rgba(6,182,212,0.04);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.sol-cap-diff-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cyan);
  margin-bottom: 4px;
}

/* --- About --- */
.about-content { text-align: center; max-width: 620px; margin: 0 auto; }
.about-content p { color: var(--text-dim); font-size: 1rem; margin-top: 16px; line-height: 1.75; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* --- Techniques Section --- */

/* Stats boxes */
.tech-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tech-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  min-width: 160px;
}
.tech-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}
.tech-stat-number.cov-yes { color: #4ade80; }
.tech-stat-number.cov-partial { color: #fbbf24; }
.tech-stat-number.cov-no { color: #94a3b8; }
.tech-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Controls bar */
.tech-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tech-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.tech-search::placeholder { color: var(--text-dim); }
.tech-search:focus { border-color: var(--cyan); }

.tech-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.tech-view-btn {
  padding: 10px 18px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.tech-view-btn:not(:last-child) { border-right: 1px solid var(--border); }
.tech-view-btn.active {
  background: rgba(6,182,212,0.15);
  color: var(--cyan);
}

/* Panels */
.tech-panel { display: none; }
.tech-panel.active { display: block; }

/* Breadcrumb */
.tech-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.tech-breadcrumb-item {
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.tech-breadcrumb-item:hover { color: var(--cyan); }
.tech-breadcrumb-sep { color: var(--text-dim); opacity: 0.5; }

/* Grid cards */
.tech-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.tech-card:hover {
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 0 20px rgba(6,182,212,0.08);
  transform: translateY(-2px);
}
.tech-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tech-card-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Coverage bar (mini) */
.tech-cov-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(100,116,139,0.15);
}
.tech-cov-seg {
  height: 100%;
  transition: width 0.3s;
}
.tech-cov-seg.cov-yes { background: #4ade80; }
.tech-cov-seg.cov-partial { background: #fbbf24; }
.tech-cov-seg.cov-no { background: rgba(100,116,139,0.3); }

/* Coverage pill */
.tech-cov-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tech-cov-pill.cov-yes { background: rgba(34,197,94,0.15); color: #4ade80; }
.tech-cov-pill.cov-partial { background: rgba(245,158,11,0.15); color: #fbbf24; }
.tech-cov-pill.cov-no { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* Tree view */
.tech-tree { list-style: none; padding: 0; }
.tech-tree-node {
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
}
.tech-tree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s;
  user-select: none;
}
.tech-tree-header:hover { background: rgba(255,255,255,0.03); }
.tech-tree-chevron {
  display: inline-block;
  width: 16px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.tech-tree-node.expanded > .tech-tree-header .tech-tree-chevron {
  transform: rotate(90deg);
}
.tech-tree-name {
  flex: 1;
  font-size: 0.9rem;
}
.tech-tree-children {
  display: none;
  padding-left: 20px;
}
.tech-tree-node.expanded > .tech-tree-children {
  display: block;
}
.tech-tree-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 36px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background 0.15s;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.tech-tree-leaf:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

/* Detail panel */
.tech-detail {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 480px;
  max-width: 90vw;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tech-detail.active {
  transform: translateX(0);
}
.tech-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.tech-detail-overlay.active { display: block; }

.tech-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.tech-detail-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.tech-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px;
}
.tech-detail-scroll::-webkit-scrollbar { width: 4px; }
.tech-detail-scroll::-webkit-scrollbar-track { background: transparent; }
.tech-detail-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

#tech-detail-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-right: 36px;
}

.tech-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tech-detail-badge.mitre {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.25);
}

.tech-detail-section {
  margin-bottom: 24px;
}
.tech-detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tech-detail-section p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.tech-detail-list {
  list-style: none;
  padding: 0;
}
.tech-detail-list li {
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.tech-detail-list li::before {
  content: '\2713';
  color: var(--cyan);
  margin-right: 8px;
  font-weight: 600;
}

/* Detector cards in detail panel */
.tech-detector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tech-detector-card:hover {
  border-color: rgba(6,182,212,0.3);
}
.tech-detector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tech-detector-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.tech-detector-severity {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}
.tech-detector-severity.sev-critical { background: rgba(239,68,68,0.15); color: #f87171; }
.tech-detector-severity.sev-high { background: rgba(251,146,60,0.15); color: #fb923c; }
.tech-detector-severity.sev-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.tech-detector-severity.sev-low { background: rgba(34,197,94,0.15); color: #4ade80; }
.tech-detector-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --- Detections Section --- */
.detector-grid {
  display: grid;
  gap: 32px;
}
.detector-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.detector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.detector-card:hover {
  border-color: rgba(6,182,212,0.25);
  box-shadow: 0 0 20px rgba(6,182,212,0.06);
}
.detector-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.detector-card-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.detector-card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 12px;
}
.detector-card-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  cursor: pointer;
  transition: opacity 0.2s;
}
.detector-card-link:hover { opacity: 0.8; }

/* No results */
.tech-no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10,14,26,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }

  /* Hamburger animation */
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .card-grid { grid-template-columns: 1fr; }

  .feature-tabs { flex-direction: column; align-items: center; gap: 8px; }

  .feature-row,
  .feature-row-reverse { flex-direction: column; gap: 20px; text-align: center; }
  .feature-text p { margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; gap: 0; }
  .step-connector {
    width: 2px;
    height: 40px;
    flex: 0 0 40px;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
    margin: 0;
  }

  .stats-bar { flex-direction: column; gap: 24px; }
  .stat-divider { width: 48px; height: 1px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .sol-tabs { gap: 8px; }
  .sol-cap-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .section { padding: 72px 0; }
  .social-proof { padding: 56px 0; }

  .mockup-popup { right: 4px; width: 170px; }

  .hero { min-height: auto; padding-bottom: 40px; }

  .tech-stats { gap: 12px; }
  .tech-stat-box { min-width: 120px; padding: 14px 16px; }
  .tech-stat-number { font-size: 1.5rem; }
  .tech-card-grid { grid-template-columns: 1fr; }
  .tech-detail { width: 100%; max-width: 100vw; }
  .detector-cards { grid-template-columns: 1fr; }
  .tech-controls { flex-direction: column; }
  .tech-search { width: 100%; }
}
