/* ==========================================================================
   HackGlobal 2026 landing page styles
   Sections follow the order of index.html.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg: #040B1F;
  --bg-card: #0A1A3F;
  --bg-card-2: #102C6A;

  /* Brand */
  --yellow: #FFD23F;
  --yellow-hover: #FFE27A;
  --cyan: #4FC3F7;
  --hg-blue: #1E6BE0;
  --vultr-blue: #007BFC;
  --vultr-blue-dark: #0067DB;
  --vultr-navy: #142149;

  /* Text */
  --text: #E8EEFC;
  --text-strong: #FFFFFF;
  --text-muted: #B9C6E4;
  --text-faint: #8FA0C6;
  --text-on-light: #3A4766;
  --text-on-light-muted: #5A6785;

  /* Lines */
  --line: rgba(255, 255, 255, .12);
  --line-card: rgba(120, 170, 255, .18);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --radius: 16px;
  --container: 1200px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.eyebrow { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); text-shadow: 0 0 18px rgba(79, 195, 247, .35); }
.eyebrow--gold { color: var(--yellow); text-shadow: 0 0 18px rgba(255, 210, 63, .35); }
.eyebrow--lg { font-size: 28px; }
@media (max-width: 640px) { .eyebrow { font-size: 16px; } .eyebrow--lg { font-size: 20px; } }
.section-title { font-size: 44px; line-height: 1.1; }
.section-lead { color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* Pixel-cornered button (matches the HackGlobal pixel theme) */
.btn {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 16px 32px; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  text-decoration: none;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}
.btn--yellow { background: var(--yellow); color: #0A0A0A; }
.btn--yellow:hover { background: var(--yellow-hover); color: #0A0A0A; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; border: 1px solid rgba(255, 255, 255, .2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--vultr { background: var(--vultr-blue-dark); color: #fff; font-size: 15px; min-height: 44px; padding: 12px 22px; }
.btn--vultr:hover { background: var(--vultr-blue); color: #fff; }

/* Decorative pixel stars / dots */
.deco { position: absolute; pointer-events: none; }
.deco--dot { width: 8px; height: 8px; background: var(--cyan); }

/* ---------- 4. Header (white strip so the Polaris and Vultr logos stay visible) ---------- */
.site-header { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid #E3E8F2; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.header-brands { display: flex; align-items: center; gap: 18px; }
.header-brands .divider { width: 1px; height: 34px; background: #D5DCEA; }
.header-brands img.polaris { height: 38px; width: auto; }
.powered { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.powered span { font-size: 12px; font-weight: 500; color: var(--text-on-light-muted); letter-spacing: .04em; }
.powered img { height: 26px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--vultr-navy); text-decoration: none; }
.nav a:hover { color: var(--vultr-blue-dark); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 170px;
  background: radial-gradient(ellipse at 50% 0%, #0E2A6B 0%, #071437 55%, var(--bg) 100%);
}
.hero-globe {
  position: absolute; left: 50%; bottom: -520px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #4FB6FF 0%, #1E6BE0 38%, #0B2E7A 70%, #061A4A 100%);
  box-shadow: 0 0 120px 30px rgba(56, 150, 255, .45), inset 0 30px 80px rgba(170, 225, 255, .35);
}
.hero-globe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, rgba(4, 11, 31, 0), var(--bg)); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-tags { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; }
.tag-date { border: 1px solid rgba(255, 210, 63, .5); color: var(--yellow); padding: 6px 14px; }
.tag-online { background: #2FB4F5; color: #04122E; font-weight: 700; padding: 6px 14px; }
.hero-wordmark { width: 100%; max-width: 760px; }
.hero-sub { font-family: var(--font-display); font-size: 26px; line-height: 1.35; color: #fff; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }


/* ---------- 7. Generic card ---------- */
.card { background: var(--bg-card); border: 1px solid var(--line-card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; color: var(--text-muted); }

/* ---------- 8. About ---------- */
#about { padding-top: 120px; padding-bottom: 40px; }

/* ---------- 9. Tracks ---------- */
.track { background: linear-gradient(160deg, #10275C 0%, var(--bg-card) 100%); border: 1px solid rgba(120, 170, 255, .22); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.track .num { font-family: var(--font-mono); font-size: 13px; color: var(--yellow); }
.track h3 { font-size: 26px; }
.track p { font-size: 15px; color: var(--text-muted); }

/* ---------- 10. Prizes ---------- */
#prizes { background: linear-gradient(180deg, var(--bg) 0%, #081A45 50%, var(--bg) 100%); }
.prize { background: linear-gradient(170deg, #2A2208 0%, var(--bg-card) 70%); border: 2px solid var(--yellow); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.prize-head { display: flex; align-items: center; justify-content: space-between; }
.prize-head span { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.prize-cash { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; color: var(--yellow); }
.prize-label { font-size: 15px; color: var(--text-muted); }
.prize-rule { height: 1px; background: rgba(255, 210, 63, .25); }
.prize-credits { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
.prize-credits small { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.awards-title { font-size: 26px; margin: 56px 0 20px; }

/* Special award card with floating product image */
.award {
  position: relative; overflow: hidden; min-height: 210px; border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(150deg, var(--bg-card) 35%, var(--bg-card-2) 100%); border: 1px solid rgba(120, 170, 255, .28);
}
.award::before {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 250px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(81, 185, 255, .5), rgba(0, 123, 252, .16) 60%, rgba(0, 123, 252, 0));
}
.award > * { position: relative; }
.award .count { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.award h4 { font-size: 20px; line-height: 1.25; max-width: 60%; }
.award p { font-size: 15px; color: var(--text-muted); max-width: 55%; }
.award .product { position: absolute; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.product--keys  { right: -56px; bottom: 6px;   width: 250px; transform: rotate(-12deg); }
.product--pods  { right: 4px;   bottom: -34px; height: 200px; width: auto; transform: rotate(10deg); }
.product--watch { right: -18px; bottom: -26px; height: 196px; width: auto; transform: rotate(-10deg); }
.product--pro   { right: 8px;   bottom: -30px; height: 200px; width: auto; transform: rotate(6deg); }
.award--plain { min-height: 0; background: var(--bg-card); border-color: var(--line-card); }
.award--plain::before { display: none; }
.award--plain h4, .award--plain p { max-width: none; }
.award--cert { background: linear-gradient(150deg, #1A1A2E 0%, #2A2208 120%); border: 1px dashed rgba(255, 210, 63, .55); }
.award--cert::before { background: radial-gradient(closest-side, rgba(255, 210, 63, .35), rgba(255, 210, 63, .08) 60%, rgba(255, 210, 63, 0)); }
.award--cert .count { color: var(--yellow); }
.award--cert p { max-width: 52%; }
.product--cert { right: -40px; bottom: -18px; width: 210px; transform: rotate(-9deg); border-radius: 4px; box-shadow: 0 16px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25); filter: none; }

/* ---------- 11. How it works ---------- */
.step { padding-top: 20px; border-top: 3px solid var(--cyan); display: flex; flex-direction: column; gap: 8px; }
.step .when { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }
.step--event { border-top-color: var(--yellow); }
.step--event .when { color: var(--yellow); }
.step h3 { font-size: 21px; }
.step p { font-size: 15px; color: var(--text-muted); }

/* ---------- 13. Partners ---------- */
.partner-group { display: flex; flex-direction: column; gap: 18px; margin-top: 56px; }
.partner-group:first-of-type { margin-top: 0; }
.partner-group h3 { font-size: 24px; }
.logo-card { background: #fff; border-radius: 14px; height: 120px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.logo-card img { width: auto; max-width: 100%; object-fit: contain; }
.logo-card span { font-size: 12px; color: var(--text-on-light-muted); }
.logo-card--host { border: 2px solid var(--yellow); gap: 8px; }
.title-sponsor { background: #fff; border: 3px solid var(--vultr-blue); border-radius: 18px; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; }
.title-sponsor .label { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--vultr-blue-dark); }
.title-sponsor img { height: 64px; width: auto; margin-top: 10px; }
.title-sponsor p { max-width: 420px; font-size: 16px; color: var(--text-on-light); }

/* ---------- 14. FAQ (answers open on hover, or on click, tap or Enter) ---------- */
#faq .container { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0; }
.faq-q {
  width: 100%; background: none; border: 0; padding: 22px 0; min-height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
}
.faq-icon {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 210, 63, .5); color: var(--yellow); font-family: var(--font-mono); font-size: 20px;
  transition: transform .25s ease;
}
.faq-a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease; }
.faq-a p { padding: 0 52px 22px 0; color: var(--text-muted); }
.faq:hover .faq-a, .faq.is-open .faq-a { max-height: 240px; opacity: 1; }
.faq:hover .faq-icon, .faq.is-open .faq-icon { transform: rotate(45deg); }
.faq:hover .faq-q, .faq.is-open .faq-q { color: var(--yellow); }

/* ---------- 15. Final call to action ---------- */
.cta-box {
  border-radius: 22px; border: 2px solid var(--yellow); padding: 64px 32px;
  background: radial-gradient(ellipse at 50% 120%, var(--hg-blue) 0%, #0B2E7A 45%, #071437 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.cta-box h2 { font-size: 44px; line-height: 1.1; }
.cta-box p { color: #C9D4EE; }

/* ---------- 16. Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brands { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-faint); }
.footer-brands .divider { width: 1px; height: 30px; background: rgba(255, 255, 255, .18); }
.footer-contact { font-size: 14px; color: var(--text-faint); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 900px) {
  .nav, .hide-sm { display: none; }
  .container { padding: 0 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-globe { width: 600px; height: 600px; margin-left: -300px; bottom: -380px; }
  .section-title, .cta-box h2 { font-size: 34px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .header-brands { gap: 12px; }
  .header-brands img.polaris { height: 30px; }
  .powered img { height: 20px; }
  .hero-sub { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-a, .faq-icon { transition: none; }
}

/* ---------- 7b. Schedule in local time (index.html section 7, added v1.4, simple list layout v1.13, Time / Session table per day v1.14) ---------- */
.tz-schedule { --tz-key: #FFD23F; --tz-dead: #FF9A3F;
  margin-top: 56px; background: var(--bg-card); border: 1px solid var(--line-card); border-radius: 18px; padding: 36px; }
.tz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 8px; }
.tz-head .eyebrow { display: block; margin-bottom: 10px; }
.tz-title { font-size: 28px; line-height: 1.2; }
.tz-picker-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tz-picker { display: flex; align-items: center; gap: 10px; }
.tz-picker label { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.tz-select-wrap { position: relative; }
.tz-select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tz-picker select { appearance: none; -webkit-appearance: none; min-width: 230px; font: 500 15px var(--font-body); color: #fff; background: #071437; border: 1px solid rgba(255, 210, 63, .55); border-radius: 10px; padding: 10px 38px 10px 14px; cursor: pointer; }
.tz-picker select:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tz-picker select option { background: #071437; color: #fff; }
.tz-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.tz-day { margin: 34px 0 6px; font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.tz-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tz-time { font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tz-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; }
.tz-row--head { padding: 10px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .22); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-muted); }
.tz-name--key { color: var(--tz-key); }
.tz-name--dead { color: var(--tz-dead); }
.tz-fallback { color: var(--text-muted); }
@media (max-width: 760px) {
  .tz-schedule { padding: 24px 18px; }
  .tz-title { font-size: 22px; }
  .tz-picker-wrap { width: 100%; align-items: stretch; }
  .tz-picker { flex-direction: column; align-items: stretch; gap: 8px; }
  .tz-picker select, .tz-select-wrap { width: 100%; }
  .tz-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .tz-row--head { display: none; }
  .tz-time { font-size: 13px; }
  .tz-name { font-size: 17px; }
}

/* ---------- HackGlobal banner hero (added 13 Nov 2026) ---------- */
.hero--banner { padding: 72px 0 220px; }
.hero--banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 11, 31, 0) 0%, var(--bg) 100%); }
.hb-map { position: absolute; left: 50%; top: 40px; width: min(1500px, 100%); height: auto; transform: translateX(-50%); pointer-events: none; }
.hb-map path { fill: #4FC3F7; fill-opacity: .32; }
.hb-inner { gap: 20px; }
.hb-wordmark { width: 100%; max-width: 620px; }
.hb-sub { font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: #fff; margin: 0; }
.hb-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 15px; letter-spacing: .04em; }
.hb-powered { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 16px; border-radius: 999px;
  background: rgba(0, 123, 252, .14); border: 1px solid rgba(81, 185, 255, .45); }
.hb-powered span { font-size: 12px; letter-spacing: .1em; color: #CFE6FF; }
.hb-powered img { height: 18px; width: auto; }
.hb-stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.hb-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 30px; }
.hb-stats li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.hb-stats strong { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--yellow); }
.hb-stats span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: #CFE6FF; }
.hero--banner .hero-ctas { margin-top: 16px; }
.hero--banner .hero-globe { bottom: -700px; }
@media (max-width: 640px) {
  .hero--banner { padding-top: 48px; }
  .hb-map { width: 180%; top: 60px; }
  .hb-sub { font-size: 19px; }
  .hb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; width: 100%; }
  .hb-stats li { padding: 2px 8px; }
  .hb-stats li + li { border-left: 0; }
  .hb-stats strong { font-size: 42px; }
  .hero--banner .deco { display: none; }
  .hero--banner .hero-globe { bottom: -480px; }
}
