:root {
  --sq-blue: #33479f;
  --sq-blue-2: #243781;
  --sq-blue-dark: #0d153f;
  --sq-yellow: #ffea00;
  --sq-ink: #111522;
  --sq-muted: #687083;
  --sq-surface: #f5f7fb;
  --sq-border: #e2e6ef;
  --sq-white: #fff;
  --sq-shadow: 0 18px 55px rgba(20, 30, 80, .12);
}

html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sq-ink);
  background: #fff;
  overflow-x: hidden;
}
a { text-underline-offset: 3px; }
img { max-width: 100%; }

.topbar {
  background: var(--sq-yellow);
  color: #111;
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.navbar {
  background: rgba(8, 14, 45, .98);
  backdrop-filter: blur(12px);
}
.navbar-brand {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
}
.navbar-logo {
  width: 190px;
  max-width: 42vw;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}
.nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--sq-yellow) !important; }

.btn-race {
  --bs-btn-bg: var(--sq-yellow);
  --bs-btn-border-color: var(--sq-yellow);
  --bs-btn-color: #111;
  --bs-btn-hover-bg: #fff15a;
  --bs-btn-hover-border-color: #fff15a;
  --bs-btn-hover-color: #111;
  --bs-btn-active-bg: #ead600;
  --bs-btn-active-border-color: #ead600;
  font-weight: 900;
  border-radius: .8rem;
}
.btn-soft {
  background: #eef1fb;
  border: 1px solid #dfe4f5;
  color: var(--sq-blue-dark);
  font-weight: 800;
  border-radius: .8rem;
}
.btn-soft:hover { background: #e3e8fa; color: var(--sq-blue-dark); }
.btn-outline-light { border-width: 2px; font-weight: 800; border-radius: .8rem; }

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 22%, rgba(255,234,0,.18), transparent 25%),
    linear-gradient(120deg, rgba(7,12,40,.99), rgba(38,57,145,.97));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.04) 75%);
  background-size: 48px 48px;
  background-position: 0 0, 0 24px, 24px -24px, -24px 0;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.07em;
  max-width: 10ch;
}
.hero .lead {
  max-width: 720px;
  color: rgba(255,255,255,.83);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}
.hero-logo-wrap {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.hero-logo {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.32));
}
.hero-stat strong { font-size: 1.65rem; }
.hero-stat { border-top: 1px solid rgba(255,255,255,.12); }

.page-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(255,234,0,.16), transparent 22%),
    linear-gradient(120deg, var(--sq-blue-dark), var(--sq-blue));
  color: #fff;
  padding: 86px 0 68px;
}
.page-hero h1 {
  font-weight: 950;
  letter-spacing: -.055em;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: .95;
}
.page-hero .lead { color: rgba(255,255,255,.72); }
.page-logo {
  width: min(460px, 90%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}

.eyebrow,
.section-kicker {
  color: var(--sq-yellow);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-kicker { color: var(--sq-blue); }
.section-pad { padding: 92px 0; }
.section-title {
  font-weight: 950;
  letter-spacing: -.048em;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: .96;
}
.section-copy { color: var(--sq-muted); max-width: 760px; }
.bg-soft { background: var(--sq-surface); }
.race-band { background: var(--sq-yellow); }
.race-band h2 { font-weight: 950; letter-spacing: -.04em; }

.feature-card,
.info-panel,
.payment-card,
.racer-card,
.source-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--sq-border);
  border-radius: 1.2rem;
  box-shadow: 0 10px 35px rgba(27, 38, 92, .06);
}
.feature-card,
.info-panel,
.payment-card,
.source-card { padding: 1.75rem; }
.feature-card { transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sq-shadow); }
.feature-card h3,
.payment-card h3 { font-weight: 900; letter-spacing: -.025em; }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sq-yellow);
  color: var(--sq-blue-dark);
  font-size: 1.35rem;
}

.news-card {
  border-radius: 1.5rem;
  background: var(--sq-blue-dark);
  color: #fff;
  overflow: hidden;
}
.news-card .card-body { padding: clamp(2rem, 5vw, 4rem); }
.news-card p { color: rgba(255,255,255,.78); }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: .4rem;
  bottom: .6rem;
  width: 2px;
  background: var(--sq-border);
}
.timeline-item { position: relative; padding: 0 0 1.4rem 1rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: .32rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sq-yellow);
  box-shadow: 0 0 0 5px var(--sq-blue);
}

.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .8rem; }
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 950;
  color: var(--sq-blue);
}

.racer-card { padding: 1.35rem; }
.racer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--sq-blue-dark);
  color: var(--sq-yellow);
  font-weight: 950;
  letter-spacing: -.03em;
}
.racer-card strong { display: block; font-weight: 900; }
.racer-card span { color: var(--sq-muted); font-size: .88rem; }

.address-card {
  background: var(--sq-blue-dark);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
}
.address-card a { color: var(--sq-yellow); }
.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: var(--sq-shadow);
}
.map-card {
  background: #fff;
  border: 1px solid var(--sq-border);
  border-radius: 1.25rem;
  padding: .7rem;
  box-shadow: var(--sq-shadow);
}

.calendar-card {
  background: #fff;
  border: 1px solid var(--sq-border);
  border-radius: 1.25rem;
  padding: .7rem;
  box-shadow: var(--sq-shadow);
  overflow: hidden;
}
.calendar-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: .85rem;
  background: #fff;
}

.event-card {
  border: 1px solid var(--sq-border);
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  height: 100%;
}
.event-date {
  min-width: 68px;
  text-align: center;
  background: var(--sq-blue-dark);
  color: #fff;
  border-radius: .85rem;
  padding: .7rem .55rem;
  line-height: 1;
}
.event-date .month { color: var(--sq-yellow); font-size: .72rem; font-weight: 950; letter-spacing: .08em; }
.event-date .day { font-size: 1.75rem; font-weight: 950; margin-top: .25rem; }

.points-toolbar {
  position: sticky;
  top: 82px;
  z-index: 3;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sq-border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(20,30,70,.08);
}
.table-points thead th {
  background: var(--sq-blue-dark);
  color: #fff;
  border-color: rgba(255,255,255,.08);
  white-space: nowrap;
}
.table-points tbody tr:hover { background: #f9faff; }
.table-responsive { border-radius: 1rem; border: 1px solid var(--sq-border); }
.source-card code { word-break: break-all; }
.data-note { font-size: .88rem; color: var(--sq-muted); }

.payment-price {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
  color: var(--sq-blue-dark);
}
.payment-card.featured {
  border: 2px solid var(--sq-yellow);
  box-shadow: var(--sq-shadow);
}
.provider-badge {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  border-radius: 999px;
  padding: .38rem .72rem;
  background: #eef1fb;
  color: var(--sq-blue-dark);
  font-size: .78rem;
  font-weight: 900;
}

.alert-race {
  background: #fffbe0;
  border: 1px solid #f1df62;
  color: #4d4300;
  border-radius: 1rem;
}

footer { background: #070d2b; color: rgba(255,255,255,.72); }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--sq-yellow); }
.footer-logo { width: 230px; max-width: 80%; }

@media (max-width: 1199.98px) {
  .navbar-logo { width: 165px; }
  .nav-link { font-size: .85rem; }
}
@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 86px 0 72px; }
  .hero h1 { max-width: 12ch; }
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .navbar-logo { width: 180px; max-width: 65vw; }
  .section-pad { padding: 70px 0; }
  .points-toolbar { position: static; }
  .map-frame { min-height: 360px; }
  .calendar-frame { min-height: 650px; }
}
@media (max-width: 575.98px) {
  .topbar { font-size: .7rem; }
  .hero h1 { font-size: 3.2rem; }
  .section-pad { padding: 56px 0; }
  .feature-card,
  .info-panel,
  .payment-card,
  .source-card { padding: 1.35rem; }
  .page-hero { padding: 68px 0 52px; }
  .map-frame { min-height: 310px; }
  .calendar-frame { min-height: 580px; }
}

/* Schedule page */
.schedule-hero {
  padding-top: 72px;
  padding-bottom: 72px;
}
.schedule-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 71, 159, .08), transparent 30%),
    #fff;
}
.schedule-panel {
  border: 1px solid var(--sq-border);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: var(--sq-shadow);
  overflow: hidden;
}
.schedule-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--sq-border);
}
.schedule-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -.04em;
}
.calendar-view-switcher {
  display: inline-flex;
  gap: .35rem;
  background: var(--sq-surface);
  border: 1px solid var(--sq-border);
  border-radius: .9rem;
  padding: .3rem;
  flex: 0 0 auto;
}
.calendar-view-btn {
  min-height: 42px;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--sq-muted);
  font-weight: 850;
  padding: .55rem .8rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
}
.calendar-view-btn:hover,
.calendar-view-btn:focus-visible {
  color: var(--sq-blue-dark);
  background: #fff;
}
.calendar-view-btn.active {
  background: var(--sq-blue-dark);
  color: #fff;
  box-shadow: 0 5px 14px rgba(13, 21, 63, .18);
}
.calendar-shell {
  background: #fff;
  padding: .65rem;
}
.calendar-shell .calendar-frame {
  min-height: 760px;
  border-radius: .8rem;
}
.schedule-sidebar {
  position: sticky;
  top: 110px;
}
.schedule-status-card,
.schedule-quick-card {
  border: 1px solid var(--sq-border);
  border-radius: 1.15rem;
  background: #fff;
  padding: 1.4rem;
  box-shadow: 0 10px 35px rgba(27, 38, 92, .06);
}
.schedule-status-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.schedule-status-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--sq-yellow);
  color: var(--sq-blue-dark);
  font-size: 1.25rem;
}
.schedule-status-label {
  color: var(--sq-blue);
  font-weight: 950;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .25rem;
}
.schedule-note-card {
  background: var(--sq-blue-dark);
  color: #fff;
  border-color: var(--sq-blue-dark);
}
.schedule-note-card span {
  color: rgba(255,255,255,.74);
}
.schedule-note-card i { color: var(--sq-yellow); }
.calendar-mobile-note {
  color: var(--sq-muted);
  font-size: .9rem;
}

@media (max-width: 1199.98px) {
  .schedule-sidebar { position: static; }
}

@media (max-width: 767.98px) {
  .schedule-panel-header {
    align-items: stretch;
    flex-direction: column;
    padding: 1.2rem;
  }
  .calendar-view-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .calendar-view-btn { padding-inline: .45rem; }
  .calendar-shell { padding: .35rem; }
  .calendar-shell .calendar-frame { min-height: 650px; }
  .schedule-hero { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 420px) {
  .calendar-view-btn span { font-size: .82rem; }
  .calendar-view-btn { gap: .3rem; }
}
