*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Barlow", sans-serif;
  background: #07070f;
  color: #fff;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
}

:root {
  --purple: #7c3aed;
  --purple-l: #8b5cf6;
  --purple-b: #a855f7;
  --blue: #3b82f6;
  --muted: #9ca3af;
  --dim: #6b7280;
  --border: rgba(139, 92, 246, 0.18);
}

/* ── NAVBAR ── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 92vw);
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 8px 10px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.nav-logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #111;
}
.nav-logo span {
  color: var(--blue);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.07);
}
.btn-signin {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Barlow", sans-serif;
  transition: all 0.2s;
}
.btn-signin:hover {
  background: var(--purple-l);
}
.nav-ham {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #374151;
  padding: 4px 8px;
}

.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 12, 0.97);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mob-overlay.open {
  display: flex;
}
.mob-overlay a {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.mob-overlay a:hover {
  color: var(--purple-b);
}
.mob-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.lbl {
  text-align: center;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--purple-b);
  text-transform: uppercase;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #040409;
  display: flex;
  align-items: flex-end;
}
.hero-blob {
  position: absolute;
  right: -8%;
  top: -15%;
  width: 62%;
  height: 120%;
  background: radial-gradient(
    ellipse at 55% 35%,
    #9333ea 0%,
    #7c3aed 22%,
    #6d28d9 42%,
    #4c1d95 62%,
    #1a0838 82%,
    transparent 100%
  );
  border-radius: 62% 38% 46% 54% / 58% 44% 56% 42%;
  animation: blobAnim 9s ease-in-out infinite;
}
@keyframes blobAnim {
  0%,
  100% {
    border-radius: 62% 38% 46% 54%/58% 44% 56% 42%;
  }
  33% {
    border-radius: 42% 58% 65% 35%/45% 62% 38% 55%;
  }
  66% {
    border-radius: 72% 28% 40% 60%/55% 38% 62% 45%;
  }
}
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  padding: 120px 72px 90px;
  width: 100%;
}
/* Character image box — real photo */
.char-box {
  width: 230px;
  height: 420px;
  flex-shrink: 0;
  background: rgba(115, 38, 215, 0.25);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.char-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  mix-blend-mode: luminosity;
  filter: brightness(1.05) saturate(1.2);
}
/* Purple tint overlay on char image */
.char-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(120, 40, 220, 0.18) 0%,
    rgba(80, 10, 160, 0.35) 100%
  );
  pointer-events: none;
}
.hero-txt {
  margin-left: -26px;
  padding-bottom: 24px;
  z-index: 6;
}
.hero-h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.87;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.line1 {
  color: #fff;
  display: block;
}
.line2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--purple-l);
}
.hero-tag {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(220, 210, 255, 0.72);
}
.btn-regnow {
  position: absolute;
  bottom: 80px;
  right: 72px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 15px 38px;
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-regnow:hover {
  background: rgba(124, 58, 237, 0.45);
  transform: translateY(-3px);
}
.hero-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--purple-b);
  z-index: 10;
  cursor: pointer;
}

/* ── WHO CAN PARTICIPATE ── */
#who {
  background: linear-gradient(180deg, #090010 0%, #0e0022 55%, #090010 100%);
  position: relative;
  overflow: hidden;
}
.who-top-bar {
  border-top: 2px solid rgba(139, 92, 246, 0.5);
  padding: 22px 0 6px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--purple-b);
  text-transform: uppercase;
}
.who-inner {
  padding: 60px 72px 80px;
  position: relative;
}
.px-l {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.px-l .row {
  display: flex;
  gap: 7px;
}
.pxb {
  background: var(--purple);
  display: block;
}
.px-r {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}
.px-r .row {
  display: flex;
  gap: 7px;
}
.who-h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 68px);
  text-align: center;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 26px;
}
.who-p {
  font-size: 14px;
  line-height: 1.75;
  color: #d1d5db;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}
.btn-apply {
  display: block;
  margin: 0 auto 52px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 48px;
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-apply:hover {
  background: var(--purple-l);
  transform: scale(1.05);
}
.part-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 26px;
}
.part-card {
  background: rgba(18, 12, 44, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 38px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #e8dfff;
  transition: border-color 0.25s;
}
.part-card:hover {
  border-color: rgba(139, 92, 246, 0.42);
}
.note-txt {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ── ABOUT / WHAT IS HACKATHON ── */
#about {
  background: linear-gradient(180deg, #070010 0%, #0a001a 60%, #07000e 100%);
  padding: 80px 72px 100px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 50px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 28px;
}
.about-p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #c4b5fd;
  margin-bottom: 16px;
}
.timer-lbl {
  font-size: 13px;
  color: var(--muted);
  margin: 30px 0 12px;
}
.timer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.timer-box {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 11px 26px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
  min-width: 180px;
  text-align: center;
}
.btn-regw {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 11px 28px;
  background: transparent;
  color: white;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-regw:hover {
  background: var(--purple);
  border-color: var(--purple);
}

/* photo collage — REAL IMAGES */
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 180px 180px;
  gap: 4px;
  border: 2px solid var(--blue);
  padding: 5px;
}
.collage .cell {
  overflow: hidden;
  position: relative;
}
.collage .wide {
  grid-column: 1/-1;
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cell:hover img {
  transform: scale(1.05);
}
/* crosshair corner decoration */
.cell::after {
  content: "+";
  position: absolute;
  bottom: 6px;
  right: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}

/* ── WHY PARTICIPATE ── */
#why {
  background: #050009;
  padding: 80px 72px 100px;
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  align-items: center;
  max-width: 1000px;
  margin: 48px auto 0;
}
.why-col-l {
  text-align: right;
}
.why-col-r {
  text-align: left;
}
.wi {
  margin-bottom: 38px;
}
.wi:last-child {
  margin-bottom: 0;
}
.wi-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.why-col-l .wi-row {
  justify-content: flex-end;
}
.wi-bar {
  width: 88px;
  height: 28px;
  background: var(--purple);
  flex-shrink: 0;
}
.wi-title {
  font-weight: 700;
  font-size: 15px;
  padding: 0 12px;
}
.wi-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 228px;
}
.why-col-l .wi-desc {
  margin-left: auto;
}
/* Astronaut — REAL IMAGE */
.astro-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.22);
}
.o1 {
  width: 260px;
  height: 260px;
}
.o2 {
  width: 330px;
  height: 330px;
  opacity: 0.12;
}
.astro-img {
  position: relative;
  z-index: 2;
  width: 220px;
  height: auto;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(139, 92, 246, 0.3));
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-22px) rotate(2deg);
  }
}

/* ── HOW TO PARTICIPATE ── */
#how {
  background: linear-gradient(180deg, #060008 0%, #040006 100%);
  padding: 80px 72px 100px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.step-icon {
  width: 68px;
  height: 68px;
  background: rgba(88, 28, 135, 0.55);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--purple-l);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-ttl {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.step-dsc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CHALLENGES — REAL IMAGES ── */
#challenges {
  background: #040008;
  padding: 20px 0 80px;
}
.ch-row {
  display: grid;
  grid-template-columns: 64px 200px 1fr 48px;
  align-items: center;
  gap: 24px;
  padding: 18px 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.2s;
}
.ch-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ch-row:hover {
  background: rgba(139, 92, 246, 0.05);
}
.ch-n {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #555;
  letter-spacing: 1px;
}
.ch-img {
  width: 200px;
  height: 65px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
}
.ch-d {
  font-size: 13.5px;
  line-height: 1.6;
  color: #e5e7eb;
}
.ch-lm {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--purple);
  padding: 7px 22px;
  font-size: 13px;
  font-family: "Barlow", sans-serif;
  color: white;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.ch-lm:hover {
  background: var(--purple);
}
.ch-arr {
  color: var(--purple-l);
  font-size: 18px;
  text-align: center;
  transition: transform 0.2s;
}
.ch-row:hover .ch-arr {
  transform: translate(2px, -2px);
}

/* ── SCHEDULE ── */
#schedule {
  background: linear-gradient(180deg, #06000e 0%, #080018 100%);
  padding: 80px 72px 0;
}
.sched-ttl {
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 52px;
}
.sched-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 80px;
}
.si {
  padding-right: 28px;
}
.si-ttl {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
  min-height: 48px;
  color: #e2d9ff;
}
.si-ttl.act {
  color: var(--purple);
}
.si-bar {
  height: 5px;
  background: rgba(70, 42, 100, 0.6);
  margin-bottom: 16px;
  border-radius: 2px;
}
.si-bar.act {
  background: linear-gradient(90deg, var(--purple-l), var(--purple-b));
}
.si-date {
  font-size: 14px;
  font-weight: 600;
  color: #e2d9ff;
}

/* ── REWARDS ── */
#rewards {
  background: linear-gradient(180deg, #080018 0%, #060010 100%);
  padding: 0 72px 80px;
}
.rew-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
}
.rew-card {
  background: rgba(20, 12, 46, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.rew-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-b);
  margin-bottom: 10px;
  line-height: 1.35;
}
.rew-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
}

/* Brain image in rewards */
.brain-wrap {
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  max-width: 480px;
}
.brain-wrap img {
  width: 100%;
  opacity: 0.18;
  border-radius: 16px;
  display: block;
}

/* ── FAQ ── */
#faq {
  background: linear-gradient(180deg, #050010 0%, #050008 100%);
  padding: 80px 72px;
  position: relative;
  overflow: hidden;
}
.faq-ttl {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 52px;
}
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-num {
  width: 38px;
  height: 38px;
  background: rgba(32, 22, 62, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.faq-num.p {
  color: var(--purple);
}
.faq-q {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.faq-q.active {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}
.faq-q.pt {
  color: var(--purple-b);
}
.faq-a {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  background: #040008;
  padding: 36px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 26px;
}
.foot-logo span {
  color: var(--blue);
}
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover {
  color: var(--purple-b);
}
.foot-copy {
  font-size: 12px;
  color: var(--dim);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-ham {
    display: block;
  }
  .hero-inner {
    padding: 100px 36px 80px;
  }
  .btn-regnow {
    right: 36px;
    bottom: 60px;
  }
  .who-inner {
    padding: 60px 36px 72px;
  }
  #about {
    padding: 72px 36px 80px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  #why {
    padding: 72px 36px 80px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .astro-wrap {
    display: none;
  }
  #how {
    padding: 72px 36px 80px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .ch-row {
    grid-template-columns: 40px 1fr 36px;
    padding: 16px 36px;
  }
  .ch-img {
    display: none;
  }
  #schedule {
    padding: 72px 36px 0;
  }
  .sched-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  #rewards {
    padding: 0 36px 72px;
  }
  .rew-grid {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  #faq {
    padding: 72px 36px;
  }
  .faq-row {
    grid-template-columns: 48px 1fr;
  }
  .faq-a {
    display: none;
  }
  footer {
    padding: 32px 36px;
  }
}
@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 70px;
    gap: 16px;
  }
  .char-box {
    width: 160px;
    height: 280px;
  }
  .hero-txt {
    margin-left: 0;
  }
  .btn-regnow {
    right: 24px;
    bottom: 36px;
    padding: 12px 28px;
    font-size: 13px;
  }
  .who-inner {
    padding: 48px 24px 60px;
  }
  .part-grid {
    grid-template-columns: 1fr;
  }
  #about {
    padding: 56px 24px 72px;
  }
  #why {
    padding: 56px 24px 72px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .wi-desc {
    margin-left: 0 !important;
    max-width: 100%;
  }
  .why-col-l {
    text-align: left;
  }
  .why-col-l .wi-row {
    justify-content: flex-start;
  }
  #how {
    padding: 56px 24px 72px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch-row {
    padding: 14px 24px;
  }
  #schedule {
    padding: 56px 24px 0;
  }
  .sched-track {
    grid-template-columns: 1fr;
  }
  #rewards {
    padding: 0 24px 56px;
  }
  .rew-grid {
    grid-template-columns: 1fr;
  }
  #faq {
    padding: 56px 24px;
  }
  footer {
    padding: 28px 24px;
  }
}
