/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #00ff87;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 135, 0.15);
  --accent-secondary: #7c3aed;
  --accent-secondary-glow: rgba(124, 58, 237, 0.15);
  --danger: #ff4757;
  --info: #3b82f6;
  --success: #00ff87;
  --border: #2a2a2a;
  --border-hover: #3a3a3a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--accent);
  margin-right: 2px;
}

.logo-highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 135, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
              var(--bg-primary);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 135, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--accent-glow);
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.title-line {
  display: block;
}

.title-highlight {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 255, 135, 0.3),
               0 0 80px rgba(0, 255, 135, 0.1);
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  min-width: 80px;
  text-align: center;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.countdown-separator {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.hero-cta:hover::before {
  transform: translateX(100%);
}

.hero-cta:hover {
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.4);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 255, 135, 0.08);
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(0, 255, 135, 0.05);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.notice-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-notice strong {
  display: block;
  margin-bottom: 4px;
}

.about-notice p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-who {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-who h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-who p {
  color: var(--text-secondary);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), var(--accent));
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: right;
  padding-top: 4px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.timeline-dot.pulse {
  animation: dotPulse 2s infinite;
}

.timeline-dot.hard-stop {
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 135, 0); }
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-hover);
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-badge.danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.timeline-badge.info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.timeline-badge.success {
  background: rgba(0, 255, 135, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 135, 0.3);
}

/* ===== RULES ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.rule-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.rule-card:hover::before {
  opacity: 1;
}

.rule-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
}

.rule-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== PRESENTATION ===== */
.presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pres-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.pres-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 255, 135, 0.06);
}

.pres-number {
  font-family: var(--font-pixel);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.pres-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pres-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pres-warning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 71, 87, 0.06);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-secondary);
}

.pres-warning svg {
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 2px;
}

.pres-warning p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== PRIZES ===== */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}

.prize-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.prize-card:hover {
  transform: translateY(-6px);
}

.prize-card.gold {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), var(--bg-card));
  order: -1;
  padding: 52px 24px;
}

.prize-card.gold:hover {
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.12);
}

.prize-card.silver {
  border-color: rgba(192, 192, 192, 0.2);
}

.prize-card.bronze {
  border-color: rgba(205, 127, 50, 0.2);
}

.prize-place {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prize-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.prize-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.prize-mystery {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: rgba(0, 255, 135, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== JURY ===== */
.jury-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.jury-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.jury-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.jury-card {
  text-align: center;
  padding: 24px 20px;
}

.jury-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin: 0 auto 12px;
  font-family: var(--font-mono);
}

.jury-avatar.mentor {
  border-color: var(--accent-secondary);
}

.jury-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== REGISTER CTA ===== */
.section-register {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.register-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.05), rgba(124, 58, 237, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.register-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 255, 135, 0.03), transparent, rgba(124, 58, 237, 0.03), transparent);
  animation: rotateBg 12s linear infinite;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.register-box h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
}

.register-box > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}

.register-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 16px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.register-btn:hover {
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.4);
  transform: translateY(-2px);
}

.register-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .presentation-grid {
    grid-template-columns: 1fr;
  }

  .pres-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .jury-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .countdown-value {
    font-size: 1.8rem;
    padding: 10px 14px;
    min-width: 60px;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .prizes-grid {
    grid-template-columns: 1fr;
  }

  .prize-card.gold {
    order: -1;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-time {
    min-width: 40px;
    font-size: 0.9rem;
  }

  .timeline-item {
    gap: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .register-box {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -1px;
  }

  .countdown {
    gap: 4px;
  }

  .countdown-value {
    font-size: 1.4rem;
    padding: 8px 10px;
    min-width: 50px;
  }

  .countdown-separator {
    font-size: 1.2rem;
  }
}
