/* style.css */
:root{
  --bg:#070A12;
  --navy:#0B1B3A;
  --navy-2:#07142E;

  --text:#EAF0FF;
  --muted: rgba(234, 240, 255, .72);
  --muted2: rgba(234, 240, 255, .55);

  --accent:#7C5CFF;
  --accent2:#3AA9FF;

  --gold:#D6B15B;
  --silver:#C9D3E6;

  --stroke: rgba(186, 212, 255, .14);
  --stroke2: rgba(186, 212, 255, .08);

  --shadow-soft: 0 12px 34px rgba(0,0,0,.35);
  --radius: 18px;

  --max: 1200px;
  --pad: clamp(18px, 4vw, 40px);

  --focus: 0 0 0 3px rgba(58,169,255,.30), 0 0 0 1px rgba(58,169,255,.55);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
  line-height:1.55;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* ======= BACKGROUND ======= */
.bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(58,169,255,.14), transparent 58%),
    radial-gradient(1000px 680px at 50% -10%, rgba(11,27,58,.65), transparent 60%),
    linear-gradient(180deg, rgba(7,10,18,1) 0%, rgba(7,10,18,1) 70%, rgba(7,10,18,1) 100%);
}
.bg::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(58,169,255,.14), transparent 55%),
    radial-gradient(860px 520px at 70% 35%, rgba(124,92,255,.12), transparent 60%),
    radial-gradient(900px 560px at 50% 70%, rgba(58,169,255,.06), transparent 62%);
  filter: blur(22px);
  opacity: .9;
  animation: aurora 14s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}
@keyframes aurora{
  0%{ transform: translate(-2%, -1%) scale(1); }
  100%{ transform: translate(2%, 1%) scale(1.06); }
}
.gridlines{
  position: fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.12;
  background:
    linear-gradient(to right, rgba(201,211,230,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,211,230,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 45% at 50% 10%, rgba(0,0,0,.9), transparent 72%);
  -webkit-mask-image: radial-gradient(60% 45% at 50% 10%, rgba(0,0,0,.9), transparent 72%);
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift{
  0%{ background-position: 0 0, 0 0; }
  100%{ background-position: 80px 40px, 80px 40px; }
}
.noise{
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.spotlight{
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background: radial-gradient(260px 200px at var(--mx, 50%) var(--my, 20%), rgba(58,169,255,.10), transparent 68%);
  opacity:.55;
  transition: opacity .25s ease;
}

.wrap{
  width:100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section{
  padding: clamp(46px, 7vw, 92px) 0;
  position: relative;
}
.divider{
  height:1px;
  border:0;
  background: linear-gradient(90deg, transparent, rgba(186,212,255,.18), transparent);
  margin: 0;
}

/* ======= SECTION HEADERS ======= */
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
  flex-wrap:wrap;
}
h2{
  margin:0;
  font-size: clamp(20px, 3.6vw, 30px);
  letter-spacing:-0.02em;
  position:relative;
  padding-left: 14px;
}
h2::before{
  content:"";
  position:absolute;
  left:0; top: 0.2em;
  width: 4px; height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58,169,255,.95), rgba(124,92,255,.75));
  box-shadow: 0 0 18px rgba(58,169,255,.18);
}
.hint{ margin:0; color: var(--muted2); font-size: 13px; }

/* ======= INTRO OVERLAY ======= */
.intro{
  position: fixed;
  inset: 0;
  display:grid;
  place-items:center;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(58,169,255,.12), transparent 60%),
    radial-gradient(900px 520px at 40% 20%, rgba(124,92,255,.12), transparent 60%),
    rgba(7,10,18,.92);
  z-index: 50;
  animation: introFade 1.65s ease forwards;
  animation-delay: 1.85s; /* ~1.5–2s before fade */
  backdrop-filter: blur(10px);
}
@keyframes introFade{
  to { opacity:0; visibility:hidden; }
}
.intro-logo{
  width: min(260px, 62vw);
  filter: drop-shadow(0 24px 90px rgba(58,169,255,.18));
  animation: introLogo 1.55s cubic-bezier(.2,.9,.2,1) forwards;
  transform-origin:center;
}
@keyframes introLogo{
  0%{
    opacity:0;
    transform: scale(.82) translateY(10px);
    filter: blur(10px) drop-shadow(0 0 0 rgba(58,169,255,0));
  }
  55%{
    opacity:1;
    transform: scale(1.05) translateY(0);
    filter: blur(0) drop-shadow(0 24px 90px rgba(58,169,255,.18));
  }
  100%{
    opacity:1;
    transform: scale(1) translateY(0);
  }
}

/* ======= HEADER / TOP ======= */
header{ padding: 28px 0 0; }
.top{
  text-align:center;
  padding: 16px 0 26px;
  position: relative;
}
.logo{
  margin: 0 auto 14px;
  width: min(180px, 46vw);
  filter: drop-shadow(0 22px 70px rgba(58,169,255,.14));
  transform: translateZ(0);
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}

/* countdown – under logo */
.countdown-wrap{
  display:flex;
  justify-content:center;
  margin: 14px 0 12px;
}
.countdown{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: rgba(234,240,255,.86);
}
.countdown .label{
  width: 100%;
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(234,240,255,.92);
  margin-bottom: 6px;
}
.timer{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.tbox{
  min-width: 74px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(11,27,58,.20);
  box-shadow: 0 0 0 1px rgba(186,212,255,.06);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.tbox::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(220px 120px at 20% 10%, rgba(214,177,91,.10), transparent 70%);
  opacity:.9;
  pointer-events:none;
}
.tval{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  position:relative;
}
.tunit{
  font-size: 11px;
  color: rgba(234,240,255,.62);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
  position:relative;
}

.cta-row{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 8px;
}
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border:1px solid rgba(186,212,255,.14);
  background: linear-gradient(180deg, rgba(11,27,58,.78), rgba(11,27,58,.34));
  color: var(--text);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  cursor:pointer;
  user-select:none;
  font-weight: 650;
  letter-spacing: .01em;
  min-width: 164px;
  overflow:hidden;
}
.btn::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(90deg, rgba(201,211,230,.20), rgba(214,177,91,.14), rgba(58,169,255,.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}
.btn::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(234,240,255,.16) 45%, transparent 60%);
  transform: translateX(-120%);
  opacity: 0;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(186,212,255,.22);
  box-shadow: 0 0 0 1px rgba(186,212,255,.10), 0 18px 62px rgba(58,169,255,.12);
}
.btn:hover::after{ opacity: 1; animation: shimmer .9s ease; }
@keyframes shimmer{ 0%{ transform: translateX(-120%);} 100%{ transform: translateX(120%);} }
.btn:focus-visible{ outline:none; box-shadow: var(--focus), 0 12px 34px rgba(0,0,0,.28); }
.btn.primary{
  border-color: rgba(58,169,255,.34);
  background: linear-gradient(180deg, rgba(58,169,255,.22), rgba(11,27,58,.42));
  box-shadow: 0 0 0 1px rgba(58,169,255,.14), 0 22px 70px rgba(124,92,255,.14);
}

/* ======= TERMS ======= */
.grid{ display:grid; gap: 14px; }
.grid.cols-4{ grid-template-columns: 1fr; }
@media (min-width: 720px){ .grid.cols-4{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px){ .grid.cols-4{ grid-template-columns: repeat(4, 1fr); } }

.card{
  border: 1px solid rgba(186,212,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,27,58,.34), rgba(7,10,18,.30));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow:hidden;
  transform: translateZ(0);
  cursor: pointer;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 240px at 25% 0%, rgba(124,92,255,.18), transparent 55%),
    radial-gradient(520px 240px at 85% 10%, rgba(58,169,255,.16), transparent 55%);
  opacity:.78;
  pointer-events:none;
  transition: opacity .25s ease;
}
.card:hover::before, .card:focus-within::before{ opacity:.95; }
.card-body{
  padding: 14px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 120px;
}
.ustawka-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.kicker{
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.tag-metal{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(186,212,255,.10);
  background: rgba(11,27,58,.22);
  font-size: 12px;
  color: rgba(234,240,255,.72);
  position: relative;
  overflow:hidden;
}
.tag-metal::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(214,177,91,.16), transparent);
  opacity:.35;
}
.date-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}
.date-row strong{
  font-size: 28px;
  letter-spacing:-0.02em;
}

/* details expand */
.details{
  max-height: 0;
  overflow:hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s ease, opacity .25s ease, transform .25s ease;
  border-top: 1px solid rgba(186,212,255,.10);
  padding-top: 0;
  margin-top: 0;
  color: rgba(234,240,255,.78);
  font-size: 13px;
}
.card:hover .details,
.card:focus-within .details{
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 10px;
  margin-top: 2px;
}
/* ustawka #4: no expand */
.no-expand:hover .details,
.no-expand:focus-within .details{
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  padding-top: 0;
  margin-top: 0;
}

.finale-bar{
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid rgba(186,212,255,.14);
  background: linear-gradient(90deg, rgba(11,27,58,.22), rgba(58,169,255,.08), rgba(124,92,255,.08), rgba(11,27,58,.22));
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow:hidden;
}
.finale-bar::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(201,211,230,.14) 45%, transparent 60%);
  transform: translateX(-120%);
  opacity: .75;
  animation: shimmer 2.8s ease-in-out infinite;
}
.finale-bar span{
  position:relative;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(234,240,255,.90);
}
.finale-dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), rgba(214,177,91,.35));
  box-shadow: 0 0 18px rgba(214,177,91,.18);
  position:relative;
  z-index:1;
}

/* ======= TABLE SHELL ======= */
.table-shell{
  border: 1px solid rgba(186,212,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,27,58,.28), rgba(7,10,18,.22));
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  position:relative;
}
.table-shell::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(620px 260px at 15% 0%, rgba(58,169,255,.10), transparent 60%);
  pointer-events:none;
  opacity:.85;
}
.table-scroll{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  position:relative;
}

/* ======= PUNKTOWANIE ======= */
.points{
  width:100%;
  border-collapse: collapse;
  background: transparent;
  min-width: 520px;
}
.points th, .points td{
  padding: 12px 12px;
  text-align:left;
  border-bottom: 1px solid rgba(186,212,255,.08);
  font-size: 14px;
  white-space: nowrap;
}
.points th{
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(11,27,58,.92), rgba(11,27,58,.62));
  backdrop-filter: blur(10px);
  font-weight: 650;
  color: rgba(234,240,255,.92);
}
.points tr:hover td{ background: rgba(58,169,255,.05); }
.points td:last-child{ font-weight: 800; }
.points tr:last-child td{ border-bottom:none; }

.info-box{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(11,27,58,.16);
  box-shadow: 0 0 0 1px rgba(186,212,255,.06);
  color: rgba(234,240,255,.82);
  font-size: 13px;
  position:relative;
  overflow:hidden;
}
.info-box::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(520px 220px at 15% 0%, rgba(214,177,91,.10), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.info-box strong{ position:relative; color: rgba(234,240,255,.92); }
.info-box span{ position:relative; }

/* ======= RANKING ======= */
table.rank{
  width:100%;
  min-width: 620px;
  border-collapse: collapse;
  background: transparent;
}
.rank th, .rank td{
  padding: 12px 12px;
  text-align:left;
  border-bottom: 1px solid rgba(186,212,255,.08);
  font-size: 14px;
  white-space: nowrap;
}
.rank th{
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(11,27,58,.92), rgba(11,27,58,.62));
  backdrop-filter: blur(10px);
  font-weight: 650;
  color: rgba(234,240,255,.92);
}
.rank tr:hover td{ background: rgba(124,92,255,.05); }
.rank tr:last-child td{ border-bottom:none; }

.place{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .01em;
}
.medal{ width: 16px; height: 16px; display:inline-block; }

/* Top3: shimmer as background (no overflow / no page jump) */
.top3{
  position:relative;
  background:
    linear-gradient(90deg,
      rgba(58,169,255,.12),
      rgba(124,92,255,.10),
      transparent 72%),
    linear-gradient(90deg,
      transparent 0%,
      rgba(214,177,91,.10) 45%,
      transparent 60%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, -120% 0;
  background-repeat: no-repeat;
  animation: top3Bg 3.2s ease-in-out infinite;
}
@keyframes top3Bg{
  0%, 55% { background-position: 0 0, -120% 0; }
  100%    { background-position: 0 0,  120% 0; }
}
.top3 td:first-child{ border-left: 2px solid rgba(214,177,91,.22); }

.toggle-row{
  display:flex;
  justify-content:center;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(186,212,255,.08);
  position:relative;
  z-index:1;
}
.toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(11,27,58,.22);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  font-weight: 650;
  position:relative;
  overflow:hidden;
}
.toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(58,169,255,.28);
  box-shadow: 0 0 0 1px rgba(58,169,255,.12), 0 18px 62px rgba(58,169,255,.10);
  background: rgba(11,27,58,.28);
}
.toggle:focus-visible{ outline:none; box-shadow: var(--focus), var(--shadow-soft); }
.chev{ width: 18px; height: 18px; transition: transform .2s ease; }
.toggle[aria-expanded="true"] .chev{ transform: rotate(180deg); }

/* ======= VIDEO CTA SECTION ======= */
.video-cta{
  border: 1px solid rgba(186,212,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,27,58,.22), rgba(7,10,18,.18));
  box-shadow: var(--shadow-soft);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.video-cta::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(700px 240px at 15% 0%, rgba(214,177,91,.10), transparent 62%),
    radial-gradient(700px 260px at 85% 0%, rgba(58,169,255,.10), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.video-cta-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 14px;
}
.video-cta p{
  margin:0;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(234,240,255,.92);
}

/* ======= FORM ======= */
form{
  border: 1px solid rgba(186,212,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,27,58,.24), rgba(7,10,18,.20));
  box-shadow: var(--shadow-soft);
  padding: 16px;
  position:relative;
  overflow:hidden;
}
form::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(680px 260px at 85% 0%, rgba(124,92,255,.12), transparent 60%);
  pointer-events:none;
  opacity:.85;
}
.form-grid{
  position:relative;
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .form-grid{ grid-template-columns: 1fr 1fr; }
  .span-2{ grid-column: 1 / -1; }
}
label{
  display:block;
  font-size: 13px;
  color: rgba(234,240,255,.88);
  margin: 0 0 6px;
  font-weight: 650;
}
.field{ display:flex; flex-direction:column; }
input[type="text"], input[type="email"]{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(7,10,18,.34);
  color: var(--text);
  outline:none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}
input::placeholder{ color: rgba(234,240,255,.35); }
input:focus{
  border-color: rgba(58,169,255,.44);
  box-shadow: var(--focus);
  background: rgba(7,10,18,.42);
  transform: translateY(-1px);
}
.error{
  margin-top: 6px;
  color: rgba(255,92,122,.92);
  font-size: 12px;
  display:none;
}
.field.invalid .error{ display:block; }
.field.invalid input{
  border-color: rgba(255,92,122,.55);
  box-shadow: 0 0 0 3px rgba(255,92,122,.18);
}
.checks{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.check{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(186,212,255,.12);
  background: rgba(11,27,58,.16);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.check:hover{
  border-color: rgba(58,169,255,.22);
  background: rgba(11,27,58,.20);
  box-shadow: 0 0 0 1px rgba(58,169,255,.10);
}
.check input{ margin-top: 3px; accent-color: var(--accent2); }

.linklike{
  appearance:none;
  border:0;
  padding:0;
  background:transparent;
  color: rgba(58,169,255,.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor:pointer;
  font: inherit;
}
.linklike:focus-visible{ outline:none; box-shadow: var(--focus); border-radius: 8px; }

.form-actions{ margin-top: 14px; display:flex; gap:12px; flex-wrap:wrap; }
.submit{ min-width: 210px; }
.form-global-error{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,92,122,.35);
  background: rgba(255,92,122,.08);
  color: rgba(255,92,122,.95);
  display:none;
  font-size: 13px;
}
.form-global-error.show{ display:block; }

/* ======= SPONSORS ======= */
.carousel{
  border: 1px solid rgba(186,212,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,27,58,.26), rgba(7,10,18,.20));
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  position:relative;
}
.carousel::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(720px 280px at 50% 0%, rgba(58,169,255,.10), transparent 62%);
  pointer-events:none;
  opacity:.85;
}
.track-viewport{ overflow:hidden; padding: 14px; position:relative; z-index:1; }
.track{
  display:flex;
  gap: 12px;
  will-change: transform;
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  touch-action: pan-y;
}
.tile{
  flex:0 0 auto;
  width: 200px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(186,212,255,.14);
  background: radial-gradient(260px 120px at 20% 10%, rgba(58,169,255,.12), transparent 65%), rgba(11,27,58,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  backdrop-filter: blur(10px);
}
.tile::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(90deg, rgba(201,211,230,.18), rgba(214,177,91,.10), rgba(58,169,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}
.tile::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(234,240,255,.12) 45%, transparent 60%);
  transform: translateX(-130%);
  opacity: 0;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(58,169,255,.30);
  box-shadow: 0 0 0 1px rgba(58,169,255,.12), 0 18px 60px rgba(58,169,255,.12);
  background: radial-gradient(260px 120px at 20% 10%, rgba(124,92,255,.14), transparent 65%), rgba(11,27,58,.18);
}
.tile:hover::after{ opacity:1; animation: shimmer .9s ease; }
.tile:focus-visible{ outline:none; box-shadow: var(--focus), var(--shadow-soft); }
.tile img{
  max-height: 46px;
  max-width: 78%;
  opacity: .95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.car-controls{
  position:absolute;
  inset:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
  z-index:2;
}
.car-btn{
  pointer-events:auto;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(186,212,255,.16);
  background: rgba(7,10,18,.28);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.car-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(186,212,255,.26);
  box-shadow: 0 0 0 1px rgba(186,212,255,.10), 0 18px 58px rgba(58,169,255,.10);
  background: rgba(7,10,18,.34);
}
.car-btn:focus-visible{ outline:none; box-shadow: var(--focus), var(--shadow-soft); }
.car-btn svg{ width:18px; height:18px; opacity:.92; }

/* ======= FOOTER (+ PixFlare logo) ======= */
footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(186,212,255,.10);
  background: linear-gradient(180deg, rgba(7,10,18,.0), rgba(11,27,58,.18));
}
.footer-row{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
}
@media (min-width: 780px){
  .footer-row{ flex-direction:row; align-items:center; }
}
.contact{ color: var(--muted); font-size: 14px; }
.contact a{
  color: rgba(58,169,255,.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact a:focus-visible{ outline:none; box-shadow: var(--focus); border-radius: 8px; }

.powered{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(234,240,255,.60);
  font-size: 13px;
  white-space: nowrap;
}
.pixflare-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(186,212,255,.10);
  background: rgba(11,27,58,.12);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pixflare-link:hover{
  transform: translateY(-1px);
  border-color: rgba(214,177,91,.20);
  box-shadow: 0 0 0 1px rgba(214,177,91,.10), 0 18px 58px rgba(0,0,0,.22);
  background: rgba(11,27,58,.18);
}
.pixflare-link:focus-visible{ outline:none; box-shadow: var(--focus); }
.pixflare-logo{
  height: 16px;
  width: auto;
  opacity: .95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.social{ display:flex; gap:10px; }
.icon-btn{
  width: 44px; height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(11,27,58,.16);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(58,169,255,.28);
  box-shadow: 0 0 0 1px rgba(58,169,255,.10), 0 18px 58px rgba(58,169,255,.10);
  background: rgba(11,27,58,.20);
}
.icon-btn:focus-visible{ outline:none; box-shadow: var(--focus), var(--shadow-soft); }
.icon-btn svg{ width: 20px; height: 20px; opacity: .92; }

/* ======= REVEAL ======= */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* ======= STICKY DOT NAV (rect) ======= */
.dotnav{
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(186,212,255,.12);
  background: rgba(7,10,18,.20);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 62px rgba(0,0,0,.35);
  transition: width .18s ease, padding .18s ease, border-color .2s ease;
  width: 46px;
  overflow:hidden;
}
.dotnav:hover{
  width: 196px;
  padding: 10px 12px;
  border-color: rgba(58,169,255,.22);
}
.dotnav a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
  color: rgba(234,240,255,.80);
  outline:none;
}
.dotnav a:hover{
  background: rgba(11,27,58,.22);
  border-color: rgba(186,212,255,.10);
}
.dotnav a:focus-visible{ box-shadow: var(--focus); }
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(234,240,255,.22);
  border: 1px solid rgba(186,212,255,.16);
  box-shadow: 0 0 0 2px rgba(11,27,58,.30);
  flex: 0 0 auto;
  position:relative;
}
.dot::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(214,177,91,.20), transparent 62%);
  opacity:0;
  transition: opacity .2s ease;
}
.dotnav a.active .dot{
  background: rgba(58,169,255,.55);
  border-color: rgba(58,169,255,.40);
  box-shadow: 0 0 0 2px rgba(11,27,58,.30), 0 0 18px rgba(58,169,255,.18);
}
.dotnav a.active .dot::after{ opacity: .8; }
.dotlabel{
  white-space:nowrap;
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.dotnav:hover .dotlabel{
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 880px){
  .dotnav{ display:none; }
}

/* ======= MODALS ======= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
}
.modal[aria-hidden="false"]{ display:grid; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(7,10,18,.68);
  backdrop-filter: blur(10px);
}

.modal__panel{
  position:relative;
  width: min(860px, 100%);
  max-height: min(80vh, 780px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(186,212,255,.14);
  background: linear-gradient(180deg, rgba(11,27,58,.55), rgba(7,10,18,.55));
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
}
.modal__panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(720px 260px at 20% 0%, rgba(58,169,255,.14), transparent 62%),
    radial-gradient(720px 260px at 80% 0%, rgba(214,177,91,.10), transparent 62%);
  opacity:.85;
  pointer-events:none;
}
.modal__head{
  position: sticky;
  top: 0;
  z-index: 2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px;
  background: linear-gradient(180deg, rgba(11,27,58,.86), rgba(11,27,58,.55));
  border-bottom: 1px solid rgba(186,212,255,.10);
  backdrop-filter: blur(12px);
}
.modal__title{
  margin:0;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.01em;
}
.modal__close{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(186,212,255,.14);
  background: rgba(7,10,18,.25);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.modal__close:hover{
  transform: translateY(-1px);
  border-color: rgba(58,169,255,.28);
  box-shadow: 0 0 0 1px rgba(58,169,255,.10), 0 18px 58px rgba(58,169,255,.10);
}
.modal__close:focus-visible{ outline:none; box-shadow: var(--focus); }
.modal__body{
  position:relative;
  padding: 14px 16px 18px;
  color: rgba(234,240,255,.86);
  font-size: 14px;
}
.modal__body p{ margin: 0 0 10px; color: rgba(234,240,255,.80); }
.modal__body h4{
  margin: 14px 0 8px;
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(234,240,255,.92);
}
.modal__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(234,240,255,.78);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .bg::before, .gridlines{ animation:none; }
  .spotlight{ opacity:0; }
  .intro{ animation:none; opacity:0; visibility:hidden; }
  .intro-logo{ animation:none; }
  .finale-bar::after{ animation:none; opacity:0; }
  .dotnav, .dotlabel{ transition:none; }
  .top3{ animation:none; }
}