/* ============================================================
   Vendor IQ™ – Dark Theme + Traffic Light CSS
   Brand: Purple #7B3FF2 → Blue #4E66FF → Cyan #22C7D6
   Background: #070A12 / #0B1020
   ============================================================ */

:root {
  --bg-deep: #070A12;
  --bg-base: #0B1020;
  --bg-card: #0F1629;
  --bg-card2: #131A32;
  --bg-elevated: #1A2240;
  --border: rgba(78,102,255,0.18);
  --border-bright: rgba(34,199,214,0.35);
  --text-primary: #EAF0FF;
  --text-secondary: #A9B3CC;
  --text-muted: #5A6480;
  --accent-cyan: #22C7D6;
  --accent-cyan-dark: #1BA8B5;
  --accent-purple: #7B3FF2;
  --accent-blue: #4E66FF;
  --accent-green: #00E676;
  --accent-yellow: #FFD600;
  --accent-red: #FF3D57;
  --safe-color: #00E676;
  --watch-color: #FFD600;
  --risk-color: #FF3D57;
  --gradient-main: linear-gradient(135deg, #7B3FF2 0%, #4E66FF 50%, #22C7D6 100%);
  --gradient-card: linear-gradient(135deg, rgba(123,63,242,0.08) 0%, rgba(34,199,214,0.05) 100%);
  --gradient-hero: linear-gradient(135deg, #070A12 0%, #0D1535 50%, #0A1A2E 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-cyan: 0 0 20px rgba(34,199,214,0.2);
  --shadow-purple: 0 0 20px rgba(123,63,242,0.2);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }

/* ============================================================
   NAVBAR / TOP HEADER
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,10,18,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO — no white background, transparent, clean */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  /* No white box — image has transparent background */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  /* Subtle glow to match brand */
  filter: drop-shadow(0 0 8px rgba(34,199,214,0.25));
}

/* Fallback text logo when image not loaded */
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
}
.nav-logo-fallback .logo-vendor {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.nav-logo-fallback .logo-iq {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.5px;
}
.nav-logo-fallback .logo-tm {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: -8px;
  align-self: flex-start;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--accent-cyan); background: rgba(34,199,214,0.08); }
.nav-links a.active { color: var(--accent-cyan); background: rgba(34,199,214,0.1); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.3rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(78,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo-large {
  width: auto;
  height: 90px;
  max-width: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: drop-shadow(0 0 20px rgba(34,199,214,0.35)) drop-shadow(0 0 40px rgba(123,63,242,0.2));
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(78,102,255,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(78,102,255,0.45); }
.btn-cyan {
  background: var(--accent-cyan);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(34,199,214,0.3);
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34,199,214,0.45); background: #1fc5d3; }
.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
}
.btn-outline:hover { background: rgba(34,199,214,0.08); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-bright); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-cyan); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ============================================================
   GRID & LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 2rem; }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-sub { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================================
   TRAFFIC LIGHT COMPONENT
   ============================================================ */
.traffic-light-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Cyberpunk traffic light panel */
.traffic-light-panel {
  background: linear-gradient(180deg, #0d1530 0%, #070c1d 50%, #060b1a 100%);
  border: 2px solid rgba(34,199,214,0.3);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow:
    0 0 0 1px rgba(78,102,255,0.15),
    0 0 30px rgba(34,199,214,0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

.traffic-light-panel::before {
  content: 'VIQ';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: 1px;
}

.tl-light {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Inactive (dim) states */
.tl-light.tl-safe { background: rgba(0,230,118,0.1); border: 2px solid rgba(0,230,118,0.25); }
.tl-light.tl-watch { background: rgba(255,214,0,0.1); border: 2px solid rgba(255,214,0,0.25); }
.tl-light.tl-risk { background: rgba(255,61,87,0.1); border: 2px solid rgba(255,61,87,0.25); }

/* Active states */
.tl-light.tl-safe.active {
  background: radial-gradient(circle, #00FF65 0%, #00cc52 60%, #009940 100%);
  border-color: #00FF65;
  box-shadow: 0 0 20px #00FF65, 0 0 40px rgba(0,255,101,0.5), 0 0 60px rgba(0,255,101,0.2);
  animation: glow-green 1.5s ease-in-out infinite alternate;
}
.tl-light.tl-watch.active {
  background: radial-gradient(circle, #FFE000 0%, #FFB300 60%, #FF8F00 100%);
  border-color: #FFE000;
  box-shadow: 0 0 20px #FFE000, 0 0 40px rgba(255,224,0,0.5), 0 0 60px rgba(255,224,0,0.2);
  animation: glow-yellow 1.5s ease-in-out infinite alternate;
}
.tl-light.tl-risk.active {
  background: radial-gradient(circle, #FF4060 0%, #FF0A2A 60%, #CC0022 100%);
  border-color: #FF4060;
  box-shadow: 0 0 20px #FF4060, 0 0 40px rgba(255,64,96,0.5), 0 0 60px rgba(255,64,96,0.2);
  animation: glow-red 1.5s ease-in-out infinite alternate;
}

/* Particle burst on active */
.tl-light.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: particle-ring 1.5s ease-out infinite;
}
.tl-light.tl-safe.active::after { border: 2px solid rgba(0,255,101,0.4); }
.tl-light.tl-watch.active::after { border: 2px solid rgba(255,224,0,0.4); }
.tl-light.tl-risk.active::after { border: 2px solid rgba(255,64,96,0.4); }

.tl-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.tl-light.tl-safe.active ~ .tl-label,
.tl-light.tl-safe.active + .tl-label { color: #00FF65; }
.tl-light.tl-watch.active + .tl-label { color: #FFE000; }
.tl-light.tl-risk.active + .tl-label { color: #FF4060; }

/* Traffic light label below each light */
.tl-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

@keyframes glow-green {
  from { box-shadow: 0 0 15px #00FF65, 0 0 30px rgba(0,255,101,0.4); }
  to   { box-shadow: 0 0 25px #00FF65, 0 0 50px rgba(0,255,101,0.6), 0 0 70px rgba(0,255,101,0.2); }
}
@keyframes glow-yellow {
  from { box-shadow: 0 0 15px #FFE000, 0 0 30px rgba(255,224,0,0.4); }
  to   { box-shadow: 0 0 25px #FFE000, 0 0 50px rgba(255,224,0,0.6), 0 0 70px rgba(255,224,0,0.2); }
}
@keyframes glow-red {
  from { box-shadow: 0 0 15px #FF4060, 0 0 30px rgba(255,64,96,0.4); }
  to   { box-shadow: 0 0 25px #FF4060, 0 0 50px rgba(255,64,96,0.6), 0 0 70px rgba(255,64,96,0.2); }
}
@keyframes particle-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Status badge scores ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.status-safe { background: rgba(0,230,118,0.12); color: #00E676; border: 1.5px solid rgba(0,230,118,0.3); }
.status-watch { background: rgba(255,214,0,0.12); color: #FFD600; border: 1.5px solid rgba(255,214,0,0.3); }
.status-risk { background: rgba(255,61,87,0.12); color: #FF3D57; border: 1.5px solid rgba(255,61,87,0.3); }

/* Score ring (donut) */
.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--ring-pct), rgba(255,255,255,0.05) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px rgba(var(--ring-r),var(--ring-g),var(--ring-b),0.3);
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg-card);
}
.score-ring-value {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.score-ring.safe { --ring-color: #00E676; --ring-r:0; --ring-g:230; --ring-b:118; }
.score-ring.watch { --ring-color: #FFD600; --ring-r:255; --ring-g:214; --ring-b:0; }
.score-ring.risk { --ring-color: #FF3D57; --ring-r:255; --ring-g:61; --ring-b:87; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34,199,214,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(78,102,255,0.04); }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   PAYWALL
   ============================================================ */
.paywall-wrap { position: relative; }
.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(7,10,18,0.65);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(255,61,87,0.25);
}
.paywall-icon { font-size: 2rem; }
.paywall-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.paywall-sub { font-size: 0.82rem; color: var(--text-secondary); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.alert-info { background: rgba(78,102,255,0.12); border-left: 3px solid var(--accent-blue); color: var(--text-secondary); }
.alert-success { background: rgba(0,230,118,0.1); border-left: 3px solid var(--safe-color); color: var(--text-secondary); }
.alert-warn { background: rgba(255,214,0,0.1); border-left: 3px solid var(--watch-color); color: var(--text-secondary); }
.alert-danger { background: rgba(255,61,87,0.1); border-left: 3px solid var(--risk-color); color: var(--text-secondary); }

/* ============================================================
   SIDEBAR / APP LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.sidebar-nav { list-style: none; padding: 0 0.75rem; flex: 1; }
.sidebar-nav li { margin-bottom: 0.2rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.sidebar-nav a:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-nav a.active { background: rgba(34,199,214,0.12); color: var(--accent-cyan); }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 0.95rem; }
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 1rem 1.6rem 0.4rem;
}

.main-content {
  flex: 1;
  overflow: auto;
  padding: 2rem;
  background: var(--bg-deep);
}

/* ============================================================
   PROGRESS / STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}
.step.active .step-num { background: var(--accent-cyan); border-color: var(--accent-cyan); color: var(--bg-deep); }
.step.done .step-num { background: var(--safe-color); border-color: var(--safe-color); color: var(--bg-deep); }
.step-label { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--accent-cyan); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 20px; }
.step.done + .step .step-line { background: var(--safe-color); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }
.text-safe { color: var(--safe-color); }
.text-watch { color: var(--watch-color); }
.text-risk { color: var(--risk-color); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; top: 64px; left: 0; bottom: 0; z-index: 500; width: 240px; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .section { padding: 2.5rem 1.25rem; }
  .nav { padding: 0 1rem; }
  .hero-logo-large { height: 70px; }
}
