@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,900&display=swap');

:root {
  --night: #17111f;
  --night-2: #251a31;
  --paper: #f5f0e7;
  --paper-2: #e9e1d3;
  --gold: #f1c40f;
  --gold-soft: #f7d872;
  --ink: #241b29;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
body:not(.order-page) { background: var(--night); }
body, button, input, select, textarea { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Shared navigation */
body nav {
  min-height: 76px;
  padding: 12px clamp(20px, 3.8vw, 72px);
  background: rgba(22, 15, 30, .94);
  border-bottom: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(12,8,18,.12);
}
body .nav-logo {
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 900;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: .07em;
  color: #fff;
  line-height: 1.12;
}
body .nav-logo img { width: 39px; height: 39px; }
body .nav-links { align-items: center; }
body .nav-links a {
  border-left: 0;
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,.76);
  padding: 10px 12px;
}
body .nav-links a:hover, body .nav-links a.active { color: #fff; }
body .nav-links a.nav-cta, body .nav-cta {
  margin-left: 14px;
  padding: 12px 22px;
  background: var(--gold);
  color: #1b1422;
  border: 0;
  border-radius: 100px;
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 16px rgba(241,196,15,.16);
}
body .nav-links a.nav-cta:hover, body .nav-cta:hover { background: #ffe17b; color: #1b1422; }
body .nav-mobile { top: 76px; background: #1b1424; }
body .nav-mobile ul li a { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; letter-spacing: 0; text-transform: none; font-size: 17px; color: #f5f0e7; }
body .nav-mobile .nav-cta-mobile { background: var(--gold); color: var(--ink); border-radius: 100px; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; letter-spacing: 0; }

/* Homepage */
.home { --bg: var(--night); --dark: var(--night); --purple: var(--night-2); --white: #f8f4ee; --yellow: var(--gold); --yellow2: #ffdf69; --text-rgb: 248,244,238; --accent-rgb: 241,196,15; }
.home main { width: 100%; max-width: 100%; overflow: clip; }
.home .marquee-wrap { margin-top: 76px; background: #23192d; padding: 10px 0; border-bottom-color: rgba(255,255,255,.1); }
.home .mtext { color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .13em; }
.home .msep { color: var(--gold); }
.home .hero {
  min-height: min(850px, calc(100svh - 110px));
  height: auto;
  align-items: center;
  isolation: isolate;
  background: #191522;
}
.home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('images/hero-cyclists.jpg') 58% 51% / cover no-repeat;
  transform: scale(1.035);
}
.home .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17,13,24,.91) 0%, rgba(20,15,28,.73) 39%, rgba(20,15,28,.10) 82%), linear-gradient(0deg, rgba(17,13,24,.69), transparent 46%);
}
.home .hero-video-wrap, .home .hero-overlay { display: none; }
.home .hero-content { max-width: 1560px; margin: auto; padding: 112px clamp(24px, 5.5vw, 96px) 122px; }
.home .hero-badge {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  color: var(--gold-soft);
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
  letter-spacing: .16em;
}
.home .hero-title {
  max-width: 72rem;
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(58px, 7.7vw, 118px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(14,10,23,.28);
}
.home .hero-title span { color: var(--gold); }
.home .hero-sub {
  max-width: 620px;
  color: rgba(255,255,255,.86);
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 32px;
}
.home .hero-sub b { color: #fff; font-weight: 700; }
.home .hero-btns { gap: 12px; }
.home .btn-primary, .home .btn-ghost {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 100px;
  font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.home .btn-primary { color: #1e1821; background: var(--gold); }
.home .btn-primary:hover { background: #ffe17b; transform: translateY(-3px); }
.home .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.75); background: rgba(20,15,28,.15); }
.home .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); transform: translateY(-3px); }
.home .hero-note { display: block; margin-top: 30px; font-size: 13px; letter-spacing: .03em; color: rgba(255,255,255,.73); }

.home .stat-row { background: #241a2f; border: 0; padding: 0 clamp(20px, 5.5vw, 96px); }
.home .stat-cell { padding: 28px 12px; border-right-color: rgba(255,255,255,.13); }
.home .stat-num { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; color: #fff; }
.home .stat-label { color: rgba(255,255,255,.55); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; letter-spacing: .05em; }
.home .countdown-section { padding: 28px clamp(24px, 5.5vw, 96px); background: #1b1424; border-bottom: 1px solid rgba(255,255,255,.1); }
.home .cd-label { color: #fff; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.home .cd-date-line { color: var(--gold-soft); }
.home .cd-num { font-family: 'Satoshi', sans-serif; font-size: 35px; color: #fff; }
.home .cd-unit { color: rgba(255,255,255,.55); }

.home .section-wrap { padding: clamp(88px, 10vw, 160px) clamp(24px, 5.5vw, 96px); border-bottom: 0; }
.home .eyebrow { color: var(--gold-soft); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .12em; margin-bottom: 20px; }
.home .eyebrow::before, .home .includes-label::before, .home .faq-q::before, .home .cta-tag::before { display: none; }
.home .section-title { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(43px, 5vw, 76px); font-weight: 900; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 44px; }

.home .route-section { color: var(--ink); background: var(--paper); position: relative; }
.home .route-section .eyebrow { color: #765692; }
.home .route-layout { max-width: 1390px; margin: auto; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1fr); gap: clamp(50px, 8vw, 150px); align-items: start; }
.home .route-intro { align-self: start; }
.home .route-head { display: block; }
.home .route-headline { color: var(--ink); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(56px, 6vw, 94px); font-weight: 900; line-height: 1.05; letter-spacing: -.06em; }
.home .route-intro-copy { color: #55475b; font-size: 19px; line-height: 1.75; max-width: 360px; margin: 22px 0 28px; }
.home .route-total-num { text-align: left; font-family: 'Satoshi', sans-serif; font-size: clamp(56px, 7vw, 100px); font-weight: 900; letter-spacing: -.07em; color: #624378; }
.home .route-total-sub { text-align: left; color: #594b62; font-size: 13px; }
.home .route-detail { min-width: 0; }
.home .route-row { padding: 22px 0; grid-template-columns: 95px minmax(0,1fr) 90px; border-color: rgba(36,27,41,.16); }
.home .route-row:hover { background: rgba(98,67,120,.05); }
.home .day-lbl, .home .day-date { color: #7d6a87; }
.home .route-city { color: var(--ink); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 21px; }
.home .route-en { color: #796e7b; }
.home .route-km, .home .route-row.last .route-km { color: #553663; font-family: 'Satoshi', sans-serif; font-size: 22px; }
.home .route-km span, .home .route-row.last .route-km span { color: #7b6980; }
.home .prog-track { background: #d8ccdc; height: 4px; }
.home .prog-fill { background: #6c4983; }
.home .prog-label { color: #76647c; }
.home .route-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px; padding: 12px 22px; border-radius: 100px; text-decoration: none; background: #4c335e; color: #fff; font-size: 14px; font-weight: 800; transition: background .25s, transform .25s; }
.home .route-link:hover { color: #fff; background: #6a4980; transform: translateY(-2px); }

.home .registration-section { background: radial-gradient(circle at 90% 0, rgba(114,72,146,.25), transparent 38%), #23182d; }
.home .registration-section .section-inner, .home .faq-section .section-inner, .home .testimonial-section .section-inner, .home .participate-section .section-inner, .home .about-section .section-inner, .home .organizers-section .section-inner { max-width: 1390px; margin: auto; }
.home .reg-grid { grid-template-columns: 1fr 1fr; gap: 0; grid-auto-flow: dense; border: 1px solid rgba(255,255,255,.15); }
.home .reg-card { min-height: 315px; border: 0; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; padding: clamp(27px, 3vw, 48px); }
.home .reg-card.feat { background: #f4d05c; color: var(--ink); border-right: 0; }
.home .reg-card.expired { opacity: .74; }
.home .reg-card.feat .reg-tag { background: #281e2d; color: #fff; }
.home .reg-card.feat .reg-period, .home .reg-card.feat .reg-sub, .home .reg-card.feat .reg-dl-label, .home .reg-card.feat .reg-dl-date { color: #3b2d35; }
.home .reg-card.feat .reg-price { color: #251c2b; }
.home .reg-price { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(54px, 5vw, 78px); font-weight: 900; }
.home .reg-period, .home .reg-sub, .home .reg-dl-label { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 15px; letter-spacing: 0; text-transform: none; }
.home .reg-period { color: rgba(255,255,255,.72); }
.home .reg-sub { color: rgba(255,255,255,.74); }
.home .reg-tag { border-radius: 100px; padding: 6px 13px; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; letter-spacing: 0; text-transform: none; }
.home .reg-btn { background: #251c2b; color: #fff; border-radius: 100px; min-height: 46px; padding: 11px 23px; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; }
.home .reg-btn:hover { color: #fff; background: #493754; }
.home .includes-box { grid-column: 1 / -1; margin: 0; border: 0; border-radius: 0; padding: 30px clamp(27px, 3vw, 48px); }
.home .includes-label { color: var(--gold-soft); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.home .includes-list { gap: 9px; }
.home .pill { color: #fff; border-color: rgba(255,255,255,.26); border-radius: 100px; padding: 10px 16px; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 14px; letter-spacing: 0; }

.home .faq-section { background: #1b1424; }
.home .faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 1px; background: rgba(255,255,255,.14); border-radius: 0; }
.home .faq-item { min-height: 260px; padding: 33px; border: 0 !important; background: #241a2e; }
.home .faq-q { color: var(--gold-soft); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.home .faq-a { color: rgba(255,255,255,.77); font-size: 16px; line-height: 1.8; }
.home .faq-a strong { color: #fff; }

.home .testimonial-section { background: #f5f0e7; color: var(--ink); }
.home .testimonial-section .eyebrow { color: #765692; }
.home .testi-carousel { padding: clamp(28px, 5vw, 80px); border: 1px solid #d5c9d6; background: #fffaf2; }
.home .quote { color: var(--ink); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(32px, 4vw, 58px); line-height: 1.35; max-width: 1040px; }
.home .quote::before { color: #d1b879; }
.home .byline-name, .home .qa-a { color: var(--ink); }
.home .byline-role { color: #6f6075; }
.home .qa-q { color: #6b457e; }
.home .testi-dot { background: #cfc2cf; }
.home .testi-dot.active { background: #64427a; }
.home .testi-playpause { color: #634a6a; border-color: #c5b7c9; }

.home .participate-section { background: #24182f; }
.home .cta-strip { display: flex; gap: 0; align-items: stretch; border: 1px solid rgba(255,255,255,.18); min-height: 360px; }
.home .cta-card { position: relative; flex: 1 1 0; min-width: 0; padding: clamp(24px, 3vw, 46px); border: 0; border-right: 1px solid rgba(255,255,255,.18); border-radius: 0; background: #2a1e36; overflow: hidden; transition: flex .55s cubic-bezier(.2,.8,.2,1), background .35s; }
.home .cta-card:last-child { border-right: 0; }
.home .cta-card:hover, .home .cta-card:focus-visible { flex: 1.4 1 0; background: #3d2b4c; }
.home .cta-card::after { content: ''; position: absolute; inset: auto -5% -90px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(241,196,15,.16), transparent 65%); pointer-events: none; }
.home .cta-tag { color: var(--gold-soft); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.home .cta-title { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(30px, 3vw, 48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin: 24px 0 18px; }
.home .cta-desc { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.7; max-width: 330px; }
.home .cta-arrow { position: absolute; bottom: 30px; left: clamp(24px, 3vw, 46px); color: var(--gold); font-size: 31px; }

.home .about-section { background: #1b1424; }
.home .about-body { max-width: 890px; color: rgba(255,255,255,.8); font-size: clamp(19px, 2vw, 27px); font-weight: 400; line-height: 1.9; }
.home .about-stats { gap: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px; }
.home .about-stats > div { padding: 12px 25px; border-right: 1px solid rgba(255,255,255,.18); }
.home .about-stats > div:first-child { padding-left: 0; }
.home .about-stats > div:last-child { border-right: 0; }
.home .organizers-section { background: #1b1424; padding-top: 0; }
.home .organizers-section img { filter: brightness(1.25); max-width: 180px; object-fit: contain; }
.home .footer-marquee { background: #f4d05c; border: 0; }
.home .footer-marquee .mtext { color: #3b2b3d; font-weight: 800; }
.home .footer-marquee .msep { color: #6a416e; }
.home footer { padding: 55px clamp(24px, 5.5vw, 96px); background: #130f19; }
.home .footer-logo { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; letter-spacing: .04em; }
.home .footer-social a, .home .footer-copy { color: rgba(255,255,255,.68); }

/* Interior pages keep their existing forms and data handling. */
.interior:not(.order-page) { background: #19121f; }
.interior .page-header {
  position: relative;
  padding-top: clamp(65px, 7vw, 112px);
  padding-bottom: clamp(48px, 6vw, 88px);
  isolation: isolate;
  border-bottom-color: rgba(241,196,15,.23);
}
.interior .page-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 76% 12%, rgba(140,90,157,.28), transparent 42%); pointer-events: none; }
.interior .page-eyebrow { color: var(--gold-soft); font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.interior .page-title { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(44px, 6.3vw, 82px); font-weight: 900; letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; }
.interior .page-subtitle { font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: rgba(255,255,255,.75); }
.interior:not(.order-page) .main { padding-top: 55px; padding-bottom: 100px; }
.interior:not(.order-page) footer { background: #120e18; }
.interior:not(.order-page) input, .interior:not(.order-page) select, .interior:not(.order-page) textarea { font-size: 16px; }
.interior:not(.order-page) .btn-submit, .interior:not(.order-page) .btn-search { border-radius: 100px; font-family: 'Satoshi', 'IBM Plex Sans Thai', sans-serif; font-weight: 800; }
.route-page .map-wrap { position: relative; }
.route-page .map-open-link { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; min-height: 42px; padding: 10px 16px; border-radius: 100px; background: #f1c40f; color: #211827; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.route-page .map-open-link:hover { background: #ffdc60; color: #211827; }
.order-page .page-header { background-color: #24182e; }
.order-page .pc { box-shadow: 0 12px 30px rgba(32,24,39,.09); }
.order-page .form-section { box-shadow: 0 22px 55px rgba(33,28,40,.08); }

@media (max-width: 1100px) {
  body .nav-links a { padding: 9px 8px; font-size: 12px; }
  body .nav-links a.nav-cta { margin-left: 4px; padding: 10px 15px; }
  .home .route-layout { gap: 55px; }
}
@media (max-width: 900px) {
  body nav { min-height: 68px; }
  body .nav-links { display: none; }
  body .nav-hamburger { display: flex; }
  body .nav-mobile { top: 68px; }
  .home .marquee-wrap { margin-top: 68px; }
  .home .route-layout { grid-template-columns: 1fr; gap: 35px; }
  .home .route-intro { position: static !important; }
  .home .faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home .cta-strip { min-height: 320px; }
}
@media (max-width: 620px) {
  .home .hero { min-height: 720px; align-items: flex-end; }
  .home .hero::before { background-position: 64% center; }
  .home .hero::after { background: linear-gradient(0deg, rgba(18,12,24,.98), rgba(18,12,24,.74) 43%, rgba(18,12,24,.20) 100%); }
  .home .hero-content { padding: 110px 23px 58px; }
  .home .hero-badge { font-size: 11px; margin-bottom: 15px; }
  .home .hero-title { font-size: clamp(49px, 13vw, 74px); letter-spacing: -.045em; }
  .home .hero-sub { font-size: 16px; }
  .home .hero-btns { display: grid; grid-template-columns: 1fr; }
  .home .btn-primary, .home .btn-ghost { width: 100%; }
  .home .stat-row { padding: 0 20px; }
  .home .stat-cell { padding: 21px 12px; }
  .home .countdown-section { padding: 26px 22px; }
  .home .cd-num { font-size: clamp(22px, 7vw, 33px); }
  .home .cd-box { padding: 0 7px; }
  .home .section-wrap { padding: 82px 22px; }
  .home .section-title { font-size: clamp(40px, 11vw, 58px); }
  .home .route-headline { font-size: 64px; }
  .home .route-row { grid-template-columns: 65px minmax(0,1fr) 70px; gap: 8px; }
  .home .route-city { font-size: 17px; }
  .home .route-km { font-size: 19px; }
  .home .reg-grid { grid-template-columns: 1fr; }
  .home .reg-card { border-right: 0; min-height: 270px; }
  .home .includes-box { grid-column: auto; }
  .home .faq-grid { grid-template-columns: 1fr; }
  .home .faq-item { min-height: 0; padding: 28px; }
  .home .testi-carousel { padding: 28px 23px; }
  .home .quote { font-size: 29px; }
  .home .cta-strip { display: block; border: 0; min-height: 0; }
  .home .cta-card { display: block; min-height: 270px; border: 1px solid rgba(255,255,255,.18); margin-bottom: 14px; position: sticky; top: 88px; box-shadow: 0 14px 30px rgba(9,5,14,.25); }
  .home .cta-card:nth-child(2) { top: 101px; }
  .home .cta-card:nth-child(3) { top: 114px; }
  .home .about-stats { grid-template-columns: repeat(2,1fr); }
  .home .about-stats > div:nth-child(2) { border-right: 0; }
  .home .about-stats > div:nth-child(3), .home .about-stats > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
  .home .about-stats > div { padding: 20px 12px; }
  .home .organizers-section img { max-width: 125px; }
  .interior .page-header { padding-top: 55px; padding-bottom: 50px; }
  .interior .page-title { font-size: clamp(42px, 11vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home .marquee-track, .home .footer-marquee .marquee-track { animation: none; }
  .home .cta-card, .home .btn-primary, .home .btn-ghost { transition: none; }
  .home .fade-in { opacity: 1; transform: none; }
}
