/* ═══════════════════════════════════════════════════════════════
   VOLVO Car Tool — Design System
   Light premium theme · Dark diagnostic preview for contrast
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Page backgrounds — warm light */
  --bg:        #F6F6F3;
  --surface:   #FFFFFF;
  --surface-2: #F0F0EB;
  --surface-3: #E8E8E2;

  /* Borders */
  --line:   #E8E8E2;
  --line-2: #D4D4CE;

  /* Text */
  --text:   #0A0B12;
  --text-2: #5A5D68;
  --text-3: #8A8D99;

  /* Accent (brand blue) */
  --accent:      #2563EB;
  --accent-hi:   #3B82F6;
  --accent-glow: rgba(37,99,235,.18);

  /* Status */
  --ok:   #16A34A;
  --warn: #D97706;
  --err:  #DC2626;

  /* Shadows — soft, tasteful */
  --shadow:    0 1px 2px rgba(15,20,35,.04), 0 8px 28px rgba(15,20,35,.05);
  --shadow-lg: 0 30px 80px rgba(15,20,35,.14), 0 4px 16px rgba(15,20,35,.06);

  /* Diagnostic window — its own dark palette (stays dark for contrast) */
  --diag-bg:       #0F1018;
  --diag-surface:  #171923;
  --diag-surface-2:#1F2230;
  --diag-line:     rgba(255,255,255,.07);
  --diag-line-2:   rgba(255,255,255,.14);
  --diag-text:     #F2F3F7;
  --diag-text-2:   rgba(242,243,247,.55);
  --diag-text-3:   rgba(242,243,247,.3);

  /* Radii */
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Layout */
  --wrap: 1180px;
}

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a   { color: inherit; text-decoration: none; }
img { display: block; }

/* ─── Layout ──────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85); /* Clean white glass */
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 32px rgba(15,20,35,.03); /* Softer, wider shadow */
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

/* Brand — Text Wordmark */
.brand { 
  display: flex; 
  align-items: center; 
  flex-shrink: 0; 
  text-decoration: none; 
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
  transition: opacity .15s ease;
}

.brand:hover .brand-wordmark { 
  opacity: .75; 
}

.bw-volvo {
  font-weight: 800;
  color: var(--text);
}

.bw-divider {
  width: 2px;
  height: 16px;
  background: var(--line-2);
  border-radius: 2px;
  margin: 0 2px;
}

.bw-cartool {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 14px;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: color .15s, background .15s;
  font-weight: 500;
}
.nav-link:hover     { color: var(--text); background: var(--surface-2); }
.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-2);
  position: relative;
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .subtle {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--r-full);
  transition: color .15s;
  font-weight: 500;
}
.nav-actions .subtle:hover { color: var(--text); }

/* ─── Hamburger Button ────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .26s ease, opacity .18s ease, width .22s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10,11,18,0);
  pointer-events: none;
  transition: background .25s ease;
}
.mobile-menu.is-open {
  background: rgba(10,11,18,.35);
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(15,20,35,.13);
  padding: 10px 0 20px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-menu.is-open .mobile-menu-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav { display: flex; flex-direction: column; }
.mobile-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 11px 16px;
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.mobile-link:hover { color: var(--text); background: var(--surface-2); }
.mobile-link.is-active { color: var(--text); font-weight: 600; background: var(--surface-2); }

.mobile-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0 14px;
}

.mobile-actions { display: flex; flex-direction: column; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, color .15s;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: .01em;
  font-family: inherit;
}
.button:active { transform: scale(.97); }

.button.small { height: 34px; padding: 0 14px; font-size: 13px; }
.button.large { height: 52px; padding: 0 28px; font-size: 15px; font-weight: 700; }
.button.full  { width: 100%; }

.button-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}
.button-accent:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 10px 28px rgba(59,130,246,.35);
}

.button-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
}
.button-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}

.button-dark        { background: var(--text); color: #fff; border-color: var(--text); }
.button-dark:hover  { background: #1F2230; border-color: #1F2230; }
.button-ghost-white { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.button-ghost-white:hover { background: var(--surface-2); }
.button-white       { background: #fff; color: var(--text); border-color: #fff; }
.button-white:hover { background: var(--surface-2); }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1 {
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text);
}
h2 {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--text);
}
h3 { font-size: 17px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; color: var(--text); }
h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; color: var(--text-3); font-weight: 700; }

.lead    { font-size: 18px; line-height: 1.7; color: var(--text-2); margin: 0 0 32px; max-width: 52ch; }
.lead-sm { font-size: 16px; color: var(--text-2); line-height: 1.7; }
.muted   { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.subtle  { color: var(--text-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
  font-weight: 700;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 116px 0 108px;
  overflow: hidden;
  background: 
    /* 1. Transparent gradient overlay */
    linear-gradient(155deg, rgba(5, 10, 22, 0.85) 0%, rgba(12, 22, 40, 0.85) 52%, rgba(7, 16, 30, 0.95) 100%),
    /* 2. Adjusted background image to show the steering wheel */
    url('/assets/hero-bg-5.jpg') center 15% / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Subtle dot grid — white on dark */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 25%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 25%, transparent 88%);
  z-index: 0;
  pointer-events: none;
}

/* Bottom accent glow line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.65), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Animated blue glow orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 960px;
  height: 960px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.32) 0%, transparent 62%);
  top: -300px;
  right: -80px;
  animation: orb-a 20s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 62%);
  bottom: -160px;
  left: 2%;
  animation: orb-b 24s ease-in-out infinite alternate;
}

@keyframes orb-a { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-40px) scale(1.12); } }
@keyframes orb-b { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px,30px) scale(1.08); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* Feature pill strip */
.feature-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-inline li {
  font-size: 12px;
  color: var(--text-2);
  padding: 9px 18px;
  border-right: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: .02em;
}
.feature-inline li:last-child { border-right: none; }

/* ─── Hero dark context overrides ────────────────────────────── */
.hero h1           { color: #FFFFFF; }
.hero h2           { color: #FFFFFF; }
.hero .eyebrow     { color: rgba(255,255,255,.35); }
.hero .eyebrow::before { background: var(--accent-hi); }
.hero .lead        { color: rgba(210,218,234,.65); }

.hero .button-ghost {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.hero .button-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
  box-shadow: none;
}

.hero .feature-inline {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
}
.hero .feature-inline li {
  color: rgba(210,218,234,.4);
  border-color: rgba(255,255,255,.07);
}

/* Glow halo behind the diagnostic window */
.hero-panel {
  position: relative;
  z-index: 1;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: -10% 0 -15% 0;
  background: radial-gradient(ellipse 85% 65% at 55% 55%, rgba(37,99,235,.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-panel .diag-window { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   DIAGNOSTIC WINDOW — stays dark for contrast
   ═══════════════════════════════════════════════════════════════ */
.hero-panel { display: flex; justify-content: flex-end; }

.diag-window {
  background: var(--diag-bg);
  border: 1px solid var(--diag-line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: min(520px, 100%);
  overflow: hidden;
  color: var(--diag-text);
}

/* Title bar */
.diag-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--diag-line);
  background: rgba(255,255,255,.02);
}
.diag-dots              { display: flex; gap: 6px; flex-shrink: 0; }
.diag-dots span         { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--diag-line-2); }
.diag-title             { flex: 1; font-size: 11.5px; color: var(--diag-text-3); font-weight: 500; letter-spacing: .02em; }
.diag-conn-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #22C55E; text-transform: uppercase;
}
.diag-conn-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34,197,94,.7);
  animation: live-pulse 2.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,.7); }
  50%       { opacity: .5; box-shadow: 0 0 3px rgba(34,197,94,.3); }
}

/* Body: sidebar + main */
.diag-body { display: grid; grid-template-columns: 172px 1fr; }

/* Module sidebar */
.diag-sidebar { border-right: 1px solid var(--diag-line); padding: 6px 0; }

.diag-module {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  transition: background .12s;
  cursor: default;
}
.diag-module:hover   { background: rgba(255,255,255,.03); }
.diag-module.active  {
  background: rgba(37,99,235,.1);
  box-shadow: inset 2px 0 0 var(--accent);
}

.mod-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--diag-line-2); flex-shrink: 0;
}
.mod-dot.ok   { background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,.5);  }
.mod-dot.warn { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,.5); }
.mod-dot.err  { background: #EF4444; box-shadow: 0 0 6px rgba(239,68,68,.5);  }

.mod-info  { flex: 1; min-width: 0; }
.mod-name  { font-size: 11.5px; font-weight: 600; color: var(--diag-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-id    { font-size: 10px; color: var(--diag-text-3); font-weight: 500; letter-spacing: .04em; margin-top: 2px; font-variant-numeric: tabular-nums; }

.mod-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.mod-badge.ok   { color: #22C55E; background: rgba(34,197,94,.1);  }
.mod-badge.warn { color: #F59E0B; background: rgba(245,158,11,.1); }
.mod-badge.err  { color: #EF4444; background: rgba(239,68,68,.1);  }
.mod-badge.idle { color: var(--diag-text-3); background: rgba(255,255,255,.05); }

/* Main panel */
.diag-main { padding: 16px; }

.diag-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.diag-metric-card {
  background: var(--diag-surface);
  border: 1px solid var(--diag-line);
  border-radius: var(--r);
  padding: 13px;
  position: relative;
  overflow: hidden;
}
.diag-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.dm-val   { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--diag-text); }
.dm-label { display: block; font-size: 10.5px; color: var(--diag-text-3); margin-top: 5px; font-weight: 500; }

/* Progress */
.diag-progress { margin-bottom: 14px; }
.dp-header     { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.dp-name       { font-size: 10.5px; color: var(--diag-text-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dp-pct        { font-size: 11px; color: var(--diag-text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-track      { height: 3px; background: var(--diag-line-2); border-radius: var(--r-full); overflow: hidden; }
.dp-fill       { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); border-radius: var(--r-full); transition: width .8s ease; }

/* Action buttons */
.diag-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diag-action-btn {
  padding: 10px;
  background: var(--diag-surface);
  border: 1px solid var(--diag-line);
  border-radius: var(--r);
  font-size: 11.5px; font-weight: 600;
  color: var(--diag-text-2);
  text-align: center;
  cursor: default;
  transition: background .15s, border-color .15s, color .15s;
}
.diag-action-btn:hover {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.35);
  color: #93C5FD;
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  transition: background .15s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface-2); }

.stat-num  { display: block; font-size: 52px; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 6px; color: var(--text); }
.stat-desc { font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section { 
  padding: 96px 0; 
  position: relative;
}

/* Adds a beautiful white spotlight behind the top of inner pages */
.section:first-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 700px;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 0;
}

.section .wrap {
  position: relative;
  z-index: 1; /* Keeps text and cards sitting safely above the spotlight */
}

.section-alt {
  background: #F7F7F4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { 
  margin-bottom: 80px; 
  text-align: center; /* Center alignment looks much better with massive text */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head h1 { 
  font-size: clamp(56px, 8vw, 70px); /* Massive, fluid scaling */
  line-height: 0.95; 
  letter-spacing: -0.05em; 
  font-weight: 800;
  margin-bottom: 24px; 
  
  /* Modern Gradient Text Effect */
  background: linear-gradient(135deg, var(--text) 0%, #3B4252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-head h2 { margin-bottom: 12px; }

.section-head .muted { 
  max-width: 600px; 
  font-size: 20px; 
  color: var(--text-2); 
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   BENTO GRID
   ═══════════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bento-span-2 { grid-column: span 2; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,.25) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .2s;
}
.bento-card:hover {
  border-color: rgba(37,99,235,.28);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(37,99,235,.14), 0 4px 8px rgba(15,20,35,.04), 0 24px 60px rgba(15,20,35,.13);
}
.bento-card:hover::before { opacity: 1; }

/* Featured span-2 cards get a subtle accent tint */
.bento-card.bento-span-2 {
  background: linear-gradient(145deg, var(--surface) 60%, rgba(37,99,235,.04) 100%);
}

.bento-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.bento-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.bento-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   LEGACY CARD GRID
   ═══════════════════════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

.card, .panel, .price-card, .contact-card, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card { padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,20,35,.04), 0 20px 40px rgba(15,20,35,.08); }
.card h3    { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.card p     { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   SPLIT / NUMBERED LIST
   ═══════════════════════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.numbered-list { display: grid; gap: 12px; }

.numbered-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, background .2s, transform .15s;
}
.numbered-item:hover { border-color: var(--line-2); background: var(--surface); transform: translateX(2px); }

.ni-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r);
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.ni-text { font-size: 14.5px; font-weight: 600; line-height: 1.5; padding-top: 5px; color: var(--text); }
.ni-sub  { font-size: 13px; color: var(--text-2); margin-top: 3px; font-weight: 400; }

/* Legacy bullet-box */
.bullet-box { display: grid; gap: 10px; }
.bullet-box > div {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s;
}
.bullet-box > div:hover { border-color: var(--line-2); }
.bullet-box > div::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  color: var(--text-2);
}

.footer-inner   { border-bottom: 1px solid var(--line); padding-bottom: 52px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
}

.footer-logo     { height: 32px; width: auto; opacity: .75; margin-bottom: 22px; }
.footer-tagline  { font-size: 14px; color: var(--text-2); max-width: 34ch; line-height: 1.65; }

.footer-grid h4  {
  color: var(--text);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-list        { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-list li     { font-size: 14px; color: var(--text-2); }
.footer-list a      { color: var(--text-2); transition: color .15s; }
.footer-list a:hover{ color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.tight       { padding-top: 54px; }
.narrow      { max-width: 560px; }
.narrow-text { max-width: 760px; }
.panel       { padding: 36px; }

.form  { display: grid; gap: 18px; margin-top: 20px; }

label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }

input, select, textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  padding: 0 16px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea   { height: 130px; padding: 14px 16px; resize: vertical; }
.form-note { margin-top: 14px; color: var(--text-2); font-size: 14px; }

.alert {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  font-size: 14px;
  color: #7C2D12;
}
.alert.success { background: #F0FDF4; border-color: #86EFAC; color: #14532D; }

/* ═══════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid         { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pricing-grid.credits { grid-template-columns: repeat(3,1fr); }

/* 3D Tilt Card Base */
.price-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.5); /* Soft inner border */
  border-radius: var(--r-xl);
  box-shadow: 0 12px 36px rgba(15,20,35,.04);
  
  /* Prep for JS */
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

/* Glare effect container injected via JS */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8), transparent 60%);
  mix-blend-mode: overlay;
}

.price-card:hover .card-glare {
  opacity: 1;
}

.price-card:hover {
  box-shadow: 0 30px 60px rgba(37,99,235,.08), 
              0 8px 24px rgba(15,20,35,.04);
}

/* Make inner elements pop slightly in 3D space */
.price-card > * {
  transform: translateZ(20px);
}
.price-card.compact { padding: 32px; }

.price-card h2 {
  font-size: 26px; /* Slightly smaller to handle long titles perfectly */
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.price { 
  font-size: 20px; 
  font-weight: 700; 
  letter-spacing: -.01em; 
  margin: 0 0 32px; 
  color: var(--text); 
}

.check-list { 
  list-style: none; 
  padding: 0; 
  margin: 0 0 40px; 
  display: grid; 
  gap: 20px; /* Big vertical spacing exactly like your image */
  flex-grow: 1; /* Pushes the button perfectly to the bottom */
}
.check-list li { 
  position: relative; 
  padding-left: 20px; 
  color: var(--text-3); /* Light grey text to match screenshot */
  font-size: 14px; 
  font-weight: 500;
}
.check-list li::before { 
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 7px; /* Aligns the blue dot perfectly with the text */
  width: 5px; 
  height: 5px; 
  border-radius: 50%; 
  background: var(--accent); 
}

.price-card .button {
  margin-top: auto; /* Locks the dark buttons to the bottom edge */
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD / CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.contact-card, .stat-card      { padding: 24px; }
.stat-label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN TABLE
   ═══════════════════════════════════════════════════════════════ */
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.admin-table th { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.admin-table td { color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }

.inline-form { display: grid; gap: 8px; }
.support-box { display: grid; gap: 14px; margin-top: 18px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid, .split,
  .card-grid, .bento-grid,
  .pricing-grid,
  .contact-grid, .dashboard-grid { grid-template-columns: 1fr 1fr; }

  .bento-span-2 { grid-column: span 1; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat-item:nth-child(2)  { border-right: none; }
  .stats-row .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .main-nav  { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 72px 0 60px; }

  .hero-grid, .split,
  .card-grid, .bento-grid,
  .pricing-grid, .pricing-grid.credits,
  .contact-grid, .dashboard-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .bento-span-2 { grid-column: span 1; }

  .stats-row       { grid-template-columns: 1fr 1fr; }
  .stat-item       { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .nav-shell           { min-height: 66px; }
  .brand-logo          { height: 40px; }
  .nav-actions .subtle { display: none; }
  .btn-login           { display: none; }     /* in hamburger on small screens */
  .btn-register        { display: none; }     /* in hamburger on small screens */
  .mobile-menu-panel   { top: 66px; }
  .wrap                { padding: 0 18px; }
  .section             { padding: 64px 0; }
  .feature-inline      { display: none; }
  .footer-bottom       { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — DARKER BOOKEND
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #E6E6DF; /* Deeper, richer grey to ground the page */
  border-top: 1px solid var(--line-2);
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EXTRA POLISH — SECTION HEAD & BENTO NUM
   ═══════════════════════════════════════════════════════════════ */
.section-head { margin-bottom: 56px; }

.bento-num {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bento-num::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Stat item hover lift */
.stat-item:hover { background: var(--surface-2); }
.stat-item { transition: background .2s; }
