/* ================================================================
   DRS — Dealer Recon Systems Marketing Website
   V2 — 20 improvements applied
   ================================================================ */

/* ── 1. Custom Properties ── */
:root {
  --primary: #1565C0;
  --primary-light: #42A5F5;
  --primary-dark: #0D47A1;
  --dark: #0D1B2A;
  --dark-surface: #132238;
  --light: #F5F7FA;
  --text-dark: #1A1A2E;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --gradient-hero: linear-gradient(135deg, #0D1B2A 0%, #0f2847 40%, #1565C0 80%, #42A5F5 100%);
  --gradient-cta: linear-gradient(135deg, #1565C0, #42A5F5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 1rem;
  border: 1.5px solid #D1D5DB; border-radius: var(--radius-sm);
  padding: 12px 16px; width: 100%;
  background: var(--white); color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { resize: vertical; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

/* #15 Skip link */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--primary); color: white;
  border-radius: 0 0 8px 8px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* #15 Focus-visible styles */
*:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline-offset: 3px; }

/* #12 Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1001;
  background: var(--gradient-cta); width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* #9 Page loader */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { animation: loaderPulse 1s ease-in-out infinite alternate; }
@keyframes loaderPulse { from { opacity: 0.5; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }

/* ── 3. Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text-dark); }
.section-title.light { color: var(--white); }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }
.section-subtitle.light { color: rgba(255,255,255,0.65); }

/* ── 4. Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px; font-weight: 600;
  font-size: 0.9375rem; transition: all var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--gradient-cta); color: var(--white); box-shadow: 0 4px 16px rgba(21,101,192,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(21,101,192,0.4); }
.btn-outline-light { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-light:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-full { width: 100%; padding: 16px; font-size: 1.0625rem; }

/* ── 5. Animations ── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* #3 Stagger delays for feature cards */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.05s; }
.stagger-3 { transition-delay: 0.1s; }
.stagger-4 { transition-delay: 0.15s; }
.stagger-5 { transition-delay: 0.2s; }
.stagger-6 { transition-delay: 0.25s; }
.stagger-7 { transition-delay: 0.3s; }
.stagger-8 { transition-delay: 0.35s; }
.stagger-9 { transition-delay: 0.4s; }
.stagger-10 { transition-delay: 0.45s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* #19 Animated bar fills — start at 0 width, animate on scroll */
.animate-bar { width: 0 !important; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.animate-bar.bar-visible { width: var(--target-width) !important; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.nav-container { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { color: var(--primary); display: flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1.25rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.logo-subtitle { font-size: 0.6875rem; color: var(--text-light); font-weight: 500; letter-spacing: 0.03em; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-link { padding: 8px 16px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--text-light); transition: all var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(21,101,192,0.06); }
.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { padding: 9px 22px; font-size: 0.875rem; }

/* #8 Mobile CTA links hidden on desktop */
.mobile-nav-ctas { display: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero); overflow: hidden; padding: 120px 0 80px;
}

.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; will-change: transform; }
.hero-orb-1 { width: 500px; height: 500px; background: #42A5F5; top: -10%; right: -5%; animation: pulse-glow 6s ease-in-out infinite; }
.hero-orb-2 { width: 350px; height: 350px; background: #1565C0; bottom: 10%; left: -8%; animation: pulse-glow 8s ease-in-out infinite 2s; }
.hero-orb-3 { width: 200px; height: 200px; background: #64B5F6; top: 50%; left: 40%; animation: pulse-glow 5s ease-in-out infinite 1s; }

.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
/* #4 Typewriter cursor */
.hero-title-accent {
  background: linear-gradient(90deg, #90CAF9, #42A5F5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  border-right: 3px solid rgba(255,255,255,0.7);
  padding-right: 4px;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor { 50% { border-color: transparent; } }
.hero-subtitle { font-size: 1.1875rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-platforms-text { font-size: 0.8125rem; color: rgba(255,255,255,0.4); font-weight: 500; }

/* #16 Tilt effect — applied via JS transform */
.hero-visual { display: flex; justify-content: center; perspective: 1000px; }
.hero-mockup { animation: float 6s ease-in-out infinite; transition: transform 0.15s ease-out; }
.mockup-window {
  width: 460px; border-radius: 12px; overflow: hidden;
  background: #1a2332; box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: #0f1923; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #28CA41; }
.mockup-title { margin-left: 12px; font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 500; }
.mockup-body { display: flex; min-height: 280px; }
.mockup-sidebar { width: 48px; background: #0f1923; padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; border-right: 1px solid rgba(255,255,255,0.06); }
.mockup-sidebar-item { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.mockup-sidebar-item.active { background: rgba(66,165,245,0.3); }
.mockup-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mockup-header-bar { height: 28px; border-radius: 6px; background: rgba(255,255,255,0.06); }
.mockup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockup-card { padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.mockup-card-icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(21,101,192,0.4); margin-bottom: 8px; }
.mockup-card-icon.accent { background: rgba(66,165,245,0.4); }
.mockup-card-icon.green { background: rgba(16,185,129,0.4); }
.mockup-card-icon.orange { background: rgba(245,158,11,0.4); }
.mockup-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-bottom: 5px; }
.w30{width:30%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w80{width:80%}
.mockup-table { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mockup-table-row { height: 20px; border-radius: 4px; background: rgba(255,255,255,0.03); }
.mockup-table-row.header { background: rgba(255,255,255,0.06); }
.mockup-card-lines { display: flex; flex-direction: column; }

/* #14 Wave divider */
.wave-divider { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.wave-divider svg { width: 100%; height: 80px; display: block; }

/* ================================================================
   FEATURES GRID
   ================================================================ */
.features { padding: 100px 0; background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
/* #5 Gradient border glow on hover */
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  transition: all var(--transition);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.8125rem; color: var(--text-light); line-height: 1.6; }

/* Feature icon color shift on hover */
.feature-card:hover .feature-icon { background: var(--primary); color: var(--white); }

/* ================================================================
   #10 WHY DRS
   ================================================================ */
.why-drs { padding: 100px 0; background: var(--white); }
.why-grid { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 60px; }
.why-card {
  flex: 1; max-width: 380px; padding: 36px 32px; border-radius: var(--radius);
  background: var(--light); border: 1px solid rgba(0,0,0,0.04); text-align: center;
}
.why-card.highlight {
  background: var(--dark); border-color: rgba(66,165,245,0.3);
  box-shadow: 0 0 40px rgba(21,101,192,0.15);
}
.why-card.highlight .why-text { color: rgba(255,255,255,0.7); }
.why-before { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-light); text-transform: uppercase; margin-bottom: 16px; }
.why-after { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-light); text-transform: uppercase; margin-bottom: 16px; }
.why-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.why-icon svg { width: 24px; height: 24px; }
.why-icon.negative { background: rgba(239,68,68,0.1); color: #EF4444; }
.why-icon.positive { background: rgba(16,185,129,0.15); color: var(--success); }
.why-text { font-size: 0.9375rem; color: var(--text-light); line-height: 1.6; }
.why-arrow { color: var(--primary); flex-shrink: 0; }
.why-arrow svg { width: 32px; height: 32px; }

.why-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.why-benefit { padding: 24px 16px; border-radius: var(--radius); background: var(--light); }
.why-benefit-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.why-benefit-label { font-size: 0.875rem; color: var(--text-light); }

/* ================================================================
   DEEP DIVES
   ================================================================ */
.deep-dives { padding: 0; }
.deep-dive { padding: 100px 0; }
.deep-dive.alt { background: var(--light); }
.deep-dive-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.deep-dive-container.reverse { direction: rtl; }
.deep-dive-container.reverse > * { direction: ltr; }
.deep-dive-label {
  display: inline-block; padding: 6px 14px; border-radius: 50px;
  background: rgba(21,101,192,0.08); color: var(--primary);
  font-size: 0.8125rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.03em;
}
.deep-dive-title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.deep-dive-list { display: flex; flex-direction: column; gap: 14px; }
.deep-dive-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text-dark); line-height: 1.5; }
.check-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); margin-top: 2px; }

.dd-mockup { border-radius: var(--radius); overflow: hidden; background: #1a2332; box-shadow: var(--shadow-lg); }
.dd-mockup-bar { padding: 10px 14px; background: #0f1923; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dd-bar-dots { display: flex; gap: 6px; }
.dd-bar-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dd-mockup-screen { padding: 20px; }
.dd-mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.04); margin-bottom: 10px; }
.dd-mock-avatar { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.dd-mock-info { flex: 1; }
.dd-mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.15); margin-bottom: 6px; }
.dd-mock-line.light { background: rgba(255,255,255,0.08); }
.dd-mock-badge { padding: 4px 10px; border-radius: 50px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.05em; flex-shrink: 0; }
.dd-mock-badge.ready { background: rgba(16,185,129,0.2); color: #34D399; }
.dd-mock-badge.progress { background: rgba(66,165,245,0.2); color: #64B5F6; }
.dd-mock-badge.waiting { background: rgba(245,158,11,0.2); color: #FBBF24; }
.dd-mock-progress { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.dd-progress-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dd-progress-fill { height: 100%; border-radius: 3px; background: var(--gradient-cta); }
.dd-progress-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 600; white-space: nowrap; }
.dd-pipeline { display: flex; gap: 12px; }
.dd-pipeline-col { flex: 1; }
.dd-pipeline-header { padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,0.08); font-size: 0.6875rem; font-weight: 700; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 10px; letter-spacing: 0.03em; }
.dd-pipeline-header.accent { background: rgba(66,165,245,0.15); color: #64B5F6; }
.dd-pipeline-header.green { background: rgba(16,185,129,0.15); color: #34D399; }
.dd-pipeline-card { height: 48px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; }
.dd-finance { display: flex; flex-direction: column; gap: 18px; }
.dd-finance-row { display: flex; align-items: center; gap: 14px; }
.dd-finance-label { width: 110px; font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 600; flex-shrink: 0; }
.dd-finance-bar { flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.06); overflow: hidden; }
.dd-finance-fill { height: 100%; border-radius: 5px; background: var(--gradient-cta); }
.dd-finance-fill.orange { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.dd-finance-fill.green { background: linear-gradient(90deg, #059669, #34D399); }
.dd-finance-fill.purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.dd-finance-amount { font-size: 0.8125rem; color: rgba(255,255,255,0.7); font-weight: 700; width: 80px; text-align: right; }

/* ================================================================
   #2 TESTIMONIALS
   ================================================================ */
.testimonials { padding: 100px 0; background: var(--dark); position: relative; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  padding: 32px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.testimonial-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars svg { width: 18px; height: 18px; color: #FBBF24; }
.testimonial-quote { font-size: 0.9375rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-cta); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--white); }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ================================================================
   STATS
   ================================================================ */
.stats {
  padding: 80px 0; background: var(--dark);
  background-image: linear-gradient(135deg, #0D1B2A 0%, #132238 50%, #0D1B2A 100%);
  position: relative;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-suffix { font-size: 2rem; font-weight: 800; color: var(--primary-light); margin-top: -8px; }
.stat-label { font-size: 0.9375rem; color: rgba(255,255,255,0.5); font-weight: 500; margin-top: 8px; }
.stat-icon { color: var(--primary-light); margin-bottom: 4px; }
.stat-icon svg { width: 48px; height: 48px; }

/* ================================================================
   PLATFORMS
   ================================================================ */
.platforms { padding: 100px 0; }
.platforms-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 60px; }
.platform-badge {
  display: flex; align-items: center; gap: 10px; padding: 14px 28px;
  border-radius: 50px; background: var(--light); border: 1px solid rgba(0,0,0,0.04);
  font-weight: 600; font-size: 0.9375rem; color: var(--text-dark); transition: all var(--transition);
}
.platform-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.platform-badge svg { width: 22px; height: 22px; color: var(--primary); }
.platforms-visual { display: flex; justify-content: center; padding-top: 20px; }
.device-stack { display: flex; align-items: flex-end; gap: 24px; }
.device { background: #1a2332; border-radius: 10px; overflow: hidden; }
.device.desktop { width: 400px; }
.device.tablet { width: 180px; }
.device.phone { width: 100px; }
.device-screen { border: 3px solid #2a3548; border-radius: 8px; overflow: hidden; }
.device.desktop .device-screen { border-bottom: none; border-radius: 8px 8px 0 0; }
.device-screen-content { background: #0f1923; padding: 10px; min-height: 220px; display: flex; }
.device-screen-content.compact { min-height: 160px; flex-direction: column; }
.device-screen-content.mobile { min-height: 180px; flex-direction: column; padding: 8px; }
.dsc-sidebar { width: 40px; background: rgba(255,255,255,0.04); border-radius: 4px; margin-right: 8px; }
.dsc-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dsc-bar { height: 16px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.dsc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.device-screen-content.compact .dsc-grid { grid-template-columns: 1fr 1fr; }
.dsc-card { border-radius: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.04); }
.device-screen-content.mobile .dsc-card { flex: 1; border-radius: 4px; background: rgba(255,255,255,0.04); }
.device-stand { width: 60px; height: 30px; background: #2a3548; margin: 0 auto; clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.device-base { width: 120px; height: 6px; background: #2a3548; margin: 0 auto; border-radius: 0 0 4px 4px; }

/* ================================================================
   #18 PRICING
   ================================================================ */
.pricing { padding: 100px 0; background: var(--light); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.pricing-card {
  background: var(--white); border-radius: 16px; padding: 36px 32px;
  border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--primary); box-shadow: 0 8px 40px rgba(21,101,192,0.15);
}
.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 50px; background: var(--gradient-cta);
  color: white; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.pricing-tier { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { font-size: 0.875rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.5; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.pricing-features .check-icon { width: 18px; height: 18px; color: var(--success); }
.pricing-note { text-align: center; font-size: 0.875rem; color: var(--text-light); }

/* ================================================================
   #7 FAQ
   ================================================================ */
.faq { padding: 100px 0; background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 600; color: var(--text-dark);
  text-align: left; cursor: pointer; gap: 16px; transition: color var(--transition);
  background: none; border: none; font-family: inherit;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-light); transition: transform var(--transition); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { padding: 0 0 20px; font-size: 0.9375rem; color: var(--text-light); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ================================================================
   DEMO FORM
   ================================================================ */
.demo { padding: 100px 0; background: var(--light); }

/* #11 Animated gradient border wrapper */
.demo-card-wrapper {
  max-width: 800px; margin: 0 auto; padding: 3px; border-radius: 19px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--success), var(--primary));
  background-size: 300% 300%;
  animation: gradientBorder 6s ease infinite;
}
@keyframes gradientBorder { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.demo-card {
  background: var(--white); border-radius: 16px; padding: 48px;
}
.demo-header { text-align: center; margin-bottom: 36px; }
.demo-header .section-title { font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.form-group.full-width { grid-column: 1 / -1; }
.demo-form .btn-full { border-radius: 12px; }

/* #17 Success state */
.demo-success { text-align: center; padding: 48px 24px; }
.success-icon { color: var(--success); margin-bottom: 20px; }
.success-icon svg { width: 64px; height: 64px; margin: 0 auto; }
.demo-success h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.demo-success p { font-size: 1rem; color: var(--text-light); max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ================================================================
   CONTACT — #13 Hover glow
   ================================================================ */
.contact { padding: 100px 0; background: var(--dark); position: relative; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-card {
  text-align: center; padding: 36px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(21,101,192,0.2);
  border-color: rgba(66,165,245,0.3);
}
.contact-icon { color: var(--primary-light); margin-bottom: 16px; }
.contact-icon svg { width: 32px; height: 32px; margin: 0 auto; }
.contact-title { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.contact-name { font-size: 0.9375rem; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.contact-detail { font-size: 0.9375rem; color: var(--primary-light); font-weight: 500; transition: color var(--transition); }
.contact-detail:hover { color: #90CAF9; }

/* ================================================================
   #20 EXPANDED FOOTER
   ================================================================ */
.footer { padding: 60px 0 32px; background: #080F1A; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 1.125rem; font-weight: 800; }
.footer-tagline { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.footer-blurb { font-size: 0.8125rem; color: rgba(255,255,255,0.3); line-height: 1.6; margin-top: 4px; }
.footer-heading { font-size: 0.8125rem; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-newsletter-text { font-size: 0.8125rem; color: rgba(255,255,255,0.35); line-height: 1.5; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 4px; }
.footer-newsletter input { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: white; font-size: 0.875rem; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter .btn { padding: 10px 16px; border-radius: 8px; }
.footer-nl-thanks { font-size: 0.8125rem; color: var(--success); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

/* ================================================================
   #1 BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-cta); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(21,101,192,0.4);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 28px rgba(21,101,192,0.5); }
.back-to-top svg { width: 22px; height: 22px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .mockup-window { width: 380px; }
  .deep-dive-container, .deep-dive-container.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .device-stack { gap: 16px; }
  .device.desktop { width: 320px; }
  .device.tablet { width: 140px; }
  .device.phone { width: 80px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }
  .why-grid { flex-direction: column; }
  .why-card { max-width: 100%; }
  .why-arrow { transform: rotate(90deg); }
  .why-benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 24px;
    flex-direction: column; gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-120%); opacity: 0; transition: all var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  /* #8 Show mobile CTAs */
  .mobile-nav-ctas { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 8px; }
  .btn-mobile-nav { width: 100%; text-align: center; justify-content: center; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-visual { display: none; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .wave-divider svg { height: 40px; }

  .features { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-card { padding: 20px 18px; }
  .deep-dive { padding: 60px 0; }
  .deep-dive-title { font-size: 1.5rem; }
  .stats { padding: 60px 0; }
  .stat-number { font-size: 2.5rem; }
  .platforms { padding: 60px 0; }
  .platforms-grid { gap: 10px; }
  .platform-badge { padding: 10px 18px; font-size: 0.8125rem; }
  .device-stack { flex-direction: column; align-items: center; gap: 20px; }
  .device.desktop { width: 100%; max-width: 360px; }
  .device.tablet { width: 200px; }
  .device.phone { width: 120px; }
  .demo { padding: 60px 0; }
  .demo-card { padding: 28px 20px; }
  .demo-header .section-title { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .contact { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials { padding: 60px 0; }
  .pricing { padding: 60px 0; }
  .why-drs { padding: 60px 0; }
  .why-benefits { grid-template-columns: 1fr 1fr; }
  .faq { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.875rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .why-benefits { grid-template-columns: 1fr; }
}
