:root {
    --mtb-blue: #2563eb;
    --mtb-blue-dark: #1d4ed8;
    --mtb-navy: #0f172a;
    --mtb-sky: #f1f5f9;
    --mtb-cyan: #06b6d4;
    --mtb-purple: #7c3aed;
    --mtb-text: #263650;
    --mtb-muted: #6a7890;
    --mtb-line: #dbe5f0;
    --mtb-white: #ffffff;
    --mtb-shadow: 0 24px 60px rgba(5, 38, 88, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--mtb-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #fff; }
a { transition: color .2s ease, background .2s ease, transform .2s ease; }
.btn-primary { --bs-btn-bg: var(--mtb-blue); --bs-btn-border-color: var(--mtb-blue); --bs-btn-hover-bg: #0c55ca; --bs-btn-hover-border-color: #0c55ca; font-weight: 700; }

.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(219, 229, 240, .85); backdrop-filter: blur(16px); }
.site-header .navbar { min-height: 78px; }
.header-brand { display: flex; width: 236px; height: 60px; padding: 0; align-items: center; }
.header-logo-frame { position: relative; display: block; width: 236px; height: 60px; overflow: hidden; }
.header-brand-logo { display: block; width: 236px; max-width: 100%; height: auto; }
.brand-lockup { display: inline-flex; align-items: center; gap: .65rem; color: var(--mtb-navy); font-size: 1.13rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand-lockup > span:last-child > span { color: var(--mtb-blue); }
.brand-mark { position: relative; display: inline-grid; width: 42px; height: 42px; overflow: hidden; place-items: center; }
.brand-symbol { width: 58px; max-width: none; height: 58px; object-fit: contain; }
.site-header .nav-link { position: relative; padding: .65rem .9rem !important; color: #52627a; font-weight: 650; font-size: .92rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--mtb-blue); }
.site-header .nav-link.active::after { position: absolute; right: .9rem; bottom: .15rem; left: .9rem; height: 2px; content: ""; border-radius: 4px; background: var(--mtb-blue); }
.login-link { color: var(--mtb-navy); font-weight: 700; }

.hero-section { position: relative; overflow: hidden; padding: 5.25rem 0 6.4rem; color: white; background: radial-gradient(circle at 82% 12%, rgba(37,99,235,.9), transparent 32%), linear-gradient(125deg, #0f172a 0%, #172554 48%, #2563eb 100%); }
.hero-section::before { position: absolute; inset: 0; content: ""; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.hero-orb-one { width: 420px; height: 420px; top: -220px; right: -80px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.hero-orb-two { width: 220px; height: 220px; bottom: 40px; left: -110px; }
.hero-copy-row { min-height: 350px; padding-bottom: 3.5rem; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .55rem; color: #67e8f9; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: #75daf5; }
.hero-section h1 { max-width: 760px; margin: 1.1rem 0 1.25rem; font-size: clamp(3rem, 5.5vw, 5rem); font-weight: 780; line-height: .98; letter-spacing: -.058em; }
.hero-section h1 span { color: #67e8f9; }
.hero-lead { max-width: 670px; margin-bottom: 1.75rem; color: rgba(255,255,255,.77); font-size: 1.14rem; line-height: 1.7; }
.hero-proof { color: rgba(255,255,255,.7); font-size: .86rem; }
.hero-proof strong { margin-right: .25rem; color: white; }

.route-visual { position: relative; width: 350px; height: 320px; margin-left: auto; }
.route-visual::before { position: absolute; inset: 10px 34px 38px 16px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transform: rotate(-12deg); }
.route-card { position: absolute; z-index: 2; width: 190px; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(3,33,79,.55); box-shadow: 0 18px 38px rgba(1,17,47,.26); backdrop-filter: blur(12px); }
.route-card small { display: block; color: #7cdcf7; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.route-card strong { display: block; margin: .15rem 0 .35rem; font-size: 1.15rem; }
.route-card span { color: rgba(255,255,255,.65); font-size: .78rem; }
.route-card-top { top: 20px; left: 12px; }
.route-card-bottom { right: 4px; bottom: 42px; }
.flight-path { position: absolute; top: 91px; left: 118px; width: 145px; height: 110px; border-top: 2px dashed rgba(124,220,247,.7); border-radius: 50%; transform: rotate(28deg); }
.plane { position: absolute; top: -15px; right: -5px; display: inline-grid; place-items: center; width: 34px; height: 34px; color: #073d8f; border-radius: 50%; background: #8be6fa; transform: rotate(-28deg); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.visual-badge { position: absolute; bottom: 3px; left: 62px; padding: .58rem .85rem; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.08); font-size: .72rem; }

.search-shell { position: relative; z-index: 4; color: var(--mtb-text); border-radius: 22px; background: white; box-shadow: var(--mtb-shadow); }
.trip-switcher { display: flex; gap: 1.6rem; height: 56px; padding: 0 1.65rem; border-bottom: 1px solid var(--mtb-line); }
.trip-option { position: relative; padding: 0 .1rem; color: var(--mtb-muted); border: 0; background: transparent; font-size: .86rem; font-weight: 750; }
.trip-option.active { color: var(--mtb-blue); }
.trip-option.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; content: ""; border-radius: 5px 5px 0 0; background: var(--mtb-blue); }
.flight-search { display: grid; grid-template-columns: 1.25fr 40px 1.25fr .85fr .85fr 1fr 1.08fr; align-items: stretch; padding: 1rem; }
.search-field { min-width: 0; padding: .5rem 1rem; border-right: 1px solid var(--mtb-line); }
.search-field label { display: block; margin-bottom: .26rem; color: var(--mtb-muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-field input, .search-field select { width: 100%; padding: 0; color: var(--mtb-navy); border: 0; outline: 0; background: transparent; font-size: 1rem; font-weight: 750; }
.search-field select { appearance: none; font-size: .83rem; }
.search-field input[type="date"] { font-size: .86rem; }
.search-field small { display: block; overflow: hidden; margin-top: .28rem; color: #94a0b1; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.field-input-wrap { display: flex; align-items: center; gap: .45rem; }
.field-icon { color: var(--mtb-blue); }
.swap-button { align-self: center; width: 34px; height: 34px; color: var(--mtb-blue); border: 1px solid #cfe0f6; border-radius: 50%; background: #f2f8ff; font-weight: 800; }
.swap-button:hover { color: white; background: var(--mtb-blue); transform: rotate(180deg); }
.search-button { margin-left: .7rem; padding: .8rem 1rem; color: white; border: 0; border-radius: 14px; background: linear-gradient(135deg, #1977ef, #0757cc); box-shadow: 0 10px 22px rgba(18,100,232,.24); font-weight: 800; }
.search-button:hover { transform: translateY(-1px); box-shadow: 0 14px 25px rgba(18,100,232,.31); }
.search-button span { margin-right: .25rem; font-size: 1.25rem; }
.search-notice { display: none; margin: 0 1rem 1rem; padding: .8rem 1rem; color: #0d518f; border: 1px solid #b9ddf8; border-radius: 10px; background: #edf8ff; font-size: .83rem; }

.trust-strip { position: relative; z-index: 5; padding: 2rem 0; border-bottom: 1px solid var(--mtb-line); background: white; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { color: var(--mtb-navy); font-size: .89rem; }
.trust-strip small { margin-top: .18rem; color: var(--mtb-muted); font-size: .72rem; }
.trust-label { color: var(--mtb-blue); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-space { padding: 6.2rem 0; background: #f8fbff; }
.section-heading { max-width: 680px; }
.section-kicker { color: var(--mtb-blue); }
.section-heading h2, .ready-panel h2 { margin: .8rem 0 1rem; color: var(--mtb-navy); font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -.045em; }
.section-heading p { color: var(--mtb-muted); line-height: 1.7; }
.benefit-card { position: relative; overflow: hidden; padding: 2.1rem; border: 1px solid #e1e9f3; border-radius: 22px; background: white; box-shadow: 0 12px 32px rgba(7,29,66,.04); transition: transform .25s, box-shadow .25s; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(7,29,66,.09); }
.benefit-card.featured { border-color: #c4dcfb; box-shadow: 0 18px 40px rgba(18,100,232,.09); }
.benefit-number { position: absolute; top: 1.5rem; right: 1.6rem; color: #d9e5f2; font-size: 2rem; font-weight: 850; }
.benefit-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1.5rem; color: var(--mtb-blue); border-radius: 15px; background: var(--mtb-sky); font-size: 1.45rem; }
.benefit-card h3 { color: var(--mtb-navy); font-size: 1.18rem; font-weight: 780; }
.benefit-card p { min-height: 76px; color: var(--mtb-muted); font-size: .9rem; line-height: 1.7; }
.feature-status { color: var(--mtb-blue); font-size: .72rem; font-weight: 800; }
.ready-section { padding: 0 0 6rem; background: #f8fbff; }
.ready-panel { position: relative; overflow: hidden; padding: 3.2rem 3.5rem; color: rgba(255,255,255,.76); border-radius: 26px; background: linear-gradient(120deg, #0f172a, #2563eb); box-shadow: 0 24px 60px rgba(15,23,42,.2); }
.ready-panel::after { position: absolute; right: -80px; bottom: -150px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.035); }
.ready-panel > * { position: relative; z-index: 1; }
.ready-panel h2 { color: white; }
.section-kicker.light { color: #82dff7; }

.site-footer { padding-top: 4.5rem; color: #94a3b8; background: #0f172a; }
.footer-brand { color: white; }
.footer-intro { max-width: 440px; line-height: 1.7; }
.footer-heading { margin-bottom: 1.2rem; color: white; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-footer a:not(.brand-lockup) { display: block; margin-bottom: .65rem; color: #9aa8ba; font-size: .83rem; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .73rem; }

.auth-page { min-height: 680px; padding: 6rem 0; background: radial-gradient(circle at 50% -20%, #dcedff, transparent 45%), #f7faff; }
.auth-card { max-width: 510px; padding: 3rem; border: 1px solid #dfE9f5; border-radius: 24px; background: white; box-shadow: 0 22px 55px rgba(7,29,66,.09); }
.auth-card h1 { margin: .7rem 0; color: var(--mtb-navy); font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; }
.auth-card p { color: var(--mtb-muted); line-height: 1.7; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1.2rem; color: white; border-radius: 16px; background: var(--mtb-blue); font-size: 1.4rem; }
.placeholder-fields { display: grid; gap: .75rem; margin: 1.5rem 0; text-align: left; }
.placeholder-fields div { padding: .9rem 1rem; color: #a0abba; border: 1px solid var(--mtb-line); border-radius: 10px; background: #fbfdff; font-size: .85rem; }
.auth-back { display: inline-block; margin-top: 1.4rem; color: var(--mtb-blue); font-size: .82rem; font-weight: 700; text-decoration: none; }

.error-body { display: grid; min-height: 100vh; place-items: center; padding: 2rem; background: radial-gradient(circle at top, #e9f4ff, #f8fbff 48%, #eef3f9); }
.error-card { width: min(580px, 100%); padding: 3.5rem; text-align: center; border: 1px solid var(--mtb-line); border-radius: 28px; background: white; box-shadow: var(--mtb-shadow); }
.error-code { color: var(--mtb-blue); font-size: .75rem; font-weight: 850; letter-spacing: .2em; }
.error-symbol { display: grid; width: 64px; height: 64px; margin: 1.2rem auto; place-items: center; color: white; border-radius: 20px; background: var(--mtb-blue); font-size: 1.8rem; }
.error-card h1 { color: var(--mtb-navy); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.error-card p { margin: 1rem auto 1.5rem; color: var(--mtb-muted); line-height: 1.7; }
.debug-message { margin-bottom: 1.5rem; padding: .8rem; color: #8b2931; border-radius: 8px; background: #fff0f1; font-size: .8rem; }

@media (max-width: 1199.98px) {
    .flight-search { grid-template-columns: 1fr 40px 1fr 1fr; gap: .4rem 0; }
    .search-field { border-bottom: 1px solid var(--mtb-line); }
    .search-button { min-height: 62px; }
}
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0 .4rem; border-top: 1px solid var(--mtb-line); }
    .site-header .nav-link.active::after { display: none; }
    .hero-section { padding-top: 3.5rem; }
    .hero-copy-row { min-height: auto; }
    .hero-section h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
}
@media (max-width: 767.98px) {
    .header-brand, .header-logo-frame { width: 200px; height: 52px; }
    .header-brand-logo { width: 200px; }
    .hero-section { padding-bottom: 3.5rem; }
    .hero-copy-row { padding-bottom: 2.5rem; }
    .hero-section h1 { font-size: 2.9rem; }
    .hero-lead { font-size: 1rem; }
    .hero-proof { gap: .7rem 1.2rem !important; }
    .search-shell { border-radius: 18px; }
    .trip-switcher { gap: 1rem; overflow-x: auto; padding: 0 1rem; }
    .trip-option { flex-shrink: 0; }
    .flight-search { grid-template-columns: 1fr; padding: .7rem; }
    .search-field { padding: .8rem; border-right: 0; }
    .swap-button { z-index: 2; justify-self: end; margin: -18px 10px -18px 0; transform: rotate(90deg); }
    .swap-button:hover { transform: rotate(270deg); }
    .search-button { min-height: 54px; margin: .7rem 0 0; }
    .section-space { padding: 4rem 0; }
    .ready-section { padding-bottom: 4rem; }
    .ready-panel { padding: 2.3rem 1.5rem; border-radius: 20px; }
    .site-footer { padding-top: 3.5rem; }
    .auth-page { padding: 3rem 0; }
    .auth-card, .error-card { padding: 2rem 1.3rem; }
}
