/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-elevated: #FFFFFF;
  --surface: #F0F0F2;
  --accent: #0C2340;
  --accent-secondary: #1B5E8A;
  --cta: #0071E3;
  --cta-hover: #0060C0;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted: #86868B;
  --success: #28A745;
  --error: #D32F2F;
  --border: #D2D2D7;
  --divider: #E8E8ED;
  --hero-start: #0C2340;
  --hero-end: #1B5E8A;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-btn: 0 2px 8px rgba(0,113,227,0.18);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { font-family:var(--font-body); background:var(--bg-primary); color:var(--text-primary); font-size:15px; line-height:1.6; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
a { color:var(--cta); text-decoration:none; transition:color .3s; }
a:hover { color:var(--accent); }
ul { list-style:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input { font-family:inherit; }
img,svg { display:block; max-width:100%; }

/* ===== UTILITIES ===== */
.container { width:100%; max-width:1120px; margin:0 auto; padding:0 20px; }
.section { padding:80px 0; position:relative; }

/* ===== ANIMATIONS ===== */
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:.6} }
.anim-fade { opacity:0; transform:translateY(24px); transition:opacity .6s ease-out, transform .6s ease-out; }
.anim-fade.visible { opacity:1; transform:translateY(0); }

/* ===== TICKER BANNER ===== */
.ticker-banner { background:var(--accent); color:#fff; overflow:hidden; white-space:nowrap; padding:10px 0; font-size:13px; font-weight:500; letter-spacing:.3px; position:relative; z-index:100; }
.ticker-track { display:inline-flex; animation:tickerScroll 25s linear infinite; gap:0; }
.ticker-item { padding:0 20px; flex-shrink:0; }
.ticker-sep { padding:0 6px; opacity:.4; flex-shrink:0; }

/* ===== HEADER ===== */
.site-header { position:sticky; top:0; z-index:90; background:rgba(255,255,255,.82); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-bottom:1px solid var(--divider); }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:0 20px; height:56px; max-width:1120px; margin:0 auto; }
.nav-left { display:none; }
.nav-links { display:flex; align-items:center; gap:2px; }
.nav-link { display:flex; align-items:center; gap:5px; padding:8px 14px; border-radius:var(--radius-sm); font-size:14px; font-weight:500; color:var(--text-secondary); transition:all .3s; white-space:nowrap; }
.nav-link:hover,.nav-link.active { color:var(--text-primary); background:var(--bg-secondary); }
.nav-icon { width:16px; height:16px; flex-shrink:0; }
.chevron-icon { width:12px; height:12px; transition:transform .3s; margin-left:2px; }

/* Dropdown */
.nav-dropdown { position:relative; }
.dropdown-menu { position:absolute; top:calc(100% + 8px); left:0; background:var(--bg-elevated); border:1px solid var(--divider); border-radius:var(--radius-md); padding:6px; min-width:200px; opacity:0; visibility:hidden; transform:translateY(-8px); transition:all .25s; box-shadow:0 8px 30px rgba(0,0,0,0.1); }
.nav-dropdown.open .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown.open .chevron-icon { transform:rotate(180deg); }
.dropdown-link { display:block; padding:10px 14px; border-radius:8px; font-size:14px; color:var(--text-secondary); transition:all .2s; }
.dropdown-link:hover { color:var(--text-primary); background:var(--bg-secondary); }

/* Brand */
.nav-right { display:flex; align-items:center; }
.brand-logo { display:flex; align-items:center; gap:10px; color:var(--accent); }
.brand-logo:hover { color:var(--accent); }
.logo-icon { width:34px; height:34px; }
.brand-text { font-family:var(--font-heading); font-size:18px; font-weight:700; letter-spacing:-.3px; color:var(--accent); }

/* Hamburger */
.hamburger { display:flex; flex-direction:column; gap:5px; padding:8px; z-index:95; }
.hamburger span { display:block; width:22px; height:2px; background:var(--text-primary); border-radius:2px; transition:all .3s; }
.hamburger.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer { position:fixed; top:0; right:-100%; width:80%; max-width:320px; height:100vh; background:var(--bg-primary); z-index:92; padding:80px 24px 24px; transition:right .35s cubic-bezier(.4,0,.2,1); overflow-y:auto; border-left:1px solid var(--divider); box-shadow:-8px 0 30px rgba(0,0,0,0.08); }
.mobile-drawer.open { right:0; }
.mobile-link { display:block; padding:14px 0; font-size:16px; font-weight:500; color:var(--text-secondary); border-bottom:1px solid var(--divider); transition:color .2s; }
.mobile-link:hover { color:var(--text-primary); }
.mobile-accordion-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; padding:14px 0; font-size:16px; font-weight:500; color:var(--text-secondary); border-bottom:1px solid var(--divider); }
.mobile-accordion-panel { max-height:0; overflow:hidden; transition:max-height .3s; }
.mobile-accordion.open .mobile-accordion-panel { max-height:300px; }
.mobile-accordion.open .chevron-icon { transform:rotate(180deg); }
.mobile-accordion-panel .mobile-link { padding-left:16px; font-size:15px; }

/* Overlay */
.drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,.25); z-index:91; opacity:0; visibility:hidden; transition:all .3s; }
.drawer-overlay.active { opacity:1; visibility:visible; }

/* ===== HERO ===== */
.hero { min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:120px 20px 80px; position:relative; overflow:hidden; background:linear-gradient(145deg, var(--hero-start) 0%, var(--hero-end) 60%, #2980B9 100%); }
.hero-bg-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:48px 48px; opacity:.5; }
.hero-content { position:relative; z-index:2; max-width:900px; width:100%; }
.hero-eyebrow { font-size:14px; font-weight:500; color:rgba(255,255,255,.5); text-transform:uppercase; letter-spacing:2px; margin-bottom:8px; animation:fadeInUp .8s ease-out; }
.hero-title { font-family:var(--font-heading); font-size:32px; font-weight:800; line-height:1.15; margin-bottom:16px; color:#FFFFFF; animation:fadeInUp .8s ease-out; }
.hero-sub { font-size:15px; color:rgba(255,255,255,.78); margin-bottom:32px; line-height:1.7; animation:fadeInUp .8s ease-out .15s both; }

/* Hero Form */
.hero-form { animation:fadeInUp .8s ease-out .3s both; }
.hero-form-vin { margin-bottom:12px; }
.hero-input { width:100%; padding:14px 16px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); border-radius:var(--radius-sm); color:#fff; font-size:15px; outline:none; transition:all .3s; backdrop-filter:blur(4px); }
.hero-input::placeholder { color:rgba(255,255,255,.5); }
.hero-input:focus { border-color:#fff; background:rgba(255,255,255,.22); box-shadow:0 0 0 3px rgba(255,255,255,.1); }
.hero-select { width:100%; padding:14px 16px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); border-radius:var(--radius-sm); color:#fff; font-size:15px; outline:none; transition:all .3s; appearance:none; -webkit-appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.hero-select option { color:var(--text-primary); background:var(--bg-primary); }
.hero-form-row { display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:12px; }
.hero-error { font-size:13px; color:#FF6B6B; min-height:18px; margin-bottom:8px; text-align:left; }
.btn-hero-continue { display:inline-flex; align-items:center; justify-content:center; padding:14px 40px; background:#fff; color:var(--accent); font-size:15px; font-weight:700; border-radius:var(--radius-md); border:none; cursor:pointer; transition:all .3s; letter-spacing:1px; }
.btn-hero-continue:hover { background:var(--bg-secondary); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }

/* Shared buttons */
.btn-primary { display:inline-flex; align-items:center; justify-content:center; width:100%; padding:14px 24px; background:var(--cta); color:#fff; font-size:15px; font-weight:600; border-radius:var(--radius-md); border:none; cursor:pointer; transition:all .3s; box-shadow:var(--shadow-btn); }
.btn-primary:hover { background:var(--cta-hover); transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,113,227,0.28); }
.btn-primary:active { transform:translateY(0); }

/* ===== CHECKOUT PAGE ===== */
.checkout-main { padding:80px 20px 60px; background:var(--bg-secondary); min-height:100vh; }
.checkout-container { max-width:960px; margin:0 auto; display:grid; grid-template-columns:1fr; gap:24px; }
.checkout-heading { font-family:var(--font-heading); font-size:24px; font-weight:600; margin-bottom:24px; color:#8B6914; }
.checkout-form-col { transition:opacity .4s; }
.checkout-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.ck-field { display:flex; flex-direction:column; gap:6px; }
.ck-field label { font-size:14px; font-weight:600; color:var(--text-primary); }
.ck-field.ck-full { margin-bottom:16px; }
.ck-input { width:100%; padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:8px; font-size:15px; color:var(--text-primary); outline:none; transition:border-color .3s, box-shadow .3s; font-family:inherit; }
.ck-input:focus { border-color:var(--cta); box-shadow:0 0 0 3px rgba(0,113,227,.1); }
.ck-select { appearance:none; -webkit-appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E6E73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }
.ck-textarea { resize:vertical; min-height:70px; }

/* Summary card */
.summary-card { background:var(--bg-elevated); border:1px solid var(--divider); border-radius:var(--radius-lg); padding:28px 24px; box-shadow:var(--shadow-card); }
.summary-heading { font-family:var(--font-heading); font-size:18px; font-weight:600; margin-bottom:20px; display:flex; align-items:center; gap:8px; color:var(--text-primary); }
.summary-heading svg { flex-shrink:0; }
.summary-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; font-size:14px; color:var(--text-secondary); }
.summary-vin-row { margin-bottom:8px; }
.summary-vin { background:var(--accent); color:#fff; padding:8px 14px; border-radius:6px; font-size:14px; font-weight:600; letter-spacing:1px; }
.summary-label { font-weight:500; color:var(--text-muted); }
.summary-product-select { padding:8px 32px 8px 10px; font-size:14px; border:2px solid var(--cta); border-radius:6px; }
.summary-divider { border-top:1px dashed var(--border); margin:8px 0; }
.summary-divider.dashed { border-style:dashed; }
.summary-total { font-size:18px; font-weight:700; color:var(--text-primary); }
.btn-proceed { margin-top:16px; }
.btn-edit { width:100%; padding:12px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:var(--radius-md); font-size:14px; font-weight:500; color:var(--text-secondary); margin-bottom:12px; transition:all .3s; }
.btn-edit:hover { border-color:var(--text-muted); color:var(--text-primary); }
.paypal-container { min-height:60px; margin-bottom:12px; }
.paypal-badge { font-size:13px; color:var(--cta); display:flex; align-items:center; justify-content:center; gap:6px; margin-top:12px; }
.paypal-badge svg { flex-shrink:0; }
.ck-error { font-size:13px; color:var(--error); margin-top:10px; min-height:18px; }
.success-msg,.failed-msg { display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; padding:24px 0; }
.success-msg h3 { color:var(--success); font-family:var(--font-heading); font-size:20px; }
.success-msg p { color:var(--text-secondary); }
.failed-msg h3 { color:var(--error); font-family:var(--font-heading); font-size:20px; }
.failed-msg p { color:var(--text-secondary); margin-bottom:8px; }
.failed-msg .btn-primary { width:auto; padding:12px 32px; }

/* T&C Modal */
.tc-overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:200; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:all .3s; padding:20px; }
.tc-overlay.active { opacity:1; visibility:visible; }
.tc-modal { background:var(--bg-primary); border-radius:var(--radius-lg); padding:28px 24px; max-width:520px; width:100%; box-shadow:0 12px 40px rgba(0,0,0,.15); transform:translateY(16px); transition:transform .3s; }
.tc-overlay.active .tc-modal { transform:translateY(0); }
.tc-modal h2 { font-family:var(--font-heading); font-size:20px; font-weight:600; margin-bottom:16px; text-align:center; }
.tc-modal ul { list-style:disc; padding-left:20px; margin-bottom:20px; }
.tc-modal li { font-size:14px; color:var(--text-secondary); line-height:1.7; margin-bottom:10px; }
.tc-actions { display:flex; gap:12px; justify-content:center; }
.btn-tc-cancel { padding:10px 28px; border:2px solid var(--text-primary); border-radius:6px; font-size:14px; font-weight:600; color:var(--text-primary); background:transparent; transition:all .2s; }
.btn-tc-cancel:hover { background:var(--bg-secondary); }
.btn-tc-accept { padding:10px 28px; border:2px solid var(--text-primary); border-radius:6px; font-size:14px; font-weight:600; color:#fff; background:var(--text-primary); transition:all .2s; }
.btn-tc-accept:hover { background:var(--accent); }

/* ===== DEMO SECTION ===== */
.demo-section { background:var(--bg-secondary); }
.section-title { font-family:var(--font-heading); font-size:26px; font-weight:600; text-align:center; margin-bottom:12px; color:var(--text-primary); }
.section-sub { text-align:center; color:var(--text-secondary); font-size:15px; margin-bottom:48px; max-width:520px; margin-left:auto; margin-right:auto; }
.demo-card { display:flex; flex-direction:column; gap:0; background:var(--bg-elevated); border:1px solid var(--divider); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); }
.demo-preview { padding:28px; background:var(--surface); display:flex; justify-content:center; }
.demo-page { background:var(--bg-primary); border-radius:8px; padding:20px; width:100%; max-width:300px; border:1px solid var(--divider); }
.demo-header-bar { height:8px; width:50%; background:var(--cta); border-radius:4px; margin-bottom:16px; }
.demo-line { height:6px; background:var(--divider); border-radius:3px; margin-bottom:8px; }
.demo-line.w80 { width:80%; } .demo-line.w60 { width:60%; } .demo-line.w90 { width:90%; } .demo-line.w70 { width:70%; } .demo-line.w85 { width:85%; }
.demo-spacer { height:16px; } .demo-spacer-sm { height:10px; }
.demo-block-row { display:flex; gap:8px; }
.demo-block { flex:1; height:40px; background:rgba(0,113,227,0.06); border-radius:6px; border:1px solid var(--divider); }
.demo-block.tall { height:60px; }
.demo-info { padding:28px; }
.demo-info h3 { font-family:var(--font-heading); font-size:20px; font-weight:600; margin-bottom:16px; color:var(--text-primary); }
.demo-features { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.demo-features li { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-secondary); }
.demo-features svg { width:16px; height:16px; flex-shrink:0; }
.demo-btn { width:auto; display:inline-flex; }

/* ===== WHY CHOOSE US ===== */
.why-section { background:var(--bg-primary); }
.why-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.why-card { background:var(--bg-elevated); border:1px solid var(--divider); border-radius:var(--radius-lg); padding:28px 24px; transition:all .3s; box-shadow:var(--shadow-card); }
.why-card:hover { border-color:var(--cta); transform:translateY(-4px); box-shadow:var(--shadow-card-hover); }
.why-icon { width:48px; height:48px; background:rgba(0,113,227,0.08); border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.why-icon svg { width:28px; height:28px; }
.why-card h3 { font-family:var(--font-heading); font-size:18px; font-weight:600; margin-bottom:8px; color:var(--text-primary); }
.why-card p { font-size:14px; color:var(--text-secondary); line-height:1.7; }

/* ===== STATS ===== */
.stats-section { background:var(--accent); overflow:hidden; position:relative; color:#fff; }
.stats-bg-grid { position:absolute; inset:0; background-image:radial-gradient(circle,rgba(255,255,255,0.06) 1px,transparent 1px); background-size:32px 32px; opacity:.5; animation:pulse 4s ease-in-out infinite; }
.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; position:relative; z-index:2; }
.stat-card { text-align:center; padding:28px 16px; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius-lg); backdrop-filter:blur(8px); }
.stat-number { font-family:var(--font-heading); font-size:32px; font-weight:700; color:#FFFFFF; }
.stat-suffix { font-family:var(--font-heading); font-size:24px; font-weight:700; color:rgba(255,255,255,0.7); }
.stat-label { display:block; margin-top:6px; font-size:13px; color:rgba(255,255,255,0.65); }
.stats-section .section-title { color:#FFFFFF; }
.stats-section .section-sub { color:rgba(255,255,255,0.7); }

/* ===== REVIEWS ===== */
.reviews-section { background:var(--bg-secondary); }
.reviews-carousel { overflow:hidden; position:relative; }
.reviews-track { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:4px; }
.reviews-track::-webkit-scrollbar { display:none; }
.review-card { flex:0 0 85%; scroll-snap-align:start; background:var(--bg-elevated); border:1px solid var(--divider); border-radius:var(--radius-lg); padding:24px; transition:all .3s; box-shadow:var(--shadow-card); }
.review-card:hover { border-color:var(--cta); box-shadow:var(--shadow-card-hover); }
.review-stars { margin-bottom:14px; display:flex; gap:3px; }
.review-stars span { color:#F5A623; font-size:16px; }
.review-stars span:last-child { color:var(--border); }
.review-text { font-size:14px; color:var(--text-secondary); line-height:1.7; margin-bottom:16px; }
.review-author { font-size:15px; font-weight:600; color:var(--text-primary); }
.review-location { font-size:13px; color:var(--text-muted); }
.carousel-nav { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:24px; }
.carousel-btn { width:40px; height:40px; border-radius:50%; background:var(--bg-elevated); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition:all .3s; color:var(--text-secondary); box-shadow:var(--shadow-card); }
.carousel-btn:hover { background:var(--cta); color:#fff; border-color:var(--cta); }
.carousel-btn svg { width:16px; height:16px; }
.carousel-dots { display:flex; gap:8px; }
.carousel-dot { width:8px; height:8px; border-radius:50%; background:var(--border); border:none; cursor:pointer; transition:all .3s; }
.carousel-dot.active { background:var(--cta); width:24px; border-radius:4px; }

/* ===== FOOTER ===== */
.site-footer { background:var(--accent); color:#fff; padding:48px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1fr; gap:32px; margin-bottom:32px; }
.footer-heading { font-family:var(--font-heading); font-size:16px; font-weight:600; margin-bottom:12px; color:#fff; }
.footer-text { font-size:14px; color:rgba(255,255,255,0.65); line-height:1.7; }
.footer-links li { margin-bottom:8px; }
.footer-links a,.footer-links li { font-size:14px; color:rgba(255,255,255,0.55); transition:color .2s; }
.footer-links a:hover { color:#fff; }
.footer-bottom { text-align:center; padding-top:24px; border-top:1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size:13px; color:rgba(255,255,255,0.4); }

/* ===== DESKTOP (min-width: 768px) ===== */
@media(min-width:768px) {
  body { font-size:16px; }
  .nav-left { display:block; }
  .hamburger { display:none; }
  .hero-title { font-size:48px; }
  .hero-sub { font-size:17px; }
  .hero-form-row { grid-template-columns:1fr 1fr 1fr 1fr; }
  .section-title { font-size:36px; }
  .section { padding:100px 0; }
  .why-grid { grid-template-columns:repeat(2,1fr); gap:20px; }
  .stats-grid { grid-template-columns:repeat(4,1fr); gap:20px; }
  .stat-number { font-size:42px; }
  .review-card { flex:0 0 45%; }
  .demo-card { flex-direction:row; }
  .demo-preview { flex:0 0 45%; }
  .demo-info { flex:1; padding:32px; display:flex; flex-direction:column; justify-content:center; }
  .footer-grid { grid-template-columns:2fr 1fr 1fr 1fr; }
  .checkout-container { grid-template-columns:1.2fr 1fr; gap:32px; }
}

/* ===== LARGE DESKTOP (min-width: 1024px) ===== */
@media(min-width:1024px) {
  .hero-title { font-size:56px; }
  .section-title { font-size:42px; }
  .why-grid { grid-template-columns:repeat(3,1fr); }
  .review-card { flex:0 0 32%; }
}
