/* === SELF-HOSTED INTER FONT === */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/inter-900.woff2') format('woff2'); }

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* === CARBON FIBER WEAVE TEXTURE === */
.carbon-bg {
  background-color: #0a0d12;
  position: relative;
}
.carbon-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.28) 2px, rgba(255,255,255,0.38) 4px, rgba(255,255,255,0.28) 6px, rgba(255,255,255,0.0) 8px, rgba(255,255,255,0.0) 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.22) 2px, rgba(255,255,255,0.30) 4px, rgba(255,255,255,0.22) 6px, rgba(255,255,255,0.0) 8px, rgba(255,255,255,0.0) 10px),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.0) 4px, rgba(0,0,0,0.18) 5px, rgba(0,0,0,0.0) 6px, rgba(0,0,0,0.0) 10px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.0) 4px, rgba(0,0,0,0.15) 5px, rgba(0,0,0,0.0) 6px, rgba(0,0,0,0.0) 10px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.12) 3px, rgba(255,255,255,0.0) 5px, rgba(255,255,255,0.0) 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.0) 5px, rgba(255,255,255,0.0) 10px);
  background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px;
}
.carbon-bg > * { position: relative; z-index: 1; }

.carbon-panel {
  background-color: rgba(13,17,23,0.7);
  position: relative;
}
.carbon-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.28) 2px, rgba(255,255,255,0.38) 4px, rgba(255,255,255,0.28) 6px, rgba(255,255,255,0.0) 8px, rgba(255,255,255,0.0) 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.0) 0px, rgba(255,255,255,0.22) 2px, rgba(255,255,255,0.30) 4px, rgba(255,255,255,0.22) 6px, rgba(255,255,255,0.0) 8px, rgba(255,255,255,0.0) 10px),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.0) 4px, rgba(0,0,0,0.15) 5px, rgba(0,0,0,0.0) 6px, rgba(0,0,0,0.0) 10px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.0) 4px, rgba(0,0,0,0.12) 5px, rgba(0,0,0,0.0) 6px, rgba(0,0,0,0.0) 10px);
  background-size: 10px 10px;
}

/* === GLASSMORPHISM === */
.glass-dark { backdrop-filter: blur(20px) saturate(1.6); background: rgba(10,13,18,0.88); border-bottom: 1px solid rgba(6,182,212,0.08); }
.glass-card { backdrop-filter: blur(16px); background: linear-gradient(135deg, rgba(19,24,31,0.85) 0%, rgba(13,17,23,0.9) 100%); border: 1px solid rgba(6,182,212,0.1); position: relative; }

/* === METALLIC GRADIENT BORDERS === */
.metallic-border { position: relative; border: 1px solid transparent; background-clip: padding-box; }
.metallic-border::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, rgba(6,182,212,0.3) 0%, rgba(148,163,184,0.15) 30%, rgba(6,182,212,0.2) 50%, rgba(148,163,184,0.1) 70%, rgba(6,182,212,0.25) 100%); z-index: -1; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; padding: 1px; }

/* === GLOW EFFECTS === */
.glow-cyan { box-shadow: 0 0 40px rgba(6,182,212,0.15), 0 0 80px rgba(6,182,212,0.06), 0 8px 32px rgba(0,0,0,0.4); }
.glow-cyan-sm { box-shadow: 0 0 20px rgba(6,182,212,0.1), 0 4px 16px rgba(0,0,0,0.3); }
.glow-cyan-intense { box-shadow: 0 0 50px rgba(6,182,212,0.25), 0 0 100px rgba(6,182,212,0.1), 0 8px 40px rgba(0,0,0,0.5); }
.shadow-premium { box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3); }
.shadow-card { box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2); }

/* === BORDER GLOWS === */
.border-glow { border: 1px solid rgba(6,182,212,0.15); }
.border-glow-strong { border: 1px solid rgba(6,182,212,0.35); }

/* === GRADIENT EFFECTS === */
.gradient-mesh { background: radial-gradient(ellipse 90% 50% at 50% -20%, rgba(6,182,212,0.1) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 85% 50%, rgba(6,182,212,0.05) 0%, transparent 50%), radial-gradient(ellipse 40% 30% at 15% 60%, rgba(6,182,212,0.03) 0%, transparent 50%); }
@keyframes hero-sweep { 0% { opacity: 0.03; transform: translateX(-30%) skewX(-15deg); } 50% { opacity: 0.07; transform: translateX(30%) skewX(-15deg); } 100% { opacity: 0.03; transform: translateX(-30%) skewX(-15deg); } }
.hero-sweep { position: absolute; inset: -20% -50%; background: linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.15) 30%, rgba(255,255,255,0.04) 50%, rgba(6,182,212,0.15) 70%, transparent 100%); animation: hero-sweep 12s ease-in-out infinite; pointer-events: none; }
.text-gradient { background: linear-gradient(135deg, #67e8f9 0%, #06b6d4 40%, #22d3ee 70%, #67e8f9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-steel { background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #cbd5e1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === BUTTONS === */
.btn-primary { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 20px rgba(6,182,212,0.2), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:hover { background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%); box-shadow: 0 0 36px rgba(6,182,212,0.35), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(6,182,212,0.2); background: rgba(6,182,212,0.04); transition: all 0.25s ease; }
.btn-ghost:hover { border-color: rgba(6,182,212,0.45); background: rgba(6,182,212,0.1); box-shadow: 0 0 16px rgba(6,182,212,0.08); }

/* === INPUT === */
.input-premium { background: rgba(10,13,18,0.7); border: 1px solid rgba(6,182,212,0.15); transition: all 0.3s ease; }
.input-premium:focus { border-color: rgba(6,182,212,0.6); box-shadow: 0 0 0 3px rgba(6,182,212,0.15), 0 0 30px rgba(6,182,212,0.18), 0 0 60px rgba(6,182,212,0.06), inset 0 0 20px rgba(6,182,212,0.03); outline: none; background: rgba(10,13,18,0.85); }

/* === SCROLLBAR === */
.scrollbox { max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(6,182,212,0.2) transparent; }
.scrollbox::-webkit-scrollbar { width: 4px; }
.scrollbox::-webkit-scrollbar-track { background: transparent; }
.scrollbox::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.2); border-radius: 4px; }

/* === DIVIDER === */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.12), rgba(148,163,184,0.08), rgba(6,182,212,0.12), transparent); }

/* === CARD HOVER === */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { border-color: rgba(6,182,212,0.35); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(6,182,212,0.08); }

/* === FEATURE ICON === */
.feature-icon { background: linear-gradient(135deg, rgba(6,182,212,0.12) 0%, rgba(6,182,212,0.04) 100%); border: 1px solid rgba(6,182,212,0.15); box-shadow: 0 0 12px rgba(6,182,212,0.06); }

/* === ANIMATIONS === */
.pulse-dot { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes ai-pulse { 0%, 100% { box-shadow: 0 0 24px rgba(6,182,212,0.25), 0 0 48px rgba(6,182,212,0.08), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); } 50% { box-shadow: 0 0 40px rgba(6,182,212,0.4), 0 0 72px rgba(6,182,212,0.15), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15); } }
.ai-btn-glow { animation: ai-pulse 3s ease-in-out infinite; border: 1px solid rgba(6,182,212,0.3); }
.ai-btn-glow:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 0 48px rgba(6,182,212,0.45), 0 0 90px rgba(6,182,212,0.18), 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2); border-color: rgba(6,182,212,0.5); animation: none; }
.ai-btn-glow:active { transform: translateY(-1px) scale(1.01); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer-effect { position: relative; overflow: hidden; }
.shimmer-effect::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 60%, transparent 100%); background-size: 200% 100%; animation: shimmer 4s ease-in-out infinite; pointer-events: none; border-radius: inherit; }
@keyframes border-glow-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* === PREFERS-REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-sweep { animation: none !important; display: none; }
  .pulse-dot { animation: none !important; }
  .ai-btn-glow { animation: none !important; }
  .shimmer-effect::after { animation: none !important; display: none; }
  .card-hover:hover { transform: none !important; }
  .btn-primary:hover { transform: none !important; }
}

@keyframes float-up { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
.float-up-1 { animation: float-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 0.1s; opacity: 0; }
.float-up-2 { animation: float-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 0.25s; opacity: 0; }
.float-up-3 { animation: float-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 0.4s; opacity: 0; }

/* === VIN CARD GLOW EDGE === */
.vin-card { position: relative; }
.vin-card::before { content: ''; position: absolute; inset: -2px; border-radius: 1.1rem; background: linear-gradient(135deg, rgba(6,182,212,0.4) 0%, rgba(148,163,184,0.1) 25%, rgba(6,182,212,0.3) 50%, rgba(148,163,184,0.1) 75%, rgba(6,182,212,0.35) 100%); z-index: -1; animation: border-glow-pulse 3s ease-in-out infinite; }

/* === AI MODAL === */
.ai-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: none; }
.ai-modal-overlay.active { display: flex; align-items: center; justify-content: center; }
@media (max-width: 767px) {
  .ai-modal-overlay.active { align-items: flex-end; }
  .ai-modal { border-radius: 1.25rem 1.25rem 0 0 !important; max-height: 90vh !important; width: 100% !important; max-width: 100% !important; }
}

/* === HEADER SCANLINE === */
.header-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.3), rgba(6,182,212,0.6), rgba(6,182,212,0.3), transparent); }

/* === PERFORMANCE GRID LINES === */
.perf-grid::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px); background-size: 60px 60px; mask: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent); -webkit-mask: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent); }

/* === BRUSHED STEEL CARD HEADER === */
.steel-header { background: linear-gradient(135deg, rgba(148,163,184,0.08) 0%, rgba(100,116,139,0.04) 50%, rgba(148,163,184,0.06) 100%); border-bottom: 1px solid rgba(148,163,184,0.08); }

/* === CONTENT PROSE === */
.prose-dark h2 { color: #fff; font-weight: 800; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-dark h3 { color: #e2e8f0; font-weight: 700; font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-dark p { color: #a0aab8; line-height: 1.75; margin-bottom: 1.25rem; }
.prose-dark a { color: #22d3ee; text-decoration: underline; text-underline-offset: 3px; }
.prose-dark a:hover { color: #67e8f9; }
.prose-dark ul, .prose-dark ol { color: #a0aab8; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose-dark li { margin-bottom: 0.5rem; }
.prose-dark blockquote { border-left: 3px solid rgba(6,182,212,0.3); padding-left: 1rem; color: #c0c7d0; font-style: italic; margin: 1.5rem 0; }
.prose-dark code { background: rgba(6,182,212,0.08); color: #67e8f9; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.875em; }
.prose-dark pre { background: rgba(10,13,18,0.8); border: 1px solid rgba(6,182,212,0.1); border-radius: 0.75rem; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.prose-dark pre code { background: transparent; padding: 0; color: #c0c7d0; }
.prose-dark table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose-dark th { text-align: left; padding: 0.75rem 1rem; background: rgba(6,182,212,0.06); border-bottom: 1px solid rgba(6,182,212,0.15); color: #fff; font-weight: 600; font-size: 0.875rem; }
.prose-dark td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: #a0aab8; font-size: 0.875rem; }
.prose-dark img { border-radius: 0.75rem; margin: 1.5rem 0; }
.prose-dark hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.12), rgba(148,163,184,0.08), rgba(6,182,212,0.12), transparent); margin: 2rem 0; }
