:root{
  --bg:#dfe8fb;
  --panel:#ffffff;
  --panel2:#eef3ff;
  --text:#0b1220;
  --muted:#243247;
  --line:rgba(11,18,32,.24);
  --night:#08162f;
  --night2:#0f2557;
  --nightText:#e6efff;
  --nightMuted:#9fb3d9;
  --accent:#f05924;
  --accent2:#f59e0b;
  --blue:#1e3a8a;
  --blue2:#0f2557;
  --good:#15803d;
  --shadow:0 14px 34px rgba(15,37,87,.16);
  --stripe1: rgba(30, 58, 138, .42);
  --stripe2: rgba(15, 37, 87, .40);
  --radius:18px;
  --radius2:12px;
  --max:1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(30,58,138,.24), transparent 35%),
    radial-gradient(circle at 90% 5%, rgba(240,89,36,.18), transparent 35%),
    linear-gradient(180deg, #e7edfb 0%, #dce6f8 100%);
  line-height:1.5;
  position:relative;
}

/* Two blue "racing stripes" across the site */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(115deg,
      transparent 0 33%,
      var(--stripe1) 33% 42%,
      transparent 42% 51%,
      var(--stripe2) 51% 60%,
      transparent 60% 100%);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 4px; }

.skip-link{
  position:absolute; left:-9999px; top:12px;
  background:var(--panel); border:1px solid var(--line);
  padding:10px 12px; border-radius:10px; color:var(--text);
}
.skip-link:focus{ left:12px; z-index:9999; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 18px; }

.topbar{
  position:sticky; top:0; z-index:1000;
  background:
    linear-gradient(180deg, rgba(8,22,47,.98), rgba(15,37,87,.96));
  border-bottom:1px solid rgba(159,179,217,.30);
  box-shadow: 0 10px 28px rgba(8,22,47,.45);
}

.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:82px;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:800; letter-spacing:.4px;
  color: var(--nightText);
}
.brand img{
  width:58px; height:58px; object-fit:contain;
  filter:none;
}
.brand .title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand .title strong{ font-size:14px; }
.brand .title span{ font-size:12px; color:var(--nightMuted); font-weight:700; }

.nav{
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
}
.nav a{
  padding:10px 12px;
  border:1px solid rgba(159,179,217,.20);
  border-radius: 999px;
  color:var(--nightText);
  background: rgba(255,255,255,.02);
  font-weight:800;
  font-size:13px;
}
.nav a[aria-current="page"]{
  color:#ffffff;
  background: linear-gradient(180deg, rgba(245,158,11,.30), rgba(240,89,36,.26));
  border-color: rgba(240,89,36,.68);
}
.nav a:hover{
  text-decoration:none;
  color:#ffffff;
  border-color: rgba(159,179,217,.48);
  background: rgba(255,255,255,.10);
}

main{ padding:32px 0 54px; }

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}

.card{
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  border:1px solid rgba(15,37,87,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-left{ padding:28px; }
.hero-left h1{
  margin:0 0 10px;
  font-size:42px;
  letter-spacing:-.6px;
  line-height:1.08;
  background: linear-gradient(90deg, #071127 0%, var(--blue2) 50%, var(--accent) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-left p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  max-width: 70ch;
}
.pillrow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800; font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(30,58,138,.45);
  background: rgba(30,58,138,.16);
}
.dot{ width:8px; height:8px; border-radius:999px; background: var(--accent); }
.dot.yellow{ background: var(--accent2); }
.dot.green{ background: var(--good); }

.hero-right{ padding:20px; display:flex; flex-direction:column; gap:12px; }
.logo-big{
  display:flex; align-items:center; justify-content:center;
  padding:14px;
  border-radius: var(--radius2);
  background:
    linear-gradient(160deg, rgba(30,58,138,.38), rgba(15,37,87,.22) 50%, rgba(240,89,36,.22));
  border:1px solid rgba(15,37,87,.48);
}
.logo-big img{
  width:min(100%, 350px);
  height:auto;
  object-fit:contain;
}

.hero-left{
  position:relative;
  overflow:hidden;
}
/*.hero-left::after{
  content:"";
  position:absolute;
  right:-12%;
  top:10%;
  width:52%;
  height:8px;
  background: repeating-linear-gradient(
    100deg,
    rgba(30,58,138,.24) 0 20px,
    rgba(15,37,87,.38) 20px 40px
  );
  transform:skewX(-24deg);
  border-radius:999px;
  pointer-events:none;
}
*/
.specs{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px;
}
.spec{
  padding:12px;
  border-radius: var(--radius2);
  border:1px solid rgba(15,37,87,.30);
  background: rgba(30,58,138,.14);
}
.spec b{ display:block; font-size:12px; letter-spacing:.3px; }
.spec span{ display:block; margin-top:4px; color:var(--muted); font-weight:650; font-size:13px; }

.section{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
}
.section .card{ padding:18px; }
.section h2{ margin:0 0 8px; font-size:16px; letter-spacing:-.2px; }
.section p{ margin:0; color:var(--muted); font-size:14px; }

.pagehead{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin-bottom:14px;
}
.pagehead h1{ margin:0; font-size:30px; letter-spacing:-.4px; }
.pagehead p{ margin:0; color:var(--muted); font-weight:650; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }

.driver{
  padding:18px;
  display:flex; gap:14px;
}
.avatar{
  width:54px; height:54px; border-radius:16px;
  border:1px solid rgba(17,24,39,.12);
  background:
    radial-gradient(22px 22px at 30% 30%, rgba(255,255,255,.70), transparent 70%),
    linear-gradient(180deg, rgba(210,74,31,.18), rgba(17,24,39,.01));
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  flex: 0 0 auto;
}
.driver h3{ margin:0; font-size:16px; }
.driver p{ margin:6px 0 0; color:var(--muted); font-size:14px; }
.meta{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(15,37,87,.36);
  background: rgba(30,58,138,.14);
  color: var(--text);
  font-weight:800;
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--panel);
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(11,18,32,.14);
  text-align:left;
  font-size:13px;
}
.table th{
  color: var(--muted);
  font-weight:900;
  letter-spacing:.25px;
}
.table tr:hover td{ background: rgba(30,58,138,.08); }
.kpi{
  display:flex; gap:10px; align-items:center;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(240,89,36,.56);
  background: linear-gradient(180deg, rgba(245,158,11,.36), rgba(240,89,36,.30));
  color:#1f1200;
  font-weight:900;
  font-size:12px;
}

.filters{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 10px 0 14px;
}
.filters input,.filters select{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(11,18,32,.24);
  background: var(--panel);
  color: var(--text);
  outline:none;
}
.filters input::placeholder{ color: rgba(11,18,32,.55); }

.event{
  padding:18px;
}
.event h2{ margin:0 0 6px; font-size:16px; }
.event .sub{ color:var(--muted); font-weight:700; font-size:13px; margin:0 0 12px; }
.event .chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  font-size:12px;
  padding:6px 8px;
  border-radius: 999px;
  border:1px solid rgba(15,37,87,.36);
  background: rgba(30,58,138,.14);
  color: var(--muted);
  font-weight:900;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:10px;
  margin-top:12px;
}
.thumb{
  grid-column: span 3;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border:1px solid rgba(11,18,32,.20);
  overflow:hidden;
  background: rgba(17,24,39,.04);
  position:relative;
  cursor:pointer;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:none;
}
.thumb:hover img{ transform:none; }
.thumb .ph{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color: rgba(11,18,32,.72);
  font-weight:900;
  letter-spacing:.3px;
}

.lightbox{
  position:fixed; inset:0;
  background: rgba(0,0,0,.84);
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  z-index: 4000;
}
.lightbox[aria-hidden="false"]{ display:flex; }
.lightbox .frame{
  width:min(1080px, 100%);
  max-height: min(82vh, 920px);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  overflow:hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  position:relative;
}
.lightbox img{
  width:100%;
  height:100%;
  object-fit:contain;
  background: rgba(0,0,0,.20);
}
.lightbox .bar{
  position:absolute; left:0; right:0; top:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.70), transparent);
  gap:10px;
}
.lightbox .bar span{ color: rgba(233,238,245,.85); font-weight:800; font-size:13px; }
.lightbox button{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}
.lightbox button:hover{ background: rgba(255,255,255,.10); }

.footer{
  border-top:1px solid var(--line);
  background: linear-gradient(180deg, rgba(8,22,47,.98), rgba(15,37,87,.96));
}
.footer-inner{
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: var(--nightText);
  font-weight:650;
  font-size:13px;
  flex-wrap:wrap;
}
.footer a{ color: var(--nightText); }
.footer a:hover{ color:#ffffff; }

.note{
  border:1px dashed rgba(11,18,32,.34);
  background: rgba(255,255,255,.80);
  border-radius: var(--radius);
  padding:14px;
  color: var(--muted);
  font-weight:650;
}
.note b{ color: var(--text); }

@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .section{ grid-template-columns: 1fr; }
  .thumb{ grid-column: span 4; }
  .col-4{ grid-column: span 6; }
}
@media (max-width: 640px){
  .topbar-inner{ align-items:flex-start; padding:10px 0; }
  .brand img{ width:48px; height:48px; }
  .nav{ gap:6px; }
  .nav a{ padding:9px 10px; }
  .hero-left h1{ font-size:34px; }
  .logo-big img{ width:min(100%, 290px); }
  .thumb{ grid-column: span 6; }
  .col-4,.col-6,.col-8{ grid-column: span 12; }
  .specs{ grid-template-columns: 1fr; }
}

