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

:root {
  --bg: #0a0f1a;
  --bg-alt: #0f1525;
  --surface: #151d30;
  --surface-hover: #1a2440;
  --border: #1e2a45;
  --text: #e2e8f0;
  --text-dim: #8892a8;
  --accent: #e23e57;
  --accent-glow: rgba(226, 62, 87, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --blue: #3b82f6;
  --font: 'DM Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* HERO */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(226, 62, 87, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(226, 62, 87, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  background: var(--accent-glow);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* STICKY NAV */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface);
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 600px;
}

/* OVERVIEW CARDS */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.1);
}
.card-hardware { border-top: 3px solid var(--green); }
.card-software { border-top: 3px solid var(--yellow); }
.card-none { border-top: 3px solid var(--red); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.overview-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.overview-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.card-models { display: flex; flex-wrap: wrap; gap: 6px; }
.model-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-yellow { background: var(--yellow-bg); color: var(--yellow); }
.tag-red { background: var(--red-bg); color: var(--red); }

/* MODEL BLOCKS */
.model-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.model-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.model-header:hover { background: var(--surface-hover); }
.model-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.model-icon { font-size: 1.8rem; }
.model-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
}
.model-years {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.model-chevron {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.3s;
}
.model-block.open .model-chevron { transform: rotate(180deg); }
.model-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.model-block.open .model-body {
  max-height: 800px;
}

/* TABLES */
.bsm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.bsm-table thead {
  background: rgba(0,0,0,0.3);
}
.bsm-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.bsm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bsm-table tr:last-child td { border-bottom: none; }
.status-yes { color: var(--green); font-weight: 600; }
.status-no { color: var(--red); }
.status-partial { color: var(--yellow); }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}
.timeline-item.highlight::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* TYPES */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.type-num {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.type-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}
.type-quality {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.type-card:nth-child(1) .type-quality { background: var(--green-bg); color: var(--green); }
.type-card:nth-child(2) .type-quality { background: var(--yellow-bg); color: var(--yellow); }
.type-card:nth-child(3) .type-quality { background: var(--red-bg); color: var(--red); }
.type-card ul {
  list-style: none;
  padding: 0;
}
.type-card li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}
.type-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* LOOKUP */
.lookup-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lookup-form select {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  min-width: 200px;
  -webkit-appearance: none;
  appearance: none;
}
.lookup-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.lookup-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.lookup-result h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.lookup-result .lr-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.lookup-result .lr-row:last-child { border-bottom: none; }
.lr-label { color: var(--text-dim); }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
}
.faq-q span {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-bottom: 18px;
  line-height: 1.7;
}

/* FOOTER */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-disclaimer { opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-stat-row { gap: 24px; }
  .section { padding: 50px 0; }
  .bsm-table { display: block; overflow-x: auto; }
  .overview-grid, .types-grid {
    grid-template-columns: 1fr;
  }
  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline-item::before { left: -28px; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* SELECTION */
::selection { background: var(--accent); color: white; }
