/* V18 · Pit Wall
 * Digital scoreboard / timing-screen take on motorsport branding.
 * Same orange + electric blue + chrome on black palette as V17, but the
 * shape language is segmented numerals, scan lines, livery stripes, ticker
 * bars — a pit-wall display board rather than a heraldic badge.
 */

:root {
  --pw-bg:       #050608;
  --pw-bg-2:     #0c0f14;
  --pw-panel:    #11151c;
  --pw-panel-2:  #181d26;
  --pw-line:     #232a35;
  --pw-line-2:   #303949;
  --pw-text:     #e9ecf2;
  --pw-muted:    #7a8597;
  --pw-orange:   #ff6b1a;
  --pw-orange-2: #ffa455;
  --pw-blue:     #27a8d9;
  --pw-blue-2:   #7adcff;
  --pw-chrome:   #d8dde4;
  --pw-led:      #ff8b3d;
}

.pw-body {
  margin: 0;
  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  position: relative;
}
.pw-body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}
.pw-seg  { font-family: "Share Tech Mono", "JetBrains Mono", ui-monospace, monospace; }
.pw-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.pw-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
}

/* ============ NAV / LIVERY HEADER ============ */
.pw-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  background: var(--pw-bg-2);
  border-bottom: 1px solid var(--pw-line);
  padding: 0 24px;
  height: 56px;
}
.pw-nav__livery {
  position: relative;
  margin-right: 18px;
  width: 12px; align-self: stretch;
  background: linear-gradient(
    180deg,
    var(--pw-orange) 0%,
    var(--pw-orange) 50%,
    var(--pw-blue) 50%,
    var(--pw-blue) 100%
  );
}
.pw-nav__brand {
  display: flex; align-items: center;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 13px;
}
.pw-nav__brand strong { color: var(--pw-orange); }
.pw-nav__logo {
  height: 32px; width: auto; display: block;
  background: rgba(255,255,255,0.92); padding: 2px 6px; border-radius: 3px;
}
.pw-nav__sep { color: var(--pw-line-2); margin: 0 10px; }
.pw-nav__links {
  margin-left: auto; display: flex; gap: 18px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.pw-nav__links a { color: var(--pw-muted); text-decoration: none; transition: color .2s; }
.pw-nav__links a:hover { color: var(--pw-blue-2); }

.pw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.18em;
  text-decoration: none;
  background: var(--pw-orange);
  color: #0a0a0b;
  border: none;
  position: relative;
  transition: background .15s ease, transform .15s ease;
}
.pw-btn::after {
  content: "";
  position: absolute; right: -8px; top: 0; bottom: 0;
  width: 12px;
  background: var(--pw-orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pw-btn:hover { background: var(--pw-orange-2); transform: translateY(-1px); }
.pw-btn:hover::after { background: var(--pw-orange-2); }
.pw-btn--nav { padding: 7px 14px; margin-left: 16px; font-size: 11px; }
.pw-btn--ghost {
  background: transparent; color: var(--pw-text);
  border: 1px solid var(--pw-line-2);
}
.pw-btn--ghost::after { display: none; }
.pw-btn--ghost:hover { border-color: var(--pw-blue); color: var(--pw-blue-2); background: transparent; }
.pw-btn--cta { padding: 16px 28px; font-size: 14px; }

/* ============ TICKER ============ */
.pw-ticker {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  background: #000;
  border-bottom: 1px solid var(--pw-line);
  height: 32px;
  overflow: hidden;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.pw-ticker__label {
  background: var(--pw-orange); color: #0a0a0b;
  height: 100%; display: inline-flex; align-items: center;
  padding: 0 14px; font-weight: 700;
  letter-spacing: 0.22em;
  position: relative;
}
.pw-ticker__label::after {
  content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 14px;
  background: var(--pw-orange); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pw-ticker__track {
  flex: 1; overflow: hidden; padding-left: 24px;
  display: flex; align-items: center;
  white-space: nowrap;
}
.pw-ticker__items {
  display: inline-flex; gap: 28px;
  animation: pw-ticker 38s linear infinite;
  color: var(--pw-chrome);
}
.pw-ticker__items span { color: var(--pw-blue-2); }
.pw-ticker__items b { color: var(--pw-orange-2); font-weight: 600; }
@keyframes pw-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ HERO ============ */
.pw-hero {
  position: relative; z-index: 2;
  padding: 56px 28px 72px;
  background:
    linear-gradient(180deg, rgba(255,107,26,0.04) 0%, transparent 40%),
    linear-gradient(180deg, var(--pw-bg) 0%, var(--pw-bg-2) 100%);
  border-bottom: 1px solid var(--pw-line);
  overflow: hidden;
}
.pw-hero::after {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background:
    radial-gradient(circle at 50% 50%, rgba(39,168,217,0.08), transparent 70%);
  pointer-events: none;
}

.pw-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 40px; align-items: end;
}
@media (max-width: 920px) { .pw-hero__inner { grid-template-columns: 1fr; } }

.pw-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--pw-blue-2);
  font-weight: 600;
}
.pw-eyebrow__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pw-orange);
  box-shadow: 0 0 12px var(--pw-orange);
  animation: pw-blink 1.4s ease-in-out infinite;
}
@keyframes pw-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pw-eyebrow__rule { flex: 1; height: 1px; background: var(--pw-line-2); max-width: 80px; }

.pw-hero__title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--pw-text);
}
.pw-hero__title em {
  font-style: normal; color: var(--pw-orange);
  display: block;
  text-shadow: 0 0 24px rgba(255,107,26,0.4);
}
.pw-hero__subtitle {
  font-size: 18px; color: var(--pw-chrome);
  margin: 0 0 14px; letter-spacing: 0.04em;
  font-weight: 500;
}
.pw-hero__lede {
  max-width: 580px; font-size: 15px; color: var(--pw-muted);
  margin: 0 0 28px; line-height: 1.7;
}
.pw-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ TIMING BOARD ============ */
.pw-board {
  position: relative;
  background: linear-gradient(180deg, #0a0d12 0%, #15191f 100%);
  border: 1px solid var(--pw-line-2);
  padding: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 30px rgba(0,0,0,0.5),
    0 18px 50px rgba(0,0,0,0.6);
}
.pw-board::before {
  content: "";
  position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--pw-orange) 0%, var(--pw-orange) 45%, var(--pw-blue) 55%, var(--pw-blue) 100%);
}
.pw-board__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pw-line);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
}
.pw-board__head-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pw-orange-2);
}
.pw-board__head-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pw-orange); box-shadow: 0 0 8px var(--pw-orange);
  animation: pw-blink 1.4s ease-in-out infinite;
}

.pw-board__clock {
  display: flex; gap: 10px; justify-content: center;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--pw-line);
}
.pw-clock-cell {
  flex: 1; max-width: 88px;
  text-align: center;
  background: #000;
  border: 1px solid var(--pw-line-2);
  padding: 10px 4px;
  position: relative;
}
.pw-clock-cell__num {
  font-family: "Share Tech Mono", monospace;
  font-size: 38px; line-height: 1; font-weight: 400;
  color: var(--pw-led);
  text-shadow: 0 0 12px rgba(255, 139, 61, 0.65);
}
.pw-clock-cell__lbl {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
  margin-top: 4px;
}
.pw-clock-cell--sep { display: flex; align-items: center; max-width: 14px; }
.pw-clock-cell--sep span {
  font-family: "Share Tech Mono", monospace; font-size: 30px;
  color: var(--pw-led); animation: pw-blink 1s ease-in-out infinite;
}

.pw-board__rows { padding: 14px 0 4px; }
.pw-board__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--pw-line);
  font-size: 13px;
}
.pw-board__row:last-child { border-bottom: 0; }
.pw-board__k {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
}
.pw-board__v { color: var(--pw-text); font-weight: 600; }
.pw-board__v--accent { color: var(--pw-orange); }

.pw-grid {
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--pw-line);
}
.pw-grid__bar {
  height: 8px; background: #000;
  border: 1px solid var(--pw-line-2);
  position: relative; overflow: hidden;
}
.pw-grid__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--pw-orange), var(--pw-orange-2));
  width: var(--fill, 0%);
  box-shadow: 0 0 10px rgba(255,107,26,0.5);
}
.pw-grid__fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(0,0,0,0.2) 4px 5px);
}
.pw-grid__meta {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
}
.pw-grid__meta strong { color: var(--pw-orange); }

/* ============ STATS BAND ============ */
.pw-band {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--pw-bg-2);
  border-bottom: 1px solid var(--pw-line);
}
@media (max-width: 720px) { .pw-band { grid-template-columns: repeat(2, 1fr); } }
.pw-band__cell {
  padding: 26px 22px;
  border-right: 1px solid var(--pw-line);
  position: relative;
}
.pw-band__cell:last-child { border-right: 0; }
.pw-band__cell::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 22px; height: 3px; background: var(--pw-blue);
}
.pw-band__k {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
  margin-bottom: 8px;
}
.pw-band__v {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1; color: var(--pw-text);
  text-shadow: 0 0 12px rgba(39, 168, 217, 0.15);
}
.pw-band__v small {
  font-size: 14px; color: var(--pw-muted);
  margin-left: 6px; font-weight: 400;
}

/* ============ SECTION ============ */
.pw-section {
  position: relative; z-index: 2;
  padding: 72px 28px;
  max-width: 1200px; margin: 0 auto;
}
.pw-section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--pw-blue-2);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.26em;
  margin-bottom: 24px;
}
.pw-section-label::before {
  content: "//"; color: var(--pw-orange); font-weight: 800;
}
.pw-section-title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.pw-section-title em {
  font-style: normal; color: var(--pw-orange);
  display: block;
}

/* ============ VENUE / TRACK CARDS ============ */
.pw-venue-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 880px) { .pw-venue-grid { grid-template-columns: 1fr; } }

.pw-card {
  background: var(--pw-panel);
  border: 1px solid var(--pw-line);
  position: relative;
}
.pw-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: var(--pw-bg-2);
  border-bottom: 1px solid var(--pw-line);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-blue-2); font-weight: 700;
}
.pw-card__head .pw-tag {
  background: rgba(255,107,26,0.12); color: var(--pw-orange-2);
  border: 1px solid rgba(255,107,26,0.3);
}
.pw-card__body { padding: 22px; }
.pw-card__title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; font-size: 26px;
  line-height: 1.1; text-transform: uppercase;
  margin: 0 0 4px;
}
.pw-card__sub {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pw-muted);
}

.pw-card__rows {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.pw-card__rows-k {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 700;
}
.pw-card__rows-v {
  font-size: 14px; color: var(--pw-text); margin-top: 3px;
}

.pw-map {
  margin: 18px 0;
  height: 200px; border: 1px solid var(--pw-line);
  background:
    linear-gradient(rgba(39,168,217,0.04), rgba(39,168,217,0.04)),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(39,168,217,0.06) 20px 21px),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(39,168,217,0.06) 20px 21px);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pw-map__pin {
  width: 16px; height: 16px;
  background: var(--pw-orange);
  box-shadow:
    0 0 0 5px rgba(255,107,26,0.25),
    0 0 0 12px rgba(255,107,26,0.12),
    0 0 18px rgba(255,107,26,0.6);
  transform: rotate(45deg);
}

/* ============ PROGRAMME / SCHEDULE ============ */
.pw-section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--pw-line);
}
.pw-section-desc {
  font-size: 14px; color: var(--pw-muted);
  max-width: 320px; line-height: 1.6;
}

.pw-schedule { border-top: 1px solid var(--pw-line); }
.pw-row {
  display: grid; grid-template-columns: 80px 110px 1fr;
  gap: 24px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--pw-line);
  transition: background .15s ease;
  position: relative;
}
.pw-row:hover { background: rgba(39,168,217,0.04); }
.pw-row__pos {
  font-family: "Share Tech Mono", monospace;
  font-size: 28px; color: var(--pw-orange);
  font-weight: 400; line-height: 1;
  align-self: center;
  text-shadow: 0 0 8px rgba(255,107,26,0.3);
}
.pw-row__time {
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  color: var(--pw-blue-2);
  letter-spacing: 0.1em;
  align-self: center;
}
.pw-row__name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 2px;
}
.pw-row__note {
  font-size: 13px; color: var(--pw-muted); margin: 4px 0 0;
}
@media (max-width: 640px) {
  .pw-row { grid-template-columns: 60px 1fr; }
  .pw-row__time { grid-column: 2; font-size: 12px; }
}

/* ============ REGISTER CTA ============ */
.pw-register {
  position: relative; z-index: 2;
  overflow: hidden;
  padding: 90px 28px;
  background:
    linear-gradient(180deg, var(--pw-bg-2) 0%, #0a0d12 100%);
  border-top: 1px solid var(--pw-line);
  border-bottom: 1px solid var(--pw-line);
}
.pw-register::before {
  content: "GO";
  position: absolute; right: -2vw; top: 50%;
  transform: translateY(-50%);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(240px, 30vw, 460px);
  line-height: 0.8;
  color: rgba(255,107,26,0.07);
  pointer-events: none;
  letter-spacing: -0.04em;
}
.pw-register::after {
  content: "";
  position: absolute; left: 0; bottom: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #000 0 22px,
    #fff 22px 44px
  );
  opacity: 0.4;
}
.pw-register__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; flex-wrap: wrap;
}
.pw-register__slots {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--pw-orange-2);
  margin-bottom: 14px;
}
.pw-register__slots::before {
  content: ""; width: 20px; height: 2px; background: var(--pw-orange);
}
.pw-register__title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.86; text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.pw-register__title em {
  font-style: normal; color: var(--pw-orange);
  display: block;
}
.pw-register__desc {
  max-width: 520px; color: var(--pw-muted);
  font-size: 15px; line-height: 1.7;
}

/* ============ FOOTER ============ */
.pw-footer {
  position: relative; z-index: 2;
  padding: 24px 28px;
  background: #02030505;
  border-top: 1px solid var(--pw-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pw-muted); font-weight: 600;
}
.pw-footer a { color: var(--pw-muted); text-decoration: none; }
.pw-footer a:hover { color: var(--pw-orange); }
