/* =========================================================
   CYVL Hackathon — Site styles
   Builds on colors_and_type.css design tokens.
   ========================================================= */

:root {
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 120px);
  --lime: var(--cyvl-lime);
  --ink: #0a0a0a;
  --paper: #ffffff;
  --hair: hsl(0 0% 90%);
  --hair-strong: hsl(0 0% 16%);
  --muted-2: hsl(0 0% 35%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: transparent; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.mono { font-family: var(--font-mono); }

/* ----- generic eyebrow ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .sq {
  width: 8px; height: 8px;
  background: var(--lime);
  display: inline-block;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover { filter: brightness(0.94); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #222; }
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--hair-strong);
}
.btn-outline:hover { background: hsl(0 0% 96%); }
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--hair);
}
.btn-ghost:hover { background: hsl(0 0% 97%); }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 22px; width: auto; }
.brand .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 4px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--foreground);
  border-radius: 6px;
  transition: background-color .15s ease;
}
.nav-links a:hover { background: hsl(0 0% 96%); }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-right .btn-outline { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding-top: 72px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.hero-meta-row {
  display: flex;
  gap: 24px 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  align-items: center;
}
.hero-meta-row .pill { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta-row .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(218,255,0,0.22);
}
.hero h1 {
  font-size: clamp(56px, 9.5vw, 144px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 28px 0;
  color: var(--ink);
}
.hero h1 .lime-mark {
  background: var(--lime);
  padding: 0 14px;
  line-height: 0.9;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--muted-2);
  max-width: 720px;
  margin: 0 0 40px 0;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-ctas .btn { padding: 14px 22px; font-size: 15px; }
.hero-ctas .seats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
  margin-left: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-ctas .seats::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #18a957;
}

/* hero stat strip */
.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.hero-stats .cell {
  padding: 24px 28px;
  border-right: 1px solid var(--hair);
}
.hero-stats .cell:last-child { border-right: 0; }
.hero-stats .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.hero-stats .value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-stats .sub {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}
@media (max-width: 820px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .cell:nth-child(2) { border-right: 0; }
  .hero-stats .cell:nth-child(1), .hero-stats .cell:nth-child(2) {
    border-bottom: 1px solid var(--hair);
  }
}

/* =====================================================
   SECTIONS — generic
   ===================================================== */
section.block {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--hair);
}
section.block.dark {
  background: var(--ink);
  color: #fff;
  border-bottom: 0;
}
section.block.dark .section-title { color: #fff; }
section.block.dark .section-lede { color: rgba(255,255,255,0.7); }
section.block.dark .eyebrow { color: rgba(255,255,255,0.55); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head .left .eyebrow { margin-bottom: 14px; }
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.section-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 580px;
  margin: 0;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.about-card {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: #fff;
}
.about-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}
.about-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: var(--ink);
}
.about-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   TRACKS
   ===================================================== */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
}
.track {
  background: #fff;
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 240px;
}
.track .track-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.track .track-tag .sq {
  width: 8px; height: 8px;
  background: var(--lime);
}
.track h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.track p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
}
.track .ex {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.track .ex .lbl {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: 6px;
}
@media (max-width: 820px) {
  .tracks-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PRIZES
   ===================================================== */
.prizes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.prize {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 320px;
  color: var(--ink);
}
.prize.first {
  background: var(--lime);
  border-color: var(--lime);
}
.prize.second,
.prize.third {
  background: #161616;
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.prize .rank {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.7;
}
.prize.first .rank { opacity: 0.65; color: var(--ink); }
.prize .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.prize.first .name { color: var(--ink); }
.prize.second .name, .prize.third .name { color: #fff; }
.prize .amount {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.prize .currency { font-size: 0.5em; vertical-align: top; font-weight: 600; opacity: 0.6; margin-right: 4px; }
.prize .perks {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(0,0,0,0.12);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}
.prize.second .perks,
.prize.third .perks {
  border-top-color: rgba(255,255,255,0.12);
  opacity: 0.7;
}
@media (max-width: 820px) {
  .prizes { grid-template-columns: 1fr; }
}

/* extra prizes (sponsor credits) */
.prize-extras {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.prize-extras .x {
  background: #0e0e0e;
  padding: 20px 22px;
}
.prize-extras .x .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}
.prize-extras .x .v {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.prize-extras .x .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
@media (max-width: 820px) {
  .prize-extras { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   SCHEDULE
   ===================================================== */
.schedule {
  border-top: 1px solid var(--hair);
}
.row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
  transition: background .15s ease;
}
.row:hover { background: hsl(0 0% 98%); }
.row .time {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 500;
}
.row .label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.row .label .desc {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 4px;
  letter-spacing: 0;
}
.row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 4px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  align-self: center;
  white-space: nowrap;
}
.row .tag.accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 720px) {
  .row { grid-template-columns: 100px 1fr; gap: 16px; }
  .row .tag { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
}

/* =====================================================
   SPONSORS
   ===================================================== */
.sponsor-tier { margin-bottom: 56px; }
.sponsor-tier:last-child { margin-bottom: 0; }
.sponsor-tier h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 24px 0;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.sponsor-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.sponsor-row.three { grid-template-columns: repeat(3, 1fr); }
.sponsor {
  background: #fff;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: background .15s ease;
}
.sponsor:hover { background: hsl(0 0% 98%); }
.sponsor .role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.sponsor-logo { height: 28px; width: auto; }
.sponsor-logo.cyvl { height: 26px; }
.sponsor-logo.nvidia { height: 32px; }
.sponsor-logo.boston { height: 24px; width: auto; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark { height: 26px; width: 26px; display: block; }
.brand-word {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-word.nvidia {
  font-style: italic;
  letter-spacing: 0.02em;
}
.brand-word.autodesk {
  letter-spacing: -0.01em;
}
.sponsor.tbd { color: var(--muted-foreground); }
@media (max-width: 820px) {
  .sponsor-row { grid-template-columns: repeat(2, 1fr); }
  .sponsor-row.three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .sponsor-row, .sponsor-row.three { grid-template-columns: repeat(2, 1fr); }
}

.sponsor-cta {
  margin-top: 56px;
  padding: 36px;
  background: hsl(0 0% 97%);
  border: 1px solid var(--hair);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sponsor-cta .copy h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 6px 0; color: var(--ink);
}
.sponsor-cta .copy p {
  font-size: 14px; color: var(--muted-2); margin: 0;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  border-top: 1px solid var(--hair);
}
.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}
.faq-item h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 10px 0;
  display: flex; align-items: baseline; gap: 12px;
}
.faq-item h4 .qnum {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.14em;
}
.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   CTA banner
   ===================================================== */
.cta-banner {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .eyebrow { color: rgba(255,255,255,0.55); justify-content: center; }
.cta-banner h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 18px auto 28px;
  max-width: 880px;
}
.cta-banner h2 .lime-mark {
  background: var(--lime); color: var(--ink);
  padding: 0 14px; display: inline-block; line-height: 0.98;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.cta-banner .btn-primary { padding: 16px 28px; font-size: 16px; }

/* =====================================================
   FOOTER
   ===================================================== */
footer.site {
  padding: 64px 0 36px;
  background: #fff;
  border-top: 1px solid var(--hair);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hair);
}
.foot-top .brand-block img { height: 26px; margin-bottom: 16px; }
.foot-top .brand-block p {
  font-size: 14px; color: var(--muted-2); line-height: 1.55; margin: 0 0 16px;
  max-width: 320px;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px;
  color: var(--foreground);
}
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (max-width: 820px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* =====================================================
   road-perspective motif (subtle, for dark CTA)
   ===================================================== */
.road-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}
.cta-banner > .wrap { position: relative; z-index: 1; }

/* selection */
::selection { background: var(--lime); color: var(--ink); }
