/* TREK marketing site — plain CSS version of app/globals.css */
:root { color-scheme: dark; --background: #050511; --foreground: #f8fbff; --border: rgba(170,194,255,.2); --muted-foreground: #9aa7c2; --radius: .75rem; --trek-blue: #0086ff; --trek-cyan: #26d9ff; --trek-violet: #7566ff; --trek-pink: #ff4d9d; --trek-amber: #ffbd4a; --trek-ink: #050511; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #050511; color: #f8fbff; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.trek-site { overflow: hidden; background: var(--trek-ink); background-image: radial-gradient(circle at 12% 3%, rgba(117,102,255,.18), transparent 28rem), radial-gradient(circle at 86% 12%, rgba(0,134,255,.15), transparent 32rem); }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(24px, 5vw, 80px); }
.brand, .footer-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: .22em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #26d9ff; border-radius: 50%; color: #26d9ff; font-size: 13px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; color: #aeb8bd; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .text-link:hover { color: #26d9ff; }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; color: #f4f6f5; }
.nav-cta svg, .button svg { width: 15px; }
.menu-button { display: none; border: 0; background: transparent; color: white; }
.hero-section { position: relative; min-height: 900px; display: grid; align-items: center; padding: 140px clamp(24px, 8vw, 140px) 100px; background: radial-gradient(circle at 70% 45%, rgba(0,134,255,.27) 0, rgba(25,18,71,.8) 34%, #050511 72%); }
.hero-section:after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: repeating-linear-gradient(105deg, transparent 0 70px, rgba(38,217,255,.2) 71px 73px, transparent 74px 150px); opacity: .4; transform: perspective(500px) rotateX(62deg); transform-origin: bottom; pointer-events: none; }
.hero-copy { position: relative; z-index: 4; max-width: 620px; }
.new-badge { display: inline-block; margin-left: 10px; padding: 4px 7px; border: 1px solid #ffbd4a; border-radius: 999px; color: #ffbd4a; font-size: 8px; letter-spacing: .12em; vertical-align: middle; }
.eyebrow, .section-kicker { color: #26d9ff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #26d9ff; border-radius: 50%; box-shadow: 0 0 0 5px rgba(182,243,108,.1); }
h1, h2, h3, p { margin: 0; }
h1 { margin: 23px 0 27px; font-size: clamp(66px, 9vw, 142px); line-height: .86; letter-spacing: -.08em; font-weight: 500; }
h1 em, h2 em { color: #26d9ff; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.09em; }
.hero-intro { max-width: 390px; color: #aeb8bd; font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-light { background: #f4f6f5; color: #081015; }
.button-dark { background: #0b1216; color: #f4f6f5; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #aeb8bd; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.text-link svg { width: 14px; }
.hero-scene { position: absolute; inset: 0; overflow: hidden; perspective: 950px; }
.scroll-cue { position: absolute; bottom: 40px; left: clamp(24px, 8vw, 140px); display: flex; align-items: center; gap: 12px; color: #7b8a8e; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue svg { width: 14px; color: #26d9ff; }
.statement-section, .feature-section, .trust-section { padding: 140px clamp(24px, 8vw, 140px); }
.statement-section { background: linear-gradient(135deg, #0d1230 0%, #111a49 52%, #071b34 100%); color: #f8fbff; }
.statement-section .section-kicker, .trust-section .section-kicker { color: #5f7b54; }
.statement-grid, .feature-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-top: 30px; }
.statement-grid h2, .feature-heading h2, .trust-copy h2, .download-content h2 { font-size: clamp(52px, 7vw, 105px); line-height: .88; letter-spacing: -.08em; font-weight: 500; }
.statement-grid h2 span, .feature-heading h2 em, .trust-copy h2 em, .download-content h2 em { color: #6f8f60; font-family: Georgia, serif; font-weight: 400; }
.statement-grid p, .feature-heading p { max-width: 330px; color: #566267; line-height: 1.6; font-size: 16px; }
.route-card { margin-top: 95px; padding: 25px 30px 33px; background: #dce5db; border: 1px solid #cbd5cb; }
.route-head { display: flex; justify-content: space-between; padding-bottom: 30px; color: #658160; font-size: 10px; letter-spacing: .15em; }
.route-line { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; }
.station { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: center; }
.station-dot { grid-row: span 2; width: 12px; height: 12px; border: 2px solid #678765; border-radius: 50%; }
.station-dot.filled { background: #678765; }
.station strong { font-size: 16px; font-weight: 500; }
.station small { color: #6a7974; font-size: 11px; }
.station-end { justify-items: end; text-align: right; }
.station-end .station-dot { grid-column: 2; }
.station-end strong, .station-end small { grid-column: 1; grid-row: 1; }
.station-end small { grid-row: 2; }
.route-track { height: 3px; position: relative; background: #a1b59e; }
.route-progress { display: block; width: 55%; height: 3px; background: #557950; }
.moving-dot { position: absolute; left: 55%; top: -5px; width: 13px; height: 13px; background: #26d9ff; border: 3px solid #557950; border-radius: 50%; }
.feature-section { background: #070717; }
.feature-heading { margin-bottom: 75px; }
.feature-heading p { color: #95a5a7; }
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 15px; }
.feature-card { min-height: 420px; position: relative; padding: 27px; background: #18282d; overflow: hidden; }
.feature-card-tall { background: #203a3b; }
.feature-card svg { width: 25px; height: 25px; color: #26d9ff; }
.feature-number { position: absolute; right: 27px; color: #74918e; font-size: 11px; }
.feature-card h3 { margin-top: 75px; font-size: 27px; letter-spacing: -.04em; font-weight: 500; }
.feature-card p { max-width: 230px; margin-top: 12px; color: #91a1a3; line-height: 1.5; font-size: 14px; }
.mini-map { position: absolute; inset: auto 25px 28px; height: 110px; border-bottom: 1px solid #6e8a81; background: radial-gradient(circle at 20% 30%, rgba(182,243,108,.16), transparent 20%), radial-gradient(circle at 80% 70%, rgba(182,243,108,.12), transparent 25%); }
.map-line { position: absolute; left: 13%; right: 15%; top: 50%; border-top: 1px dashed #26d9ff; transform: rotate(-17deg); }
.map-pin { position: absolute; width: 9px; height: 9px; background: #26d9ff; border: 3px solid #203a3b; border-radius: 50%; }
.pin-a { top: 69%; left: 13%; }
.pin-b { top: 42%; left: 52%; }
.pin-c { top: 17%; right: 15%; }
.ticket-ui { position: absolute; right: 26px; bottom: 28px; left: 26px; padding: 17px; border: 1px solid #5b7578; background: #102126; }
.ticket-ui span { color: #26d9ff; font-size: 10px; letter-spacing: .13em; }
.ticket-ui b { display: block; margin-top: 12px; font-size: 31px; font-weight: 400; letter-spacing: -.07em; }
.ticket-ui small { color: #83989b; font-size: 10px; }
.signal-bars { position: absolute; right: 28px; bottom: 45px; display: flex; align-items: end; gap: 6px; height: 70px; }
.signal-bars i { display: block; width: 11px; background: #26d9ff; }
.signal-bars i:nth-child(1) { height: 15px; opacity: .3; }
.signal-bars i:nth-child(2) { height: 28px; opacity: .5; }
.signal-bars i:nth-child(3) { height: 42px; opacity: .7; }
.signal-bars i:nth-child(4) { height: 56px; opacity: .85; }
.signal-bars i:nth-child(5) { height: 70px; }
.trust-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; background: #dbe4da; color: #10191d; }
.trust-copy p { max-width: 360px; margin: 30px 0 35px; color: #586862; line-height: 1.6; }
.trust-stats { display: flex; flex-direction: column; gap: 35px; justify-content: center; }
.trust-stats div { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.trust-stats svg { grid-row: span 2; color: #628258; }
.trust-stats strong { font-size: 16px; font-weight: 500; }
.trust-stats span { color: #62736d; font-size: 13px; }
.download-section { position: relative; min-height: 640px; display: grid; place-items: center; overflow: hidden; background: #26d9ff; color: #10191d; text-align: center; }
.download-content { position: relative; z-index: 2; }
.eyebrow-dark { color: #45613d; }
.download-content h2 { margin: 25px 0; }
.download-content h2 em { color: #45613d; }
.download-content > p:not(.eyebrow) { color: #45613d; font-size: 16px; }
.store-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 35px; }
.store-button { display: flex; flex-direction: column; align-items: flex-start; min-width: 180px; padding: 13px 18px; background: #10191d; color: white; text-align: left; }
.store-button small { color: #9baa9c; font-size: 9px; letter-spacing: .08em; }
.store-button strong { margin-top: 3px; font-size: 16px; font-weight: 500; }
.download-orbit { position: absolute; width: 620px; height: 620px; border: 1px solid rgba(16,25,29,.18); border-radius: 50%; }
.orbit-one { transform: rotate(28deg) scaleY(.55); }
.orbit-two { transform: rotate(-28deg) scaleY(.55); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 20px; padding: 38px clamp(24px, 8vw, 140px); background: #070b10; color: #829092; font-size: 11px; }
.footer-brand { color: #f4f6f5; font-size: 16px; }
.footer-brand small { margin-left: 15px; color: #647376; font-size: 10px; letter-spacing: 0; font-weight: 400; }
.footer-brand b { color: #26d9ff; font-weight: 500; }
.footer-links { display: flex; justify-content: center; gap: 22px; }
.footer-links a:hover { color: #26d9ff; }
.site-footer p { justify-self: end; }
.button { cursor: pointer; border: 0; }
.button-blue { background: #0086ff; color: #fff; }
.button-blue:hover { background: #006ed6; }
.booking-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(2, 9, 13, .76); backdrop-filter: blur(16px); animation: fade-in .25s ease both; }
.booking-panel { position: relative; width: min(650px, 100%); padding: clamp(28px, 5vw, 58px); background: #f9fafb; color: #1f2937; box-shadow: 0 30px 100px rgba(0,0,0,.45); animation: panel-in .45s cubic-bezier(.2,.8,.2,1) both; }
.booking-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d8dee5; border-radius: 50%; background: transparent; color: #1f2937; cursor: pointer; }
.booking-close:hover { background: #e1edf7; }
.booking-kicker { display: flex; align-items: center; gap: 10px; color: #0086ff; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.booking-kicker svg { width: 20px; }
.booking-panel h2 { margin: 23px 0 32px; font-size: clamp(46px, 8vw, 78px); line-height: .88; letter-spacing: -.08em; font-weight: 500; }
.booking-panel h2 em, .booking-confirmed h2 em { color: #0086ff; font-family: Georgia, serif; font-weight: 400; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-fields label { display: flex; flex-direction: column; gap: 8px; color: #6b7280; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.booking-fields select, .fake-input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #dfe5eb; border-radius: 8px; background: #fff; color: #1f2937; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.fake-input { display: flex; align-items: center; gap: 9px; }
.fake-input svg { width: 17px; color: #0086ff; }
.booking-submit { width: 100%; justify-content: center; margin-top: 24px; }
.booking-note { margin-top: 14px; color: #9ca3af; text-align: center; font-size: 12px; }
.booking-confirmed { text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 23px; border-radius: 50%; background: #e1edf7; color: #0086ff; }
.confirm-icon svg { width: 27px; }
.booking-confirmed p:not(.eyebrow) { max-width: 340px; margin: -5px auto 28px; color: #6b7280; line-height: 1.6; }
.booking-confirmed .button { margin-inline: auto; }
.legal-page { min-height: 100vh; background: #050511; color: #f8fbff; }
.legal-nav { display: flex; justify-content: space-between; align-items: center; padding: 28px clamp(24px, 8vw, 140px); border-bottom: 1px solid rgba(170,194,255,.16); }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2em; }
.legal-back { color: #26d9ff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.legal-content { max-width: 860px; padding: 110px 24px 130px; margin: 0 auto; }
.legal-content h1 { max-width: 700px; margin: 20px 0 22px; font-size: clamp(54px, 8vw, 105px); }
.legal-intro { max-width: 590px; color: #9aa7c2; font-size: 19px; line-height: 1.55; }
.legal-sections { display: grid; gap: 0; margin-top: 90px; }
.legal-sections section { padding: 28px 0; border-top: 1px solid rgba(170,194,255,.16); }
.legal-sections h2 { margin: 0 0 12px; color: #26d9ff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.legal-sections p { max-width: 680px; color: #b8c2d6; line-height: 1.75; }
.legal-updated { margin-top: 60px; color: #697693; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 800px) {
.hero-section { min-height: 790px; padding-top: 160px; align-items: start; }
.hero-scene { opacity: .8; }
.hero-copy { max-width: 100%; }
.hero-intro { font-size: 15px; }
.nav-links { display: none; position: absolute; top: 75px; right: 24px; left: 24px; padding: 22px; flex-direction: column; align-items: stretch; gap: 18px; background: #0d181c; border: 1px solid var(--border); }
#menu-toggle:checked ~ .site-nav .nav-links { display: flex; }
.menu-button { display: block; }
.statement-grid, .feature-heading, .trust-section { grid-template-columns: 1fr; gap: 30px; }
.statement-section, .feature-section, .trust-section { padding-top: 90px; padding-bottom: 90px; }
.route-card { margin-top: 60px; padding: 20px 16px; }
.route-line { grid-template-columns: 1fr; gap: 18px; }
.route-track { order: 3; margin-left: 7px; margin-right: 7px; }
.station-end { justify-items: start; text-align: left; }
.station-end .station-dot { grid-column: 1; }
.station-end strong, .station-end small { grid-column: 2; grid-row: auto; }
.feature-grid { grid-template-columns: 1fr; }
.feature-card { min-height: 360px; }
.site-footer { grid-template-columns: 1fr; gap: 24px; }
.footer-links { justify-content: flex-start; flex-wrap: wrap; }
.site-footer p { justify-self: start; }
.footer-brand { flex-wrap: wrap; }
.footer-brand small { width: 100%; margin: 8px 0 0; }
.store-buttons { flex-direction: column; align-items: center; }
.store-button { min-width: 220px; } }
/* ===== Static HTML additions (CSS-only interactions, no JavaScript) ===== */
.sr-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
svg { flex: none; }
.i { width: 24px; height: 24px; }
:focus-visible { outline: 2px solid var(--trek-cyan); outline-offset: 3px; }/* Mobile menu: checkbox + label */
.menu-button { cursor: pointer; }
.menu-button .i-close { display: none; }
#menu-toggle:checked ~ .site-nav .menu-button .i-open { display: none; }
#menu-toggle:checked ~ .site-nav .menu-button .i-close { display: block; }
#menu-toggle:focus-visible ~ .site-nav .menu-button { outline: 2px solid var(--trek-cyan); outline-offset: 3px; }/* Booking dialog: opened with #book, confirmed with #booked (:target) */
.booking-backdrop { display: none; }
.booking-backdrop:target { display: grid; }
.backdrop-dismiss { position: absolute; inset: 0; }
.booking-panel { z-index: 1; }/* Legal + contact pages */
.legal-page { display: flex; flex-direction: column; }
.legal-page .legal-content { flex: 1; width: 100%; }
.legal-links { display: flex; align-items: center; gap: 24px; color: #9aa7c2; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.legal-links a:hover, .legal-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: #26d9ff; }
.legal-sections h2 { margin: 0; }
.legal-sections section > * + * { margin-top: 14px; }
.legal-sections h3 { color: #f8fbff; font-size: 15px; font-weight: 600; }
.legal-sections ul, .legal-sections ol { max-width: 680px; margin-bottom: 0; padding-left: 20px; display: grid; gap: 8px; color: #b8c2d6; line-height: 1.7; }
.legal-sections li::marker { color: #26d9ff; }
.legal-sections a { color: #26d9ff; }
.legal-sections a:hover { text-decoration: underline; }
.legal-sections strong { color: #f8fbff; font-weight: 600; }
.callout { max-width: 680px; padding: 16px 18px; border: 1px solid rgba(38,217,255,.3); border-radius: 12px; background: rgba(0,134,255,.08); color: #d6e2f7; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 70px; }
.contact-card { display: grid; gap: 8px; align-content: start; padding: 26px; border: 1px solid rgba(170,194,255,.16); border-radius: 14px; background: rgba(13,18,48,.6); transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: #26d9ff; transform: translateY(-3px); }
.contact-card svg { width: 22px; height: 22px; color: #26d9ff; margin-bottom: 10px; }
.contact-card small { color: #697693; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.contact-card b { font-size: 17px; font-weight: 500; line-height: 1.45; }
.legal-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 800px) {
.legal-links { display: none; }
.contact-grid { grid-template-columns: 1fr; }
.legal-content { padding-top: 70px; }
.legal-sections { margin-top: 60px; }
}

.hero-copy > * { animation: hero-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }
h1 em { background: linear-gradient(90deg, #26d9ff, #7566ff 35%, #26d9ff 60%, #ff4d9d 85%, #26d9ff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hero-shimmer 7s linear infinite; padding-right: .08em; }
@keyframes hero-shimmer { to { background-position: -250% 0; } }
@media (prefers-reduced-motion: reduce) {
.hero-scene *, .hero-scene *::before, .hero-scene *::after, .hero-copy > *, h1 em { animation: none !important; }
}
/* Statement route card: station names were white on a light card */
.route-card .station strong { color: #10191d; }
.route-card .station small { color: #4f6158; }


/* ===== Hero scene: side view, the TREK train glides while the night city streams past ===== */
.hs { --track-y: 9%; }
.hs-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #050511 0%, #0d0b33 38%, #16206a 68%, #1b3b8a 82%, #0b1530 100%); overflow: hidden; }
.hs-aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.hs-aurora.a1 { width: 60vw; height: 30vh; left: 30%; top: 8%; background: radial-gradient(circle, rgba(38,217,255,.55), transparent 70%); animation: hs-aurora 18s ease-in-out infinite alternate; }
.hs-aurora.a2 { width: 50vw; height: 26vh; left: 55%; top: 22%; background: radial-gradient(circle, rgba(117,102,255,.6), transparent 70%); animation: hs-aurora 24s ease-in-out infinite alternate-reverse; }
@keyframes hs-aurora { to { transform: translate(-12vw, 4vh) scale(1.2); } }
.hs-stars { position: absolute; inset: 0 0 40% 0; background-image:
  radial-gradient(1.5px 1.5px at 8% 14%, #fff, transparent), radial-gradient(1px 1px at 18% 30%, #cfe8ff, transparent),
  radial-gradient(1.5px 1.5px at 33% 9%, #fff, transparent), radial-gradient(1px 1px at 47% 22%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 61% 6%, #bfe9ff, transparent), radial-gradient(1px 1px at 72% 26%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 86% 12%, #fff, transparent), radial-gradient(1px 1px at 93% 34%, #cfe8ff, transparent),
  radial-gradient(1px 1px at 26% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 38%, #fff, transparent);
  animation: hs-twinkle 4s ease-in-out infinite alternate; }
@keyframes hs-twinkle { from { opacity: .4; } to { opacity: 1; } }
.hs-moon { position: absolute; top: 13%; right: 14%; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fbfff2, #d6ecc9 60%, #b9d3b0); box-shadow: 0 0 60px rgba(214,236,201,.45), 0 0 160px rgba(38,217,255,.18); }

/* Parallax layers: each holds two identical tiles and slides left by one tile */
.hs-layer { position: absolute; left: 0; width: 200%; display: flex; pointer-events: none; animation: hs-scroll linear infinite; }
.hs-layer svg { width: 50%; height: 100%; flex: none; display: block; }
@keyframes hs-scroll { to { transform: translateX(-50%); } }
.hs-far   { bottom: calc(var(--track-y) + 70px); height: 26%; opacity: .55; animation-duration: 120s; }
.hs-hills { bottom: calc(var(--track-y) + 40px); height: 22%; animation-duration: 70s; }
.hs-city  { bottom: calc(var(--track-y) + 34px); height: 30%; animation-duration: 38s; filter: drop-shadow(0 -2px 12px rgba(38,217,255,.12)); }
.hs-blink { animation: hs-blink 1.6s steps(1) infinite; }
@keyframes hs-blink { 50% { opacity: .15; } }

/* Overhead wire and catenary poles rushing past behind the train */
.hs-wire { position: absolute; left: 0; right: 0; bottom: calc(var(--track-y) + 210px); height: 2px; background: linear-gradient(90deg, transparent, rgba(160,180,210,.45) 15%, rgba(160,180,210,.45) 85%, transparent); }
.hs-poles { position: absolute; left: 0; right: 0; bottom: calc(var(--track-y) + 18px); height: 200px;
  background: linear-gradient(90deg, transparent 0 calc(100% - 5px), #3a4766 calc(100% - 5px)) 0 0 / 320px 100% repeat-x,
              linear-gradient(90deg, transparent 0 calc(100% - 46px), #3a4766 calc(100% - 46px)) 0 4px / 320px 3px repeat-x;
  animation: hs-poles .9s linear infinite; opacity: .85; }
@keyframes hs-poles { to { background-position: -320px 0, -320px 4px; } }

/* Train */
.hs-trainset { position: absolute; right: -6%; bottom: calc(var(--track-y) + 8px); width: min(1180px, 92vw); animation: hs-ride 2.4s ease-in-out infinite; }
.hs-train { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
@keyframes hs-ride { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.hs-wheel { animation: hs-spin .5s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-win { animation: hs-win 4s ease-in-out infinite; }
@keyframes hs-win { 50% { opacity: .78; } }
.hs-stripe { animation: hs-stripe 2s ease-in-out infinite; }
@keyframes hs-stripe { 50% { opacity: .45; } }
.hs-lamp { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px #26d9ff); }
.hs-beam { position: absolute; right: -38%; bottom: 14%; width: 44%; height: 110px; background: linear-gradient(90deg, rgba(220,250,255,.65), rgba(38,217,255,.15) 50%, transparent); clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); filter: blur(3px); animation: hs-beam 2.6s ease-in-out infinite alternate; }
@keyframes hs-beam { from { opacity: .65; } to { opacity: 1; } }
.hs-glow { position: absolute; left: 4%; right: 0; bottom: -18px; height: 30px; background: radial-gradient(ellipse at center, rgba(38,217,255,.35), transparent 70%); filter: blur(6px); }

/* Track: rails stay put, sleepers stream past */
.hs-track { position: absolute; left: 0; right: 0; bottom: var(--track-y); height: 18px; border-top: 3px solid #8fa3c4; border-bottom: 2px solid #4a5878; background: #0c1222; overflow: hidden; }
.hs-sleepers { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #3b2f28 0 10px, transparent 10px 34px); animation: hs-sleepers .32s linear infinite; }
@keyframes hs-sleepers { to { transform: translateX(-34px); } }
.hs-ground { position: absolute; left: 0; right: 0; bottom: 0; height: var(--track-y); background: linear-gradient(180deg, #0a1020, #050511); }
.hs-speed { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--track-y) + 60px); pointer-events: none;
  background: linear-gradient(90deg, transparent 0 60%, rgba(38,217,255,.5) 60% 64%, transparent 64%) 0 70% / 700px 2px repeat-x,
              linear-gradient(90deg, transparent 0 20%, rgba(255,255,255,.35) 20% 23%, transparent 23%) 0 35% / 900px 1px repeat-x,
              linear-gradient(90deg, transparent 0 75%, rgba(117,102,255,.5) 75% 79%, transparent 79%) 0 88% / 560px 2px repeat-x;
  animation: hs-speed .55s linear infinite; }
@keyframes hs-speed { to { background-position: -700px 70%, -900px 35%, -560px 88%; } }

/* Route chip */
.hs-route { position: absolute; right: 7%; top: 30%; display: grid; grid-template-columns: auto 120px auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(38,217,255,.25); border-radius: 14px; background: rgba(5,5,17,.45); backdrop-filter: blur(10px); color: #c7d4f2; font-size: 11px; letter-spacing: .16em; }
.hs-route i { position: relative; height: 2px; background: rgba(38,217,255,.25); border-radius: 2px; }
.hs-route b { position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #26d9ff; box-shadow: 0 0 12px #26d9ff; animation: hs-route 6s ease-in-out infinite; }
@keyframes hs-route { 0% { left: 0; } 80%, 100% { left: calc(100% - 10px); } }
.hs-route small { grid-column: 1 / -1; color: #6f7fa6; font-size: 9px; letter-spacing: .2em; }

@media (max-width: 800px) {
  .hs { --track-y: 7%; }
  .hs-trainset { right: -40%; width: 150vw; }
  .hs-route { top: auto; bottom: 38%; right: 24px; }
  .hs-poles { height: 150px; }
  .hs-wire { bottom: calc(var(--track-y) + 160px); }
}
.hero-section:after { display: none; }
.hs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,17,.72) 0%, rgba(5,5,17,.35) 38%, transparent 60%); pointer-events: none; }
@media (max-width: 800px) {
  .hs-route { display: none; }
  .hs::after { background: linear-gradient(180deg, rgba(5,5,17,.55) 0%, rgba(5,5,17,.2) 55%, transparent 70%); }
}


/* =====================================================================
   LIGHT THEME — matches the "How it works" demo: sky-blue, white cards,
   ink text, TREK blue accents. Overrides the original dark styles above.
   ===================================================================== */
:root { color-scheme: light; --background: #f5f9ff; --foreground: #0f172a; --border: #e2e8f0; --muted-foreground: #64748b; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --blue: #0086ff; --blue-dark: #006fd6; --blue-soft: #e6f3ff; }
body { background: #f5f9ff; color: var(--ink); font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif; }
.trek-site { background: #f5f9ff; background-image: radial-gradient(circle at 12% 3%, rgba(0,134,255,.08), transparent 28rem), radial-gradient(circle at 86% 12%, rgba(117,102,255,.06), transparent 32rem); }
.grain { display: none; }
h1 { font-weight: 700; letter-spacing: -.06em; }
h1 em { background: linear-gradient(90deg, #0086ff, #7566ff 35%, #0086ff 60%, #26b5ff 85%, #0086ff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 em, .statement-grid h2 span, .feature-heading h2 em, .trust-copy h2 em { color: var(--blue); }
.eyebrow, .section-kicker, .statement-section .section-kicker, .trust-section .section-kicker { color: var(--blue); font-weight: 700; }
.live-dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(0,134,255,.12); }

/* Navigation */
.brand, .footer-brand, .legal-brand { color: var(--ink); }
.brand-mark { border-color: var(--blue); color: var(--blue); }
.nav-links { color: #475569; font-weight: 600; }
.nav-links a:hover, .text-link:hover { color: var(--blue); }
.nav-cta { border-color: #cbd5e1; color: var(--ink); background: rgba(255,255,255,.7); }
.menu-button { color: var(--ink); }
@media (max-width: 800px) { .nav-links { background: #fff; border-color: var(--line); box-shadow: 0 20px 40px rgba(15,23,42,.12); } }

/* Hero copy + buttons */
.hero-section { background: none; }
.hero-intro { color: #475569; }
.button-light { background: var(--blue); color: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,134,255,.28); }
.button-light:hover { background: var(--blue-dark); }
.button-dark { background: var(--ink); color: #fff; border-radius: 12px; }
.text-link { color: #475569; font-weight: 600; }
.text-link svg { color: var(--blue); }
.scroll-cue { color: #64748b; }
.scroll-cue svg { color: var(--blue); }

/* Hero scene: daytime */
.hs-sky { background: linear-gradient(180deg, #bfe0ff 0%, #dcedff 42%, #eef6ff 70%, #f7fbff 100%); }
.hs-aurora { mix-blend-mode: normal; filter: blur(40px); opacity: .9; }
.hs-aurora.a1 { background: radial-gradient(ellipse, rgba(255,255,255,.95), transparent 65%); height: 18vh; }
.hs-aurora.a2 { background: radial-gradient(ellipse, rgba(255,255,255,.85), transparent 65%); height: 14vh; top: 30%; }
.hs-stars { display: none; }
.hs-moon { background: radial-gradient(circle at 40% 40%, #fffbea, #ffe39a 55%, #ffd166); box-shadow: 0 0 60px rgba(255,209,102,.55), 0 0 160px rgba(255,209,102,.3); }
.hs-far rect { fill: #d9e6f5; }
.hs-far circle { fill: #ffb4cf; }
.hs-hills path { fill: #cfe3bf; }
.hs-city rect[fill="#0b1230"] { fill: #e3ebf5; stroke: #c9d7e8; stroke-width: 1; }
.hs-city rect[width="4"] { fill: #8fc2fb; opacity: .85; }
.hs-city circle { fill: #ff7aa8; }
.hs-city { filter: drop-shadow(0 6px 14px rgba(15,23,42,.08)); }
.hs-wire { background: linear-gradient(90deg, transparent, rgba(100,116,139,.45) 15%, rgba(100,116,139,.45) 85%, transparent); }
.hs-poles { background: linear-gradient(90deg, transparent 0 calc(100% - 5px), #94a3b8 calc(100% - 5px)) 0 0 / 320px 100% repeat-x, linear-gradient(90deg, transparent 0 calc(100% - 46px), #94a3b8 calc(100% - 46px)) 0 4px / 320px 3px repeat-x; opacity: .7; }
.hs-train { filter: drop-shadow(0 16px 20px rgba(15,23,42,.18)); }
.hs-beam { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(0,134,255,.08) 55%, transparent); opacity: .7; }
.hs-glow { background: radial-gradient(ellipse at center, rgba(15,23,42,.18), transparent 70%); }
.hs-track { border-top-color: #8a97ad; border-bottom-color: #a8b3c4; background: #d8d2c6; }
.hs-sleepers { background: repeating-linear-gradient(90deg, #8b6b4a 0 10px, transparent 10px 34px); }
.hs-ground { background: linear-gradient(180deg, #dfeed7, #e9f3e3); }
.hs-speed { opacity: .55; }
.hs-route { background: rgba(255,255,255,.85); border-color: #dbe5f0; color: var(--ink); box-shadow: 0 10px 30px rgba(15,23,42,.08); font-weight: 700; }
.hs-route i { background: #dbe5f0; }
.hs-route b { background: var(--blue); box-shadow: 0 0 10px rgba(0,134,255,.6); }
.hs-route small { color: #64748b; font-weight: 600; }
.hs::after { background: linear-gradient(90deg, rgba(245,249,255,.85) 0%, rgba(245,249,255,.45) 36%, transparent 58%); }
@media (max-width: 800px) { .hs::after { background: linear-gradient(180deg, rgba(245,249,255,.85) 0%, rgba(245,249,255,.4) 55%, transparent 70%); } .hero-scene { opacity: 1; } }

/* 01 Experience */
.statement-section { background: #fff; color: var(--ink); }
.statement-grid p, .feature-heading p { color: #475569; }
.route-card { background: #f5f9ff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.06); }
.route-head { color: #64748b; font-weight: 700; }
.station-dot { border-color: var(--blue); }
.station-dot.filled { background: var(--blue); }
.route-card .station strong { color: var(--ink); font-weight: 700; }
.route-card .station small { color: #64748b; }
.route-track { background: #dbe5f0; }
.route-progress { background: var(--blue); }
.moving-dot { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 6px rgba(0,134,255,.15); }

/* 02 How it works */
.journey-section { background: linear-gradient(180deg, #f5f9ff, #eaf3ff 60%, #f5f9ff); }
.journey { box-shadow: 0 40px 100px rgba(0,134,255,.14), 0 0 0 1px #dbe5f0; }

/* 03 Features */
.feature-section { background: #fff; }
.feature-card { background: #f5f9ff; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); }
.feature-card-tall { background: linear-gradient(180deg, #e6f3ff, #f5f9ff); }
.feature-card svg { color: var(--blue); }
.feature-number { color: #94a3b8; font-weight: 700; }
.feature-card h3 { font-weight: 700; }
.feature-card p { color: #64748b; }
.mini-map { border-bottom-color: #cbd5e1; background: radial-gradient(circle at 20% 30%, rgba(0,134,255,.1), transparent 20%), radial-gradient(circle at 80% 70%, rgba(0,134,255,.08), transparent 25%); }
.map-line { border-top-color: var(--blue); }
.map-pin { background: var(--blue); border-color: #fff; box-shadow: 0 0 0 3px rgba(0,134,255,.2); }
.ticket-ui { background: #fff; border: 1px solid #dbe5f0; border-radius: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.ticket-ui span { color: var(--blue); font-weight: 700; }
.ticket-ui b { color: var(--ink); font-weight: 600; }
.ticket-ui small { color: #64748b; }
.signal-bars i { background: var(--blue); border-radius: 3px; }

/* 04 Trust */
.trust-section { background: #eef6ff; color: var(--ink); }
.trust-copy p { color: #475569; }
.trust-stats svg { color: var(--blue); }
.trust-stats strong { font-weight: 700; }
.trust-stats span { color: #64748b; }

/* Download */
.download-section { background: linear-gradient(135deg, #0086ff, #26b5ff); color: #fff; }
.eyebrow-dark, .download-content h2 em, .download-content > p:not(.eyebrow) { color: #e6f3ff; }
.download-orbit { border-color: rgba(255,255,255,.3); }
.store-button { background: var(--ink); border-radius: 12px; }

/* Footer */
.site-footer { background: #fff; color: #64748b; border-top: 1px solid var(--line); }
.footer-brand small { color: #94a3b8; }
.footer-brand b { color: var(--blue); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--blue); }

/* Booking dialog backdrop */
.booking-backdrop { background: rgba(15,23,42,.35); }
.booking-panel { border-radius: 20px; }

/* Information pages */
.legal-page { background: #f5f9ff; color: var(--ink); }
.legal-nav { border-bottom-color: var(--line); background: rgba(255,255,255,.8); }
.legal-back { color: var(--blue); font-weight: 700; }
.legal-links { color: #64748b; font-weight: 600; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--blue); }
.legal-intro { color: #475569; }
.legal-sections section { border-top-color: var(--line); }
.legal-sections h2 { color: var(--blue); }
.legal-sections h3, .legal-sections strong { color: var(--ink); }
.legal-sections p, .legal-sections ul, .legal-sections ol { color: #475569; }
.legal-sections li::marker, .legal-sections a { color: var(--blue); }
.legal-updated { color: #94a3b8; }
.callout { background: var(--blue-soft); border-color: #bfdcff; color: var(--ink-2); }
.contact-card { background: #fff; border-color: var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.05); }
a.contact-card:hover { border-color: var(--blue); }
.contact-card svg { color: var(--blue); }
.contact-card small { color: #94a3b8; }
.contact-card b { color: var(--ink); }
:focus-visible { outline-color: var(--blue); }

/* Hero train: keep the nose and headlight fully in view */
.hs-trainset { right: 3%; width: min(1100px, 78vw); }
.hs-beam { right: -24%; width: 26%; }
@media (max-width: 800px) {
  .hs-trainset { right: 4%; width: 150vw; }
}
.hero-copy { max-width: 820px; }
.hero-section h1 { font-size: clamp(56px, 7.6vw, 124px); }
.hero-section h1 em { white-space: nowrap; }
.hs-trainset { width: min(1000px, 70vw); }

/* Headline: clear space between "Trek" and "Train" */
.hero-section h1 em { letter-spacing: -.04em; word-spacing: .14em; }

/* Hero train: light-blue glass instead of black window bands and windscreen */
.hs-train rect[fill="#0a1430"] { fill: #d9ecff; stroke: #b9d9fb; stroke-width: 1.5; }
.hs-train path[fill="#0a1430"] { fill: #bfe2ff; }
.hs-train rect[fill="#1b2336"] { fill: #a7b4c8; }
.hs-train path[fill="#ffffff"] { opacity: .55; }

/* Route card: Johannesburg sits at the right end, name then dot */
.route-card .station-end { grid-template-columns: 1fr 14px; justify-items: end; text-align: right; }
.route-card .station-end .station-dot { grid-column: 2; grid-row: 1 / span 2; justify-self: center; }
.route-card .station-end strong { grid-column: 1; grid-row: 1; }
.route-card .station-end small { grid-column: 1; grid-row: 2; }
@media (max-width: 800px) {
  .route-card .station-end { grid-template-columns: 14px 1fr; justify-items: start; text-align: left; }
  .route-card .station-end .station-dot { grid-column: 1; }
  .route-card .station-end strong, .route-card .station-end small { grid-column: 2; }
}
.footer-brand small a:hover b { text-decoration: underline; }


/* ===== Performance: keep hero motion on the GPU compositor, no per-frame repaints or layouts ===== */
.hs-layer, .hs-trainset, .hs-aurora, .hs-stars, .hs-sleepers { will-change: transform; }
.hs-city, .hs-train { filter: none; }                                   /* filters on moving layers forced full repaints */
.hs-trainset::before { content: ""; position: absolute; left: 3%; right: 1%; bottom: -6px; height: 22px; border-radius: 50%; background: rgba(15,23,42,.16); filter: blur(8px); }
.hs-aurora { filter: blur(40px); animation-duration: 30s; }
.hs-route { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hs-route b { left: 0; animation: hs-route-x 6s ease-in-out infinite; will-change: transform; }
@keyframes hs-route-x { 0% { transform: translateX(0); } 80%, 100% { transform: translateX(110px); } }
h1 em { animation: none; background-position: 0 0; }                  /* text shimmer repainted the headline every frame */

/* Poles and speed streaks: move a wide strip with transform instead of animating background-position */
.hs-poles, .hs-speed { overflow: hidden; animation: none; background: none; }
.hs-poles::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 320px); will-change: transform; animation: hs-strip-320 .9s linear infinite;
  background: linear-gradient(90deg, transparent 0 calc(100% - 5px), #94a3b8 calc(100% - 5px)) 0 0 / 320px 100% repeat-x, linear-gradient(90deg, transparent 0 calc(100% - 46px), #94a3b8 calc(100% - 46px)) 0 4px / 320px 3px repeat-x; }
.hs-speed::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 700px); will-change: transform; animation: hs-strip-700 .55s linear infinite;
  background: linear-gradient(90deg, transparent 0 60%, rgba(0,134,255,.45) 60% 64%, transparent 64%) 0 70% / 700px 2px repeat-x,
              linear-gradient(90deg, transparent 0 20%, rgba(100,116,139,.35) 20% 23%, transparent 23%) 0 35% / 700px 1px repeat-x,
              linear-gradient(90deg, transparent 0 75%, rgba(117,102,255,.4) 75% 79%, transparent 79%) 0 88% / 700px 2px repeat-x; }
@keyframes hs-strip-320 { to { transform: translateX(-320px); } }
@keyframes hs-strip-700 { to { transform: translateX(-700px); } }

/* Nothing animates while the hero is scrolled out of view */
.hero-section.is-offscreen *, .hero-section.is-offscreen *::before, .hero-section.is-offscreen *::after { animation-play-state: paused !important; }

/* ===== Graphics memory: render sections only near the viewport ===== */
.hero-section.is-offscreen .hero-scene { visibility: hidden; }
.statement-section, .feature-section, .trust-section, .download-section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hs-aurora { width: 46vw; }
