/* =========================================================
   RegSpy – Custom CSS
   ========================================================= */

:root {
  --bg-base:      #07091A;
  --bg-card:      #0D1021;
  --bg-surface:   #111827;
  --border:       #1E2A3D;
  --accent-blue:  #3B82F6;
  --accent-indigo:#6366F1;
  --accent-cyan:  #06B6D4;
  --plate-yellow: #FFD700;
  --text-primary: #F9FAFB;
  --text-muted:   #6B7280;
  --text-dim:     #374151;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Global subtle grid lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar { transition: all 0.3s ease; }

#navbar.scrolled {
  background: rgba(7, 9, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59,130,246,0.12);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

/* ── Glassmorphism card ─────────────────────────────────── */
.glass-card {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.055) 0%,
    rgba(255,255,255,0.018) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.22);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(59,130,246,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Animated gradient blobs ────────────────────────────── */
@keyframes blob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -60px) scale(1.15); }
  66%       { transform: translate(-30px, 30px) scale(0.9); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-50px, 40px) scale(0.85); }
  66%       { transform: translate(35px, -40px) scale(1.1); }
}
@keyframes blob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, 50px) scale(1.05); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #3B82F6, transparent 70%);
  top: -250px; left: -160px;
  animation: blob1 14s ease-in-out infinite;
}
.blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #6366F1, transparent 70%);
  top: -100px; right: -130px;
  animation: blob2 17s ease-in-out infinite;
}
.blob-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  bottom: -120px; left: 30%;
  animation: blob3 12s ease-in-out infinite;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.04;
}

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #F9FAFB 0%, #93C5FD 55%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Accent underline bar ───────────────────────────────── */
.accent-line {
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #6366F1);
  border-radius: 9999px;
  margin: 14px auto 0;
}

/* ── Section gradient divider ───────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,130,246,0.45) 35%,
    rgba(99,102,241,0.45) 65%,
    transparent 100%);
  border: none;
  margin: 0;
}

/* ── Number plate input component ───────────────────────── */
.plate-wrapper {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.2),
    0 0 50px rgba(59,130,246,0.18),
    0 8px 32px rgba(0,0,0,0.5);
  max-width: 540px;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}
.plate-wrapper:focus-within {
  box-shadow:
    0 0 0 2px rgba(59,130,246,0.5),
    0 0 80px rgba(59,130,246,0.35),
    0 8px 32px rgba(0,0,0,0.5);
}

/* Glowing halo behind the plate */
.plate-glow {
  position: relative;
}
.plate-glow::before {
  content: '';
  position: absolute;
  inset: -16px -24px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.28) 0%, transparent 68%);
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
  filter: blur(12px);
}

.plate-gb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #003399;
  padding: 0 16px;
  gap: 3px;
  flex-shrink: 0;
}
.plate-gb span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.plate-input {
  flex: 1;
  background: var(--plate-yellow);
  color: #000;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 34px;
  font-weight: 700;
  border: none;
  outline: none;
  padding: 16px 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  min-width: 0;
}
.plate-input::placeholder {
  color: rgba(0,0,0,0.25);
  font-size: 26px;
  letter-spacing: 3px;
  text-transform: none;
}

.plate-btn {
  background: linear-gradient(135deg, #1e3a5f, #0D1021);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.plate-btn:hover {
  background: linear-gradient(135deg, #2563EB, #1e3a5f);
}

/* ── Focus states ───────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}
a, button { transition: all 0.2s ease; }

/* ── Status badges ──────────────────────────────────────── */
.badge-pass {
  background: #16A34A; color: #fff;
  padding: 3px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  display: inline-block;
}
.badge-fail {
  background: #DC2626; color: #fff;
  padding: 3px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  display: inline-block;
}
.badge-valid {
  background: #16A34A; color: #fff;
  padding: 4px 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  display: inline-block;
}
.badge-expired {
  background: #DC2626; color: #fff;
  padding: 4px 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  display: inline-block;
}
.badge-unknown {
  background: #4B5563; color: #fff;
  padding: 4px 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  display: inline-block;
}

/* ── Skeleton shimmer ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1F2937 25%, #2D3748 50%, #1F2937 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

/* ── Tabs ───────────────────────────────────────────────── */
.tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active { background: var(--accent-blue); color: #fff; }
.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── MOT Timeline ───────────────────────────────────────── */
.mot-timeline { position: relative; padding-left: 32px; }
.mot-timeline::before {
  content: '';
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(59,130,246,0.4), rgba(99,102,241,0.2));
}
.mot-entry { position: relative; margin-bottom: 24px; }
.mot-dot {
  position: absolute;
  left: -28px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 8px currentColor;
}
.mot-dot.pass { background: #16A34A; color: #16A34A; }
.mot-dot.fail { background: #DC2626; color: #DC2626; }

/* ── Locked / blurred premium cards ────────────────────── */
.locked-card { position: relative; overflow: hidden; }
.blur-overlay {
  position: absolute; inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; border-radius: 16px;
  background: rgba(10,15,28,0.35);
}

/* ── Plate display (read-only) ──────────────────────────── */
.plate-display {
  display: inline-flex;
  align-items: stretch;
  background: var(--plate-yellow);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.plate-display .gb-strip {
  background: #003399;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5px 8px; gap: 2px;
}
.plate-display .gb-strip span {
  color: #fff; font-size: 9px; font-weight: 700;
}
.plate-display .plate-text {
  font-family: 'Noto Sans Mono', monospace;
  font-weight: 700; font-size: 22px;
  color: #000; letter-spacing: 2px;
  padding: 6px 14px; align-self: center;
}

/* ── Sticky upgrade panel ───────────────────────────────── */
#upgrade-panel {
  position: fixed;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  width: 220px; z-index: 40;
}
@media (max-width: 1200px) {
  #upgrade-panel {
    position: fixed;
    bottom: 0; right: 0; left: 0; top: auto;
    transform: none; width: 100%;
    border-radius: 16px 16px 0 0;
  }
}

/* ── Premium glow card ──────────────────────────────────── */
.premium-glow-card {
  position: relative;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, #3B82F6, #6366F1, #3B82F6);
  background-size: 200% 200%;
  animation: gradient-border 3s ease infinite;
}
@keyframes gradient-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.premium-glow-inner {
  background: rgba(17,24,39,0.95);
  border-radius: 16px;
  height: 100%;
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-content.open { max-height: 300px; }
.faq-chevron { transition: transform 0.3s ease; }
.faq-chevron.rotated { transform: rotate(180deg); }

/* ── VIN Diagram ────────────────────────────────────────── */
.vin-block {
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-family: 'Noto Sans Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
}

/* ── Step connector ─────────────────────────────────────── */
@media (min-width: 768px) {
  .step-connector {
    position: absolute;
    top: 36px; left: calc(100% + 16px);
    width: calc(100% - 32px);
    border-top: 2px dashed #1F2937;
    pointer-events: none;
  }
}

/* ── Scroll chevron bounce ──────────────────────────────── */
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.scroll-chevron {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2s ease-in-out infinite;
}

/* ── Pulse dot ──────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── Make pill links ────────────────────────────────────── */
.make-pill {
  display: inline-block;
  padding: 9px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9999px;
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.make-pill:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}

/* ── Spec table rows ────────────────────────────────────── */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-value { color: var(--text-primary); font-weight: 600; }

/* ── Feature list ───────────────────────────────────────── */
.feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #D1D5DB;
  padding: 4px 0;
}
.feature-item.locked { color: var(--text-muted); }

/* ── Stats section ──────────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent !important;
  background-clip: padding-box;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
}
.stat-card-blue::before  { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
.stat-card-green::before { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.stat-card-amber::before { background: linear-gradient(90deg, #F59E0B, #FDE047); }
.stat-card-purple::before{ background: linear-gradient(90deg, #6366F1, #A78BFA); }

.stat-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.12) !important;
  border-color: rgba(59,130,246,0.25) !important;
}

.stat-number {
  background: linear-gradient(135deg, #F9FAFB, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Testimonial cards ──────────────────────────────────── */
.testimonial-card {
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px; left: 20px;
  font-size: 72px;
  line-height: 1;
  color: rgba(59,130,246,0.15);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ── Feature highlight icon boxes ──────────────────────── */
.feature-icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
}
.feature-icon-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(99,102,241,0.2));
  z-index: -1;
}

/* ── Step cards ─────────────────────────────────────────── */
.step-card {
  position: relative;
}
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
  border-radius: 0 0 16px 16px;
}

/* ── Responsive helpers ─────────────────────────────────── */
@media (max-width: 640px) {
  .plate-input { font-size: 24px; padding: 14px 12px; letter-spacing: 2px; }
  .plate-btn { padding: 14px 16px; font-size: 14px; }
  .plate-gb { padding: 0 10px; }
}
