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

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-danger: #EF4444;
  --color-danger-hover: #DC2626;
  --color-success: #10B981;
  --color-success-hover: #059669;
  --color-danger-bg: rgba(239, 68, 68, 0.08);
  --color-success-bg: rgba(16, 185, 129, 0.08);
  --color-danger-border: rgba(239, 68, 68, 0.25);
  --color-success-border: rgba(16, 185, 129, 0.25);
  --color-nav-bg: rgba(255, 255, 255, 0.85);
  --color-warning: #F59E0B;
}

.dark {
  --color-bg: #0A0E17;
  --color-surface: #141A26;
  --color-bg-alt: #1A2235;
  --color-text: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-border: #1E293B;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-danger-border: rgba(239, 68, 68, 0.3);
  --color-success-border: rgba(16, 185, 129, 0.3);
  --color-nav-bg: rgba(10, 14, 23, 0.9);
}

html { scroll-behavior: smooth; }

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

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

.nav-blur {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
}

@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

@keyframes glow-green {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.4); }
}

@keyframes sticker-pop {
  0% { transform: scale(0) rotate(-12deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}

@keyframes ota-enter {
  0% { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes solvaya-enter {
  0% { opacity: 0; transform: translateX(16px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.ota-sticker {
  animation: sticker-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--sticker-index, 0) * 0.15s);
}

.comparison-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.comparison-row.visible .comparison-ota {
  animation: ota-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.comparison-row.visible .comparison-solvaya {
  animation: solvaya-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.comparison-feature {
  font-weight: 600;
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.comparison-ota {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-danger-bg);
  border-left: 3px solid var(--color-danger);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-solvaya {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-success-bg);
  border-left: 3px solid var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-row:last-child .comparison-feature,
.comparison-row:last-child .comparison-ota,
.comparison-row:last-child .comparison-solvaya {
  border-bottom: none;
}

.receipt {
  font-family: 'Courier New', Courier, monospace;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 6px;
  position: relative;
}

.receipt::before,
.receipt::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
}

.receipt::before { top: -9px; left: -9px; }
.receipt::after { top: -9px; right: -9px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.ota-logo-container { position: relative; }

.ota-commission-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--color-danger);
  color: white;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  transform: rotate(8deg);
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
  z-index: 10;
  line-height: 1.2;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
}

.timeline-bar-wrap {
  background: var(--color-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  height: 36px;
  display: flex;
  transition: all 0.3s ease;
}

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

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

.timeline-reveal .timeline-ota-fill,
.timeline-reveal .timeline-direct-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-reveal:not(.visible) .timeline-ota-fill,
.timeline-reveal:not(.visible) .timeline-direct-fill {
  width: 0 !important;
}

.pricing-amount {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.9;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-answer {
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.cta-gradient {
  background: linear-gradient(135deg, #0A0E17 0%, #141A26 50%, #1A2235 100%);
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
}

.division-line {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-danger), transparent);
  margin: 2rem 0;
}

.division-line-green {
  background: linear-gradient(to right, transparent, var(--color-success), transparent);
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  margin: 0 auto;
}

.team-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

[x-cloak] { display: none !important; }

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-green {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

@media (max-width: 768px) {
  .comparison-feature, .comparison-ota, .comparison-solvaya { padding: 0.875rem 1rem; }
  .ota-commission-label { font-size: 0.8rem; padding: 3px 10px; top: -8px; right: -8px; }
  .receipt { font-size: 0.85rem; }
  .receipt::before, .receipt::after { width: 12px; height: 12px; }
  .receipt::before { top: -7px; left: -7px; }
  .receipt::after { top: -7px; right: -7px; }
}
