/* ═══════════════════════════════════════════════
   home.css — Hero, Stats, Relay Visualizer, About, Competition
   OpenRelay · FIKSI 2026
═══════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 72px;
  position: relative;
  overflow: hidden;
}

/* radial glow behind hero text */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 900px);
  height: 500px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.04) 40%, transparent 72%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, var(--amber-dim), rgba(245, 158, 11, 0.06));
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 12px;
  font-family: 'Chakra Petch', monospace;
  color: var(--amber);
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 36px;
  animation: hero-fade-down 0.6s ease both;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

@keyframes hero-fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--text-bright);
  max-width: 980px;
  animation: hero-fade-up 0.7s 0.1s ease both;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.hero h1 .accent {
  display: block;
  color: var(--amber);
  background: linear-gradient(135deg, var(--amber), var(--amber2), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0px;
}

.hero-sub {
  margin-top: 28px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.85;
  animation: hero-fade-up 0.7s 0.2s ease both;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: hero-fade-up 0.7s 0.3s ease both;
  position: relative;
  z-index: 1;
}

/* ── STATS BAR ── */
.hero-stats {
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: hero-fade-up 0.7s 0.45s ease both;
  position: relative;
  z-index: 1;
  background: rgba(13, 17, 25, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 42px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(245, 158, 11, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats:hover {
  border-color: var(--border2);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25), 0 0 20px rgba(245, 158, 11, 0.06), inset 0 1px 0 rgba(245, 158, 11, 0.08);
}

.stat {
  text-align: center;
  padding: 0 32px;
}

.stat-num {
  font-family: 'Chakra Petch', monospace;
  font-size: 34px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
  font-family: 'Chakra Petch', monospace;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── RELAY VISUALIZER ── */
.relay-vis-wrap {
  margin-top: 56px;
  position: relative;
  z-index: 1;
  animation: hero-fade-up 0.7s 0.55s ease both;
}

.relay-vis-label {
  font-family: 'Chakra Petch', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

.relay-vis {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.relay-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.relay-dot.on {
  background: var(--amber);
  box-shadow: 0 0 7px rgba(245,158,11,0.8);
  transform: scale(1.08);
}

.relay-dot.alt {
  background: var(--green);
  box-shadow: 0 0 7px rgba(34,197,94,0.8);
}

/* ── COMPETITION BANNER ── */
.comp-banner {
  background: linear-gradient(135deg, rgba(13,26,15,0.9) 0%, rgba(7,16,26,0.9) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.comp-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.comp-left h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.comp-left p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 460px;
  line-height: 1.8;
}

.comp-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.comp-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.comp-badge:hover {
  border-color: var(--border3);
  transform: translateY(-2px);
}

.comp-badge-icon { font-size: 22px; }

.comp-badge-name {
  font-family: 'Chakra Petch', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 2px;
}

.comp-badge-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── ABOUT SECTION ── */
.about-section {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 72px;
  margin-top: 56px;
  align-items: start;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.9;
}

.about-text p strong { color: var(--text); font-weight: 500; }
.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
}

.highlight-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.spec-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 110px;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber3), transparent);
}

.spec-card-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
}

.spec-card-title {
  font-family: 'Chakra Petch', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.spec-rows {
  padding: 8px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(255,255,255,0.015); }

.spec-key {
  font-size: 13px;
  color: var(--text-dim);
}

.spec-val {
  font-family: 'Chakra Petch', monospace;
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  text-align: right;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .spec-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 84px 20px 56px;
  }

  .hero h1 {
    letter-spacing: -2px;
    line-height: 0.98;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
  }

  .stat {
    padding: 0 16px;
  }

  .stat-num {
    font-size: 24px;
  }

  .comp-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .comp-badges {
    width: 100%;
  }

  .comp-badge {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: 100%;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0;
    width: 100%;
  }

  .relay-vis {
    max-width: 100%;
  }

  .comp-left h2 {
    font-size: 24px;
  }

  .spec-row {
    padding: 11px 18px;
  }
}
