@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------------------------------------------------------------
   Itkan AI Hackathon — shared styles
   Palette follows the existing Itkan event visual language.
   Swap --accent / --accent-2 here to re-brand the whole site.
   --------------------------------------------------------------- */

:root {
  --bg:          #0a0a0f;
  --bg-2:        #0d1117;
  --surface:     #12121b;
  --surface-2:   #171722;
  --border:      rgba(255, 255, 255, 0.09);
  --border-2:    rgba(255, 255, 255, 0.16);

  --text:        #e9e9f0;
  --text-2:      #b4b4c4;
  --muted:       #8b8b9e;

  --accent:      #00d2ff;
  --accent-2:    #be00ff;
  --accent-3:    #00ffaa;
  --warn:        #ffb020;

  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1080px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Decorative background ---------- */

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,210,255,.14), transparent 70%); top: -140px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(190,0,255,.11), transparent 70%); top: 40%; left: -140px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,255,170,.07), transparent 70%); bottom: 5%; right: -80px; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 210, 255, 0.32);
  background: rgba(0, 210, 255, 0.07);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
h1 .grad {
  background: linear-gradient(115deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 660px;
  margin: 0 auto 38px;
  font-weight: 300;
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  color: #06060a;
  box-shadow: 0 6px 26px rgba(0, 210, 255, 0.24);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(0, 210, 255, 0.34); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* ---------- Fact strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
}
.fact { background: var(--surface); padding: 24px 20px; text-align: left; }
.fact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.fact-value { font-size: 16px; font-weight: 650; line-height: 1.4; }

/* ---------- Sections ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--border); }

.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
}
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }

.sec-sub { color: var(--text-2); font-weight: 300; margin-top: 14px; max-width: 640px; font-size: 1.02rem; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

p + p { margin-top: 14px; }
.body-text { color: var(--text-2); font-weight: 300; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card p { color: var(--text-2); font-size: 14.5px; font-weight: 300; }

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0,210,255,.3);
  background: rgba(0,210,255,.07);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  margin-bottom: 16px;
}

/* ---------- Prizes ---------- */

.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.prize {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prize.first {
  border-color: rgba(0, 210, 255, 0.42);
  background: linear-gradient(165deg, rgba(0,210,255,.09), var(--surface) 55%);
}
.prize-place {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.prize.first .prize-place { color: var(--accent); }
.prize-amount {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.prize.first .prize-amount {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prize-unit { font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 500; }

.prize-note {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px dashed rgba(0, 255, 170, 0.33);
  background: rgba(0, 255, 170, 0.045);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 300;
}
.prize-note strong { color: var(--accent-3); font-weight: 650; }

/* ---------- Judges ---------- */

.judge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.judge-avatar {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,210,255,.2), rgba(190,0,255,.2));
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.judge-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.judge-role { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* ---------- Schedule ---------- */

.schedule { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.slot {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  padding: 17px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.slot:last-child { border-bottom: none; }
.slot-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.slot-title { font-weight: 600; font-size: 15px; }
.slot-desc { color: var(--muted); font-size: 13.5px; font-weight: 300; margin-top: 3px; }
.slot.key { background: var(--surface-2); }
.slot.key .slot-title { color: var(--accent-3); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
td { background: var(--surface); color: var(--text-2); font-weight: 300; }
tbody tr:last-child td { border-bottom: none; }
td strong, th.num, td.num { color: var(--text); font-weight: 600; }
.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
tr.total td { background: var(--surface-2); color: var(--text); font-weight: 700; border-top: 1px solid var(--border-2); }

/* ---------- Lists ---------- */

.rules { list-style: none; display: grid; gap: 13px; }
.rules li {
  padding-left: 30px;
  position: relative;
  color: var(--text-2);
  font-weight: 300;
  font-size: 15px;
}
.rules li::before {
  content: '';
  position: absolute;
  left: 6px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.rules li strong { color: var(--text); font-weight: 650; }

/* ---------- FAQ ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 11px;
}
details[open] { border-color: var(--border-2); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-size: 19px;
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: '\2212'; }
details p { margin-top: 13px; color: var(--text-2); font-size: 14.5px; font-weight: 300; }

/* ---------- TBD / placeholder marker ---------- */

.tbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(255, 176, 32, 0.11);
  border: 1px solid rgba(255, 176, 32, 0.38);
  padding: 3px 9px;
  border-radius: 5px;
  vertical-align: middle;
  white-space: nowrap;
}

.callout {
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: rgba(255, 176, 32, 0.055);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 300;
}
.callout strong { color: var(--warn); font-weight: 650; }

.callout-info {
  border-color: rgba(0, 210, 255, 0.28);
  background: rgba(0, 210, 255, 0.05);
}
.callout-info strong { color: var(--accent); }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 60px 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,210,255,.11), transparent 62%),
    var(--surface);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
footer p + p { margin-top: 8px; }

/* ---------- Leadership doc layout ---------- */

.doc-header {
  border-bottom: 1px solid var(--border);
  padding: 64px 0 44px;
}
.doc-title {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.032em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.doc-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.doc-meta span strong { color: var(--text-2); font-weight: 500; }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.metric-value {
  font-size: 1.9rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--accent);
}
.metric-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  section { padding: 56px 0; }
  .slot { grid-template-columns: 1fr; gap: 5px; }
  .doc-header { padding: 44px 0 32px; }
}

/* ---------- Print (leadership page → PDF) ---------- */

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f5f6f8; --text: #111; --text-2: #333; --muted: #666; --border: #d8dae0; --border-2: #c2c5cd; --accent: #0b6fa4; --accent-2: #7a1fb0; --accent-3: #0a7a5a; }
  body { background: #fff; color: #111; }
  .grid-bg, .orb, .nav { display: none !important; }
  a { color: #0b6fa4; }
  section { padding: 22px 0; page-break-inside: avoid; }
  .card, .metric, .table-wrap, .callout { break-inside: avoid; }
  .metric-value { color: #0b6fa4; }
  .tbd { color: #8a5a00; border-color: #c8a050; background: #fdf6e6; }
  .wrap { max-width: none; padding: 0; }
  @page { margin: 16mm; }
}
