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

:root {
    --bg-primary: #0A0E17;
    --bg-surface: #141A26;
    --bg-elevated: #1A2235;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --accent: #3B82F6;
    --accent-hover: #60A5FA;
    --danger: #EF4444;
    --danger-subtle: rgba(239, 68, 68, 0.12);
    --success: #10B981;
    --success-subtle: rgba(16, 185, 129, 0.12);
    --border: #1E293B;
    --border-light: #334155;
    --receipt-bg: #0F172A;
    --nav-bg: rgba(10, 14, 23, 0.85);
}

.light {
    --bg-primary: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-elevated: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --border-light: #CBD5E1;
    --receipt-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --danger-subtle: rgba(239, 68, 68, 0.08);
    --success-subtle: rgba(16, 185, 129, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

.font-display {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.nav-link {
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* OTA Enemy Portrait */
.ota-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ota-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.ota-block {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.ota-block:hover {
    border-color: var(--danger);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.ota-block-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    filter: grayscale(0.6);
    transition: all 0.3s;
}

.ota-block:hover .ota-block-logo {
    filter: grayscale(0);
    color: var(--danger);
}

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

.ota-commission.middle {
    background: #DC2626;
}

.ota-commission.highest {
    background: #B91C1C;
}

/* Calculator */
.calculator-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    transition: background 0.2s;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-surface);
}

.stat-number {
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Comparison Table */
.comparison-section {
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.comparison-header-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.comparison-ota {
    color: var(--danger);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: var(--danger-subtle);
    border-radius: 8px;
    border-left: 3px solid var(--danger);
}

.comparison-solvaya {
    color: var(--success);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: var(--success-subtle);
    border-radius: 8px;
    border-left: 3px solid var(--success);
}

/* Row stagger delays */
.comparison-row:nth-child(1) { transition-delay: 0s; }
.comparison-row:nth-child(2) { transition-delay: 0.1s; }
.comparison-row:nth-child(3) { transition-delay: 0.2s; }
.comparison-row:nth-child(4) { transition-delay: 0.3s; }
.comparison-row:nth-child(5) { transition-delay: 0.4s; }
.comparison-row:nth-child(6) { transition-delay: 0.5s; }
.comparison-row:nth-child(7) { transition-delay: 0.6s; }

/* Receipt */
.receipt {
    background: var(--receipt-bg);
    border: 1px dashed var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    font-size: 0.8125rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.receipt:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.receipt-header {
    font-family: 'Inter', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-light);
    margin-bottom: 0.75rem;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-family: 'Inter', monospace;
    font-size: 0.8125rem;
}

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

.receipt-line-value {
    color: var(--text-primary);
    font-weight: 500;
}

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

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
}

.receipt-total-label {
    font-family: 'Inter', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.receipt-total-value {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
}

/* Timeline visual */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
}

.timeline-month {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
}

.timeline-bar-track {
    height: 28px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border);
}

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

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

/* Steps narrative */
.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

/* Pricing */
.pricing-statement {
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.pricing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .pricing-features {
        grid-template-columns: 1fr;
    }
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.875rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

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

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    padding-top: 0.75rem;
}

/* Team cards */
.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--border);
}

/* Value cards */
.value-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 3px solid transparent;
}

.value-card.transparency {
    border-top-color: var(--accent);
}

.value-card.ownership {
    border-top-color: var(--success);
}

.value-card.fairness {
    border-top-color: #F59E0B;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--danger);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

/* Section padding */
.section {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .section {
        padding: 7rem 1rem;
    }
}

.section-dark {
    background: var(--bg-surface);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

/* Scroll badge on the OTA block animation */
@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 24px 4px rgba(239, 68, 68, 0.15); }
}

.ota-block.warning {
    animation: warningPulse 2s ease-in-out infinite;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: var(--bg-surface);
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s;
}

img[loading] {
    opacity: 0;
}

img[loading].loaded,
img[src] {
    opacity: 1;
}

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 40;
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

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

/* SVG icon defaults */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}
