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

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --bg-primary: #0A0E17;
  --bg-surface: #141A26;
  --bg-surface-alt: #1A2235;
  --bg-surface-hover: #1E2A3D;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.3);
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(59, 130, 246, 0.2);
  --nav-bg: rgba(10, 14, 23, 0.85);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.light {
  --bg-primary: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-alt: #F1F5F9;
  --bg-surface-hover: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.1);
  --danger: #DC2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.2);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --success-border: rgba(5, 150, 105, 0.2);
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-accent: rgba(59, 130, 246, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
}

/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* ========== TYPOGRAPHY ========== */
.display-font {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ========== UTILITY ========== */
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Scroll animation base */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ========== NAVIGATION ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow);
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 200;
  padding: 6rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(239, 68, 68, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.ota-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  filter: grayscale(0.6);
  opacity: 0.85;
}

.ota-card:hover {
  filter: grayscale(0.3);
  opacity: 1;
  border-color: var(--danger-border);
  box-shadow: 0 0 30px var(--danger-bg);
}

.ota-card svg {
  height: 2.5rem;
  width: auto;
  opacity: 0.7;
}

.commission-sticker {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: var(--danger);
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transform: rotate(6deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  line-height: 1;
  z-index: 2;
}

.commission-sticker:nth-child(2) {
  transform: rotate(-4deg);
}

@media (max-width: 768px) {
  .ota-card {
    padding: 1.25rem;
  }
  .commission-sticker {
    font-size: 1.25rem;
    top: -0.5rem;
    right: -0.5rem;
  }
}

/* ========== CALCULATOR ========== */
.calculator-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 3rem;
}

.calc-input {
  width: 100%;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease;
  outline: none;
}

.calc-input:focus {
  border-color: var(--accent);
}

.calc-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.calc-number.danger {
  color: var(--danger);
}

.calc-number.success {
  color: var(--success);
}

.calc-number.dim {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .calc-card {
    padding: 1.5rem;
  }
  .calc-input {
    font-size: 1.25rem;
  }
}

/* ========== COMPARISON TABLE ========== */
.comparison-section {
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-row:first-child {
  border-top: 1px solid var(--border);
}

.comparison-cell {
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.comparison-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.ota-cell {
  background: var(--danger-bg);
  color: var(--danger);
  border-left: 3px solid var(--danger);
  position: relative;
  overflow: hidden;
}

.solvaya-cell {
  background: var(--success-bg);
  color: var(--success);
  border-left: 3px solid var(--success);
  position: relative;
  overflow: hidden;
}

.ota-cell .cell-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.solvaya-cell .cell-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cell-label-mobile {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .comparison-label {
    font-size: 1rem;
    padding: 1rem 1rem 0.25rem;
  }

  .comparison-cell {
    padding: 0.75rem 1rem;
  }

  .cell-label-mobile {
    display: block;
  }

  .ota-cell {
    border-left: none;
    border-bottom: 1px solid var(--danger-border);
  }

  .solvaya-cell {
    border-left: none;
  }
}

/* Animation states for comparison rows */
.comparison-row .ota-cell,
.comparison-row .solvaya-cell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.comparison-row.visible .ota-cell,
.comparison-row.visible .solvaya-cell {
  opacity: 1;
  transform: translateY(0);
}

.comparison-row.visible .ota-cell {
  animation: otaReveal 0.6s ease forwards;
}

.comparison-row.visible .solvaya-cell {
  animation: solvayaReveal 0.6s ease forwards;
}

@keyframes otaReveal {
  0% {
    box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.08);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes solvayaReveal {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ========== RECEIPT CARDS ========== */
.receipt-card {
  background: var(--bg-surface);
  border: 2px dashed var(--border-light);
  border-radius: 0.5rem;
  padding: 1.75rem;
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.receipt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.receipt-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 0.75rem;
}

.receipt-divider {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: 0.5rem 0;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.receipt-label {
  color: var(--text-muted);
}

.receipt-value {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.receipt-value.danger {
  color: var(--danger);
}

.receipt-value.success {
  color: var(--success);
  font-size: 1.125rem;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 0;
  margin-top: 0.5rem;
  border-top: 2px dashed var(--success);
}

.receipt-total-label {
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.receipt-total-value {
  font-weight: 800;
  color: var(--success);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* ========== DIVIDER ========== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--danger), var(--accent), var(--success), transparent);
  border: none;
  margin: 0;
}

/* ========== OTA WARNING BADGE ========== */
.ota-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--danger-border);
}

/* ========== TIMELINE (How It Works) ========== */
.timeline-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 4.5rem;
  flex-shrink: 0;
}

.timeline-track {
  flex: 1;
  height: 2rem;
  background: var(--bg-surface);
  border-radius: 0.25rem;
  overflow: hidden;
  display: flex;
  position: relative;
}

.timeline-ota {
  height: 100%;
  background: var(--danger);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  min-width: fit-content;
  padding: 0 0.5rem;
}

.timeline-direct {
  height: 100%;
  background: var(--success);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  min-width: fit-content;
  padding: 0 0.5rem;
}

.timeline-step {
  position: relative;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.timeline-step:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.timeline-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ========== PRICING ========== */
.pricing-stat {
  text-align: center;
  padding: 2rem;
}

.pricing-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pricing-detail {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-feature:last-child {
  border-bottom: none;
}

/* ========== TEAM CARDS ========== */
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.team-card:hover .team-photo {
  border-color: var(--accent);
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 0 30px var(--danger-bg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ========== How It Works Dependency Graph ========== */
.dependency-visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.dep-circle {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: white;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.dep-ota {
  background: var(--danger);
  width: 180px;
  height: 180px;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow: 0 0 40px var(--danger-bg);
}

.dep-solvaya {
  background: var(--success);
  width: 140px;
  height: 140px;
  bottom: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 0 40px var(--success-bg);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-alt);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-surface-hover);
}
