/* ============================================================
   STREET BRAWL - Website Styles
   Dark gaming theme, clean, responsive
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --primary: #ff4444;
  --primary-glow: rgba(255, 68, 68, 0.3);
  --accent: #ff8c00;
  --gradient: linear-gradient(135deg, #ff4444 0%, #ff8c00 100%);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Tier colors */
  --tier-c: #9e9e9e;
  --tier-b: #4caf50;
  --tier-a: #2196f3;
  --tier-s: #9c27b0;
  --tier-ss: #ff9800;
  --tier-sss: #f44336;
  --tier-ur: #ffd700;
  --tier-supreme: #ff1493;
  --tier-limited: #00ffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
code {
  background: rgba(255, 68, 68, 0.1); color: var(--primary);
  padding: 2px 8px; border-radius: 4px; font-size: 0.9em;
  font-family: 'Space Grotesk', monospace;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: all 0.3s;
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon {
  width: 36px; height: 36px; background: var(--gradient); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem; color: white;
}
.logo-text { font-family: var(--font); font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-glow {
  position: absolute; width: 600px; height: 600px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px); animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
/* Hero Logo */
.hero-logo {
  max-width: 280px; width: 70%; height: auto;
  border-radius: 20px; object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px var(--primary-glow));
  background: transparent;
}

/* Terminal Animation */
.terminal {
  max-width: 500px; margin: 0 auto 32px; border-radius: 10px; overflow: hidden;
  background: #0d1117; border: 1px solid #21262d; text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #161b22; border-bottom: 1px solid #21262d;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { color: #8b949e; font-size: 0.8rem; margin-left: 8px; font-family: var(--font); }
.terminal-body { padding: 16px 20px; min-height: 120px; font-family: 'Space Grotesk', 'Courier New', monospace; font-size: 0.85rem; line-height: 1.7; }
.terminal-line { display: flex; gap: 8px; align-items: baseline; }
.terminal-line.hidden { display: none; }
.term-prompt { color: #7ee787; font-weight: 600; }
.term-cmd { color: #e6edf3; }
.term-output { color: #8b949e; }
.term-success { color: #7ee787; }
.term-rare { color: #d2a8ff; font-weight: 600; }
.term-win { color: #ffd700; font-weight: 600; }

/* Typing cursor blink */
.term-cmd.typing { border-right: 2px solid #7ee787; animation: blink 0.7s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.term-cmd.done { border-right: none; animation: none; }

.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
  color: var(--primary); border: 1px solid rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.08); margin-bottom: 24px; font-weight: 500;
}
.hero-title { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-family: var(--font); font-size: 2.5rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ============ SECTIONS ============ */
.section { padding: 120px 0; }
.section-dark { background: rgba(255, 255, 255, 0.01); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-num { color: var(--primary); font-family: var(--font); font-size: 0.85rem; font-weight: 600; }
.section-title { font-size: 2.5rem; margin: 8px 0; }
.section-sub { color: var(--text-dim); font-size: 1.1rem; }

/* ============ FEATURES ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.3s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: rgba(255, 68, 68, 0.2); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ============ CHARACTERS ============ */
.tier-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.tier-tab {
  padding: 8px 20px; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--font); font-weight: 600; cursor: pointer; transition: 0.3s;
}
.tier-tab:hover { border-color: var(--primary); color: var(--text); }
.tier-tab.active { background: var(--gradient); color: white; border-color: transparent; }
.tier-panel { display: none; }
.tier-panel.active { display: block; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.char-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: 0.3s;
}
.char-card:hover { transform: translateY(-4px); }
.char-limited { border-color: var(--tier-limited); box-shadow: 0 0 20px rgba(0, 255, 255, 0.1); }
.char-supreme { border-color: var(--tier-supreme); box-shadow: 0 0 20px rgba(255, 20, 147, 0.1); }
.char-ur { border-color: var(--tier-ur); box-shadow: 0 0 20px rgba(255, 215, 0, 0.1); }
.char-name { font-family: var(--font); font-weight: 700; font-size: 1.1rem; }
.char-role { color: var(--text-dim); font-size: 0.85rem; margin: 4px 0; }
.char-skill { color: var(--primary); font-size: 0.8rem; font-style: italic; }
.tier-note { color: var(--text-dim); text-align: center; font-size: 0.9rem; padding: 20px; }
.roles-bar { display: flex; justify-content: center; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.role-item { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.9rem; }
.role-icon { font-size: 1.2rem; }

/* ============ COMMANDS ============ */
.commands-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cmd-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cmd-group-title { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.cmd-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cmd-item:last-child { border-bottom: none; }
.cmd-item code { font-size: 0.85rem; }
.cmd-item span { color: var(--text-dim); font-size: 0.85rem; }
.cmd-note { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-top: 32px; }

/* ============ STATS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.stat-num {
  font-family: var(--font); font-size: 3rem; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-family: var(--font); font-weight: 600; font-size: 1.1rem; margin: 4px 0; }
.stat-detail { color: var(--text-dim); font-size: 0.85rem; }

/* ============ CTA ============ */
.cta-section { padding: 120px 0; text-align: center; position: relative; }
.cta-title { font-size: 3rem; margin-bottom: 16px; }
.cta-sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 40px; }

/* ============ FOOTER ============ */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; width: 100%; text-align: center; margin-top: 16px; }

/* ============ REVEAL ANIMATION ============ */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border); }
  .features-grid, .commands-showcase, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .char-grid { grid-template-columns: 1fr; }
  .hero-stat-num { font-size: 2rem; }
}
