/* LokGen AI Hackathons: site styles (no build step). Brand colours from the LLP branding kit. */
:root {
  /* LokGen AI brand palette (from the LLP branding kit) */
  --brand-navy: #0e1433;
  --brand-teal: #2fc6d8;
  --brand-blue: #5b86f2;
  --brand-purple: #8e63f7;
  --brand-purple-deep: #6a3ddc;
  --grad: linear-gradient(90deg, var(--brand-teal), var(--brand-blue) 50%, var(--brand-purple));

  /* Light theme (default, matches letterhead/signboard) */
  --bg: #ffffff;
  --bg-2: #f5f7fd;
  --surface: #ffffff;
  --surface-2: #f0f3fc;
  --border: #e1e6f5;
  --text: #0e1433;
  --muted: #475077;
  --kicker: #0b8190;
  --link: #4a6fe0;
  --tint: rgba(91, 134, 242, .12);
  --primary: var(--brand-blue);
  --primary-2: var(--brand-teal);
  --accent: var(--brand-purple-deep);
  --success: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 20, 51, .08);
  --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f26;
    --bg-2: #0e1433;
    --surface: #121a3d;
    --surface-2: #19234f;
    --border: #283268;
    --text: #eef0fb;
    --muted: #a6acd2;
    --kicker: #2fc6d8;
    --link: #8fb0ff;
    --tint: rgba(91, 134, 242, .22);
    --shadow: 0 10px 40px rgba(0, 0, 0, .4);
    color-scheme: dark;
    }
}
:root[data-theme="dark"] {
  --bg: #0a0f26;
  --bg-2: #0e1433;
  --surface: #121a3d;
  --surface-2: #19234f;
  --border: #283268;
  --text: #eef0fb;
  --muted: #a6acd2;
  --kicker: #2fc6d8;
  --link: #8fb0ff;
  --tint: rgba(91, 134, 242, .22);
  --shadow: 0 10px 40px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: "Outfit", "Inter", sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(142, 99, 247, .3); }
.btn-accent:hover { box-shadow: 0 12px 30px rgba(142, 99, 247, .42); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.brand .ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.brand span { font-family: "Outfit", sans-serif; font-size: 1.15rem; line-height: 1.1; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 1.05rem;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(ellipse at center, var(--tint), transparent 60%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--muted); font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); margin: 1.2rem 0 1rem; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.6rem 0; }
.badge { padding: .4rem .85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }

.countdown { display: flex; justify-content: center; gap: .8rem; margin: 1.8rem 0; }
.countdown[hidden] { display: none; }
.cd-unit {
  min-width: 84px; padding: .9rem .6rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cd-unit b { display: block; font-family: "Outfit", sans-serif; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.seat-note { margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.seat-note strong { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.kicker { color: var(--kicker); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .5rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.2rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.card .ico { font-size: 1.8rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* Stats */
.stats { padding: 0; margin-top: -10px; position: relative; z-index: 2; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.stat { padding: 1.4rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: "Outfit", sans-serif; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: s; content: "0" counter(s); position: absolute; top: 1.2rem; left: 1.5rem;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: .9rem; color: var(--kicker);
}

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.day {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.1rem 1.3rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.day .num { font-family: "Outfit", sans-serif; font-size: .8rem; font-weight: 700; color: var(--kicker); letter-spacing: .1em; text-transform: uppercase; }
.day h3 { font-size: 1.1rem; }
.day dl { margin: 0; font-size: .88rem; }
.day dt { font-weight: 600; color: var(--text); margin-top: .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.day dd { margin: 0; color: var(--muted); }
.day .tag { align-self: flex-start; font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: rgba(142, 99, 247, .14); color: var(--accent); }
.day.finale { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, var(--surface)), var(--surface)); border-color: var(--primary); }
.phase-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.6rem; color: var(--muted); font-size: .9rem; }

/* Tracks */
.track .ideas { margin: .7rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }

/* Toolkit */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.tool { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tool .t-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.2rem; flex: none; }
.tool b { display: block; font-size: .95rem; }
.tool small { color: var(--muted); font-size: .8rem; }
.concepts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }

/* Takeaways */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.check-list li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .15); color: var(--success); font-weight: 700; font-size: .9rem; }

/* Prizes */
.prize { text-align: center; }
.prize .medal { font-size: 2.4rem; }
.prize.top { border-color: var(--brand-purple); background: linear-gradient(170deg, rgba(142, 99, 247, .14), var(--surface)); }

/* Judging */
.bars { display: grid; gap: 1rem; max-width: 760px; margin: 0 auto; }
.bar-row { display: grid; grid-template-columns: 1fr 60px; gap: .4rem 1rem; align-items: center; }
.bar-row label { font-weight: 500; }
.bar-row output { text-align: right; font-family: "Outfit", sans-serif; font-weight: 700; }
.bar { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bars.in .bar i { width: var(--w); }

/* Mentors */
.mentor { text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: "Outfit", sans-serif; font-size: 1.6rem; font-weight: 700; }
.mentor.placeholder .avatar { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: stretch; }
.price-card { padding: 2rem; border-radius: 20px; border: 1px solid var(--primary); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--surface)); }
.price-card .price { font-family: "Outfit", sans-serif; font-size: 2.6rem; font-weight: 700; margin: .4rem 0; }
.price-card ul { padding-left: 1.1rem; color: var(--muted); margin: 1rem 0 1.6rem; }
.price-card li { margin: .3rem 0; }
.req-card h3 { margin-bottom: .8rem; }
.req-card ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.req-card li { margin: .45rem 0; }
.req-card li b { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand-purple); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); }

/* Final CTA */
.final-cta { text-align: center; padding: 100px 0; background: radial-gradient(ellipse at center, var(--tint), transparent 65%); }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.final-cta p { color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 110px; background: var(--bg-2); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { margin: 0 0 .8rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: var(--text); opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--link); }
.brand-tagline { font-style: italic; color: var(--brand-purple); font-weight: 500; margin-top: .6rem; }
.copyright { margin-top: 2.5rem; color: var(--muted); font-size: .85rem; }

/* Sticky CTA bar */
.sticky-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .8rem .7rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translateY(150%); transition: transform .3s; max-width: 640px; margin: 0 auto;
}
.sticky-bar.show { transform: none; }
.sticky-bar .sb-text { font-size: .9rem; line-height: 1.3; }
.sticky-bar .sb-text b { display: block; font-family: "Outfit", sans-serif; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 20px 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .7rem 0; font-size: 1.05rem; }
  .menu-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .pricing, .g-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 50px; }
  .roadmap, .g-3, .g-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cd-unit { min-width: 0; flex: 1; padding: .7rem .3rem; }
  .cd-unit b { font-size: 1.6rem; }
  .countdown { gap: .5rem; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #net-canvas { display: none; }
}

/* ---------- Hackathons overview: program cards ---------- */
.programs { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; }
.program {
  display: flex; flex-direction: column; gap: .5rem; padding: 2rem; border-radius: 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); transition: transform .2s, border-color .2s;
}
.program.featured { border-color: var(--primary); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--surface)); }
a.program:hover { transform: translateY(-4px); }
.program.soon { border-style: dashed; }
.program h3 { font-size: 1.7rem; }
.program-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; margin-bottom: .4rem; }
.program-tag { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--kicker); }
.status { font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.open { background: rgba(34, 197, 94, .14); color: var(--success); }
.program .btn { align-self: flex-start; }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }
