/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(-2deg); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,162,39,0.18), 0 0 60px rgba(201,162,39,0.08), 0 0 0 6px #05121D, 0 40px 80px rgba(0,0,0,0.7); }
  50%       { box-shadow: 0 0 40px rgba(201,162,39,0.38), 0 0 100px rgba(201,162,39,0.18), 0 0 0 6px #05121D, 0 40px 80px rgba(0,0,0,0.7); }
}
@keyframes accentGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(201,162,39,0.4); }
  50%       { text-shadow: 0 0 24px rgba(201,162,39,0.9), 0 0 48px rgba(201,162,39,0.5); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scanLine {
  0%   { top: 0%; }
  100% { top: 100%; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.4; }
}
@keyframes pulseRing {
  0%   { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-8px); }
  60%       { transform: translateY(-3px); }
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 28px; }
}

/* ========== SCROLL REVEAL STATES ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-left  { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }
.reveal.reveal-scale { transform: scale(0.85); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }

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

:root {
  /* App color palette from Mobile_BooyahHub */
  --primary:        #C9A227;
  --primary-hover:  #b08d1e;
  --primary-dark:   #8B6914;
  --primary-light:  #E8D5A8;
  --accent:         #10B981;
  --accent-hover:   #0ea572;
  --bg:             #020C15;
  --bg-card:        #05121D;
  --bg-card2:       #0A1A26;
  --surface:        #0F1F2C;
  --surface2:       #1A2B38;
  --text:           #FFFFFF;
  --text-secondary: #C4C7CB;
  --text-muted:     #8E8E93;
  --text-disabled:  #5C5F66;
  --border:         #2A3A48;
  --border-light:   #1E2D3A;
  --btn-text:       #020C15;
  --error:          #F44336;
  --success:        #10B981;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ========== ACCENT ========== */
.accent { color: var(--primary); }

.accent-line {
  display: inline-block;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 10px;
}
.visible .accent-line,
.accent-line.visible {
  animation: lineGrow 0.5s 0.2s ease forwards;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 140%; }
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,162,39,0.35);
}
.btn-primary.large {
  font-size: 17px;
  padding: 16px 36px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--btn-text);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(2, 12, 21, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  animation: navSlideDown 0.6s ease both;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  animation: fadeInLeft 0.7s 0.2s ease both;
}
.logo-icon {
  color: var(--primary);
  font-size: 20px;
  animation: rotateSlow 6s linear infinite;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: relative;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Sliding indicator — injected by JS */
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(201,162,39,0.6);
}

.btn-nav {
  background: var(--primary);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-nav:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(201,162,39,0.3);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
  background: linear-gradient(135deg, #020C15 0%, #05121D 50%, #020C15 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,162,39,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  padding: 80px 60px 80px 60px;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-title {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.5s ease both;
}
.hero-title .accent {
  animation: accentGlow 3s ease-in-out infinite;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.7s 0.7s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.9s ease both;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  z-index: 1;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 550px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 3px solid var(--border);
  box-shadow:
    0 0 0 6px var(--bg-card2),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(201,162,39,0.18);
  overflow: hidden;
  position: relative;
  animation: floatPhone 4s ease-in-out infinite, scaleIn 0.8s 0.4s ease both, glowPulse 4s 1s ease-in-out infinite;
}
.phone-mockup::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.7), transparent);
  animation: scanLine 3s linear infinite;
  pointer-events: none;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #020C15 0%, #081724 100%);
  padding: 14px 12px 10px;
  overflow: hidden;
}

.screen-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Phone Status Bar */
.phone-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 4px;
}
.phone-status-icons {
  display: flex;
  gap: 5px;
  font-size: 9px;
}

/* Flutter TeamProfileHeader */
.flutter-profile-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.flutter-team-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flutter-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  object-fit: cover;
}
.flutter-greeting {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.1;
}
.flutter-team-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.flutter-notif-btn {
  position: relative;
  font-size: 16px;
  color: #fff;
  padding: 3px;
  cursor: pointer;
}
.flutter-notif-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #f44336;
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #020C15;
}

/* Flutter Banner Slider */
.flutter-banner {
  width: 100%;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.3);
  margin-bottom: 8px;
}
.flutter-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.4);
  padding: 2px 5px;
  border-radius: 10px;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.flutter-banner-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 2px;
}
.flutter-banner-sub {
  font-size: 8.5px;
  color: var(--text-secondary);
}

/* Flutter Mode Filter Chips */
.flutter-filter-row {
  width: 100%;
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.flutter-chip {
  padding: 2.5px 7px;
  border-radius: 16px;
  font-size: 8.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}
.flutter-chip.active {
  background: rgba(201,162,39,0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Flutter Scrim Section Title */
.flutter-section-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.flutter-section-title span {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
}
.flutter-section-title a {
  font-size: 8.5px;
  color: var(--primary);
  text-decoration: none;
}

/* Flutter ScrimItemCard Grid (2x2) */
.flutter-scrim-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.flutter-scrim-card {
  height: 94px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  background-size: cover;
  background-position: center;
}
.flutter-scrim-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(2,12,21,0.94) 75%);
}
.flutter-scrim-content {
  position: relative;
  z-index: 1;
}
.flutter-card-tag {
  background: var(--primary);
  color: #020C15;
  font-size: 6.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 2px;
}
.flutter-card-title {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flutter-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  font-size: 7.5px;
  color: var(--text-secondary);
}
.flutter-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.flutter-card-meta i {
  color: var(--primary);
  font-size: 7.5px;
  width: 8px;
}

/* Flutter UserMainNavigator Bottom Nav Bar */
.flutter-bottom-nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.flutter-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--text-muted);
}
.flutter-nav-tab i {
  font-size: 12px;
}
.flutter-nav-tab.active {
  color: var(--primary);
  font-weight: 700;
}

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== PROGRAMS ========== */
.programs {
  padding: 100px 0;
  background: var(--surface);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,162,39,0.08);
}
.program-card.featured {
  border-color: var(--primary);
  position: relative;
}
.program-card.featured::before {
  content: 'TERPOPULER';
  position: absolute;
  top: 14px; right: 14px;
  background: var(--primary);
  color: var(--btn-text);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 1;
}

.program-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  transition: transform 0.3s;
}
.program-card:hover .program-img { transform: scale(1.05); }
.program-card:hover .program-img i { animation: iconBounce 0.6s ease; }

.gaming-img {
  background: linear-gradient(180deg, rgba(2, 12, 21, 0.45) 0%, rgba(5, 18, 29, 0.95) 100%),
              url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=800&auto=format&fit=crop&q=80') center/cover no-repeat;
  color: var(--primary);
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.community-img {
  background: linear-gradient(180deg, rgba(2, 12, 21, 0.45) 0%, rgba(5, 18, 29, 0.95) 100%),
              url('https://images.unsplash.com/photo-1511512578047-dfb367046420?w=800&auto=format&fit=crop&q=80') center/cover no-repeat;
  color: var(--accent);
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.stats-img {
  background: linear-gradient(180deg, rgba(2, 12, 21, 0.45) 0%, rgba(5, 18, 29, 0.95) 100%),
              url('https://images.unsplash.com/photo-1560253023-3ec5d502959f?w=800&auto=format&fit=crop&q=80') center/cover no-repeat;
  color: var(--primary-light);
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.program-body { padding: 24px; }
.program-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.program-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.btn-card:hover {
  background: var(--primary);
  color: var(--btn-text);
}

/* ========== FEATURES ========== */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features-left .section-tag  { text-align: left; }
.features-left .section-title { text-align: left; font-size: 38px; margin-bottom: 16px; }
.features-left .section-desc  { text-align: left; max-width: 100%; margin: 0 0 36px; }

.features-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.feature-item:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.feature-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover .feature-icon {
  background: rgba(201,162,39,0.2);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 0 20px rgba(201,162,39,0.3);
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-text p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== TECH STACK ========== */
.tech-stack {
  padding: 100px 0;
  background: var(--surface);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,162,39,0.1);
}

.tech-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s;
}

.tech-card:hover .tech-icon {
  transform: scale(1.15);
}

.tech-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.hiw-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hiw-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.hiw-step:hover {
  border-color: rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.step-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  min-width: 60px;
  opacity: 0.4;
}
.hiw-step:hover .step-num { opacity: 0.9; }

.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hiw-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tournament-pass-card {
  width: 320px;
  background: linear-gradient(145deg, #051422 0%, #081B2B 100%);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(201,162,39,0.12);
  position: relative;
  text-align: left;
  animation: floatPhone 4.5s ease-in-out infinite;
}
.tournament-pass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 16px 16px 0 0;
}
.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.pass-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pass-id {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.pass-game {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pass-flame {
  font-size: 26px;
  color: #ff5722;
  background: rgba(255,87,34,0.12);
  padding: 10px;
  border-radius: 10px;
}
.pass-game h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.pass-game p {
  font-size: 11px;
  color: var(--text-muted);
}
.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  background: rgba(0,0,0,0.25);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.pass-item span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pass-item strong {
  font-size: 12px;
  color: var(--text);
}
.pass-item .accent-text { color: var(--primary); }
.pass-item .ready-text { color: var(--accent); }
.pass-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.pass-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.pass-code i { font-size: 16px; color: var(--primary); }
.pass-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========== TEAM ========== */
.team {
  padding: 100px 0;
  background: var(--surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 18px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,162,39,0.08);
}

.team-avatar {
  width: 76px; height: 76px;
  background: rgba(201,162,39,0.1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(201,162,39,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover .team-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(201,162,39,0.45);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.team-role {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.team-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 40px;
}

.team-socials a {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.team-socials a:hover {
  background: var(--primary);
  color: var(--btn-text);
  border-color: var(--primary);
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-inner p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
}

/* ========== FOOTER ========== */
.footer {
  background: #010810;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 260px;
}

.footer-links h5,
.footer-github h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-disabled);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links ul a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links ul a:hover { color: var(--primary); }

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.github-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(201,162,39,0.06);
  box-shadow: 0 4px 16px rgba(201,162,39,0.15);
}
.github-btn i { font-size: 18px; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: var(--text-disabled);
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-content { padding: 60px 40px 40px; max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image { padding: 40px; }

  .programs-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: 1fr; gap: 50px; }
  .features-left .section-title { text-align: center; }
  .features-left .section-tag   { text-align: center; }
  .features-left .section-desc  { text-align: center; margin: 0 auto 36px; max-width: 560px; }
  .features-left .btn-primary   { display: flex; justify-content: center; }

  .hiw-wrapper { grid-template-columns: 1fr; gap: 50px; }
  .hiw-image { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 520px) {
  .tech-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 24px 30px; }
  .hero-title { font-size: 40px; }
}

/* ========== MODAL POPUP DOWNLOAD APK ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: linear-gradient(135deg, #0d1b2a 0%, #081119 100%);
  border: 1px solid rgba(255, 94, 0, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 94, 0, 0.2);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: var(--text-primary);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(255, 94, 0, 0.12);
  border: 1px solid rgba(255, 94, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  animation: pulseRocket 2s infinite ease-in-out;
}

@keyframes pulseRocket {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: rgba(255, 94, 0, 0.1);
  border: 1px solid rgba(255, 94, 0, 0.25);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.modal-subtext {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn-primary,
.modal-actions .btn-outline {
  padding: 10px 20px;
  font-size: 13.5px;
  cursor: pointer;
}

