@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ── Theme: CSS Custom Properties ─────────────────────────────── */
:root {
  /* Dark mode (default) */
  --bg-primary:    #0A0E17;
  --bg-surface:    #141A26;
  --bg-elevated:   #1E2533;
  --bg-otabad:     rgba(239, 68, 68, 0.08);
  --bg-solvayagood:rgba(16, 185, 129, 0.06);
  --text-primary:  #F1F5F9;
  --text-secondary:#CBD5E1;
  --text-muted:    #94A3B8;
  --border:        #1E293B;
  --border-strong: #334155;
  --accent:        #3B82F6;
  --accent-hover:  #2563EB;
  --danger:        #EF4444;
  --danger-muted:  rgba(239, 68, 68, 0.15);
  --success:       #10B981;
  --success-muted: rgba(16, 185, 129, 0.15);
  --ota-column:    rgba(239, 68, 68, 0.04);
  --solvaya-column:rgba(16, 185, 129, 0.04);
  --stripe:        rgba(255,255,255,0.02);
  --receipt-bg:    #1E2533;
  --receipt-border:#334155;
  --glow-green:    0 0 30px rgba(16, 185, 129, 0.15);
  --glow-red:      0 0 20px rgba(239, 68, 68, 0.12);
}

html.light {
  --bg-primary:    #FFFFFF;
  --bg-surface:    #F8FAFC;
  --bg-elevated:   #F1F5F9;
  --bg-otabad:     rgba(239, 68, 68, 0.06);
  --bg-solvayagood:rgba(16, 185, 129, 0.06);
  --text-primary:  #0F172A;
  --text-secondary:#334155;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --border-strong: #CBD5E1;
  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --danger:        #DC2626;
  --danger-muted:  rgba(220, 38, 38, 0.08);
  --success:       #059669;
  --success-muted: rgba(5, 150, 105, 0.08);
  --ota-column:    rgba(239, 68, 68, 0.03);
  --solvaya-column:rgba(16, 185, 129, 0.03);
  --stripe:        rgba(0,0,0,0.015);
  --receipt-bg:    #FFFFFF;
  --receipt-border:#E2E8F0;
  --glow-green:    0 0 30px rgba(16, 185, 129, 0.08);
  --glow-red:      0 0 20px rgba(239, 68, 68, 0.06);
}

/* ── Font Stack ────────────────────────────────────────────────── */
.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; }
.font-body    { font-family: 'Inter', sans-serif; }
.font-mono    { font-family: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', monospace; }

/* ── Base ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Selection ─────────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ── Focus ─────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseWarning {
  0%, 100% { box-shadow: 0 0 0 0 var(--danger-muted); }
  50%      { box-shadow: 0 0 0 12px transparent; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-green); }
  50%      { box-shadow: 0 0 40px rgba(16, 185, 129, 0.25); }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 300px; }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes borderDrain {
  0%   { border-color: var(--danger); }
  100% { border-color: var(--success); }
}
@keyframes shrinkBar {
  from { width: 100%; }
  to   { width: 5%; }
}

.animate-in     { animation: fadeInUp 0.6s ease-out both; }
.animate-left   { animation: fadeInLeft 0.6s ease-out both; }
.animate-right  { animation: fadeInRight 0.6s ease-out both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.pulse-warning { animation: pulseWarning 2s ease-in-out infinite; }
.glow-green    { animation: glowPulse 3s ease-in-out infinite; }

/* ── Scroll Reveal ─────────────────────────────────────────────── */
.reveal-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── OTA Logo Sticker ──────────────────────────────────────────── */
.ota-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ota-logo-wrapper:hover {
  border-color: var(--danger);
  box-shadow: var(--glow-red);
}
.ota-commission-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem 0.25rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
  z-index: 2;
  transform: rotate(3deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ── OTA Brand Text Logo ──────────────────────────────────────── */
.ota-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  filter: grayscale(0.5) brightness(0.8);
  transition: color 0.3s, filter 0.3s;
}
.ota-logo-wrapper:hover .ota-brand {
  color: var(--danger);
  filter: none;
}

/* ── Comparison Table ──────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.comparison-table th,
.comparison-table td {
  padding: 1.125rem 1.5rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-strong);
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
.comparison-table thead th:last-child {
  color: var(--success);
}
.comparison-table thead th:first-child {
  color: var(--danger);
}
.comparison-table tbody tr {
  transition: background 0.3s;
}
.comparison-table tbody tr:nth-child(odd) {
  background: var(--stripe);
}
.comparison-table tbody tr:hover {
  background: var(--bg-elevated);
}
.comparison-table .col-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  min-width: 200px;
}
.comparison-table .col-ota {
  color: var(--danger);
  font-weight: 500;
  background: var(--ota-column);
  position: relative;
}
.comparison-table .col-solvaya {
  color: var(--success);
  font-weight: 600;
  background: var(--solvaya-column);
  position: relative;
}
.comparison-table .x-mark {
  color: var(--danger);
  font-size: 1.25rem;
  font-weight: 700;
}
.comparison-table .check-mark {
  color: var(--success);
  font-size: 1.25rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .comparison-table thead { display: none; }
  .comparison-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: var(--bg-surface);
  }
  .comparison-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .comparison-table tbody td:last-child { border-bottom: none; }
  .comparison-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    margin-right: 1rem;
  }
  .comparison-table .col-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.03em;
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .comparison-table .col-ota,
  .comparison-table .col-solvaya {
    background: none;
  }
}

/* ── Receipt Card ──────────────────────────────────────────────── */
.receipt {
  background: var(--receipt-bg);
  border: 1px solid var(--receipt-border);
  border-radius: 0.5rem;
  overflow: hidden;
  font-family: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.receipt-header {
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  border-bottom: 2px dashed var(--border);
  text-align: center;
}
.receipt-header .title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.receipt-body {
  padding: 1rem 1.25rem;
}
.receipt-body .line {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}
.receipt-body .line .label { color: var(--text-muted); }
.receipt-body .line .value { color: var(--text-primary); font-weight: 500; }
.receipt-body .divider {
  border-top: 1px dashed var(--border);
  margin: 0.5rem 0;
}
.receipt-body .saved {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}
.receipt-body .lost {
  color: var(--danger);
  font-weight: 500;
}
.receipt-footer {
  background: var(--bg-elevated);
  padding: 0.75rem 1.25rem;
  border-top: 2px dashed var(--border);
  text-align: center;
}

/* ── Slider (pricing page) ─────────────────────────────────────── */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--success) 0%, var(--accent) 100%);
  outline: none;
}
input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
input[type="range"].custom-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Timeline (how-it-works) ───────────────────────────────────── */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--danger), var(--success));
  border-radius: 2px;
}
.timeline-node {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2.5rem;
}
.timeline-node:last-child { padding-bottom: 0; }
.timeline-node::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 4px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-strong);
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-node:nth-child(1)::before { border-color: var(--danger); }
.timeline-node:nth-child(2)::before { border-color: var(--accent); }
.timeline-node:nth-child(3)::before { border-color: var(--success); }
.timeline-node:nth-child(4)::before { border-color: var(--success); }

/* ── Dependency Bar Animation ──────────────────────────────────── */
.dependency-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--success);
  transition: width 1s ease-out;
}
.dependency-bar-track {
  height: 12px;
  border-radius: 6px;
  background: var(--danger-muted);
  overflow: hidden;
}

/* ── FAQ Accordion ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--accent); }
.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}
.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(45deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-panel.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* ── Nav ───────────────────────────────────────────────────────── */
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

/* ── Mobile Menu ───────────────────────────────────────────────── */
.mobile-menu {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

/* ── Button Styles ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Section Dividers ──────────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--danger), var(--success), transparent);
  margin: 4rem 0;
  border: none;
}

/* ── Number Display ────────────────────────────────────────────── */
.number-lg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.number-stack {
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* ── Hero Grid ─────────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 90vh;
  padding: 6rem 0 4rem;
}
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 0 2rem;
  }
}

/* ── OTA Grid (hero) ───────────────────────────────────────────── */
.ota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Calculator styles ─────────────────────────────────────────── */
.calculator-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
}
.calc-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-strong);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}
.calc-input:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.calc-result-row:last-child { border-bottom: none; }

/* ── Utility ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

/* ── Skip to content ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Tooltip-style hover ───────────────────────────────────────── */
.sticker-label {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: 0.25rem;
  font-weight: 700;
}
.sticker-red  { background: var(--danger); color: #fff; }
.sticker-green{ background: var(--success); color: #fff; }
