@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-subtle: rgba(59, 130, 246, 0.08);
  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  --color-danger-subtle: rgba(239, 68, 68, 0.08);
  --color-success: #10b981;
  --color-success-light: #f0fdf4;
  --color-success-subtle: rgba(16, 185, 129, 0.08);
  --color-ota-bg: rgba(239, 68, 68, 0.04);
  --color-solvaya-bg: rgba(16, 185, 129, 0.04);
  --color-ota-border: rgba(239, 68, 68, 0.15);
  --color-solvaya-border: rgba(16, 185, 129, 0.15);
  --receipt-bg: #f8fafc;
  --receipt-border: #cbd5e1;
  --nav-blur: rgba(255, 255, 255, 0.85);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

.dark {
  --color-bg: #0a0e17;
  --color-surface: #141a26;
  --color-surface-alt: #1a2235;
  --color-text: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-muted: #64748b;
  --color-border: #1e293b;
  --color-accent: #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-accent-subtle: rgba(59, 130, 246, 0.06);
  --color-danger-light: rgba(239, 68, 68, 0.08);
  --color-success-light: rgba(16, 185, 129, 0.08);
  --color-danger-subtle: rgba(239, 68, 68, 0.06);
  --color-success-subtle: rgba(16, 185, 129, 0.06);
  --color-ota-bg: rgba(239, 68, 68, 0.03);
  --color-solvaya-bg: rgba(16, 185, 129, 0.03);
  --color-ota-border: rgba(239, 68, 68, 0.12);
  --color-solvaya-border: rgba(16, 185, 129, 0.12);
  --receipt-bg: #141a26;
  --receipt-border: #334155;
  --nav-blur: rgba(10, 14, 23, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

::selection { background: var(--color-accent); color: #fff; }

/* === NAVIGATION === */
.nav-blur {
  backdrop-filter: blur(20px) saturate(1.2);
  background: var(--nav-blur);
  border-bottom: 1px solid var(--color-border);
}

/* === OTA WARNING STICKERS === */
.ota-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-danger);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1;
  padding: 3px 8px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.ota-warning-lg {
  font-size: 1.25rem;
  padding: 6px 16px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* === RECEIPT STYLES === */
.receipt {
  font-family: var(--font-mono);
  background: var(--receipt-bg);
  border: 1px dashed var(--receipt-border);
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  position: relative;
}
.receipt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    var(--receipt-border) 4px,
    var(--receipt-border) 8px
  );
}

/* === COMPARISON TABLE ROWS === */
.comparison-row {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover {
  background: var(--color-surface-alt);
}

.comparison-ota {
  background: var(--color-ota-bg);
  border-left: 3px solid var(--color-danger);
  padding: 1rem;
}
.comparison-solvaya {
  background: var(--color-solvaya-bg);
  border-right: 3px solid var(--color-success);
  padding: 1rem;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ota {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.reveal-ota.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-solvaya {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.reveal-solvaya.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === ANIMATIONS === */
@keyframes warning-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes green-glow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-indicator {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

.warning-pulse {
  animation: warning-pulse 2s ease-in-out infinite;
}

.green-glow {
  animation: green-glow 2s ease-in-out infinite;
}

/* === HERO OTA LOGO TINT === */
.ota-logo-tint {
  filter: grayscale(30%) opacity(0.85);
  transition: filter 0.3s ease;
}
.ota-logo-tint:hover {
  filter: grayscale(0%) opacity(1);
}

/* === CUSTOM RANGE SLIDER === */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

input[type='range'].range-danger::-webkit-slider-thumb {
  background: var(--color-danger);
  box-shadow: 0 0 0 2px var(--color-danger);
}
input[type='range'].range-danger::-moz-range-thumb {
  background: var(--color-danger);
  box-shadow: 0 0 0 2px var(--color-danger);
}

/* === TIMELINE BAR === */
.timeline-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--color-border);
  overflow: hidden;
  position: relative;
}
.timeline-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}
.timeline-fill-ota { background: var(--color-danger); }
.timeline-fill-direct { background: var(--color-success); }

/* === NUMBER DISPLAY === */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #0a0e17 0%, #141a26 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
}

/* === MOBILE NAV === */
.mobile-nav-open {
  overflow: hidden;
}

/* === SVG ICON WRAPPER === */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }

/* === RESPONSIVE UTILITIES === */
@media (max-width: 640px) {
  .ota-warning-lg {
    font-size: 1rem;
    padding: 4px 12px;
  }
  .receipt { font-size: 0.75rem; padding: 1rem; }
}
