/* ============================================
   SkinDuel — CS2 Price Trivia
   Design: Dark terminal aesthetic, electric orange primary, cyber cyan accent
   Fonts: Chakra Petch (display) + Space Grotesk (body)
   ============================================ */

:root {
  --bg: #080a0e;
  --bg-surface: #0e1117;
  --bg-card: #111520;
  --bg-card-hover: #161b27;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);
  --fg: #e8eaf0;
  --fg-muted: #6b7280;
  --fg-subtle: #3d4450;
  --accent: #ff6b2c;
  --accent-dim: rgba(255, 107, 44, 0.15);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* — Navigation — */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(255, 107, 44, 0.4);
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 44, 0.2);
}

/* — Hero — */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 44, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 0%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 460px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  padding: 0 28px 0 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-bright);
  margin-right: 28px;
}

/* — Duel Game Visual — */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.duel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px 24px;
  width: 180px;
  position: relative;
  transition: transform 0.3s ease;
}

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

.duel-card.duel-left {
  border-color: rgba(255, 107, 44, 0.3);
}

.card-weapon {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.card-skin {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.card-condition {
  font-size: 0.72rem;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
}

.card-vs {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duel-left .card-vs { right: -11px; }
.duel-right .card-vs { left: -11px; }

.duel-or {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* — Game Modes — */
.gamemodes {
  padding: 100px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1rem;
  color: var(--fg-muted);
}

.modes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mode-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.mode-card.mode-primary {
  border-color: rgba(255, 107, 44, 0.3);
  background: rgba(255, 107, 44, 0.04);
}

.mode-card.mode-primary:hover {
  border-color: rgba(255, 107, 44, 0.5);
}

.mode-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mode-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mode-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  border: 1px solid rgba(255, 107, 44, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

/* — How It Works — */
.howitworks {
  padding: 100px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-header {
  margin-bottom: 60px;
}

.hiw-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  padding: 32px;
  border-right: 1px solid var(--border);
  position: relative;
}

.step:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.step p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* — Duel Section — */
.duel-section {
  padding: 100px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.duel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.duel-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.duel-copy p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.duel-vs-block {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 36px;
}

.vs-row {
  display: flex;
  gap: 24px;
}

.vs-item {
  flex: 1;
}

.vs-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.vs-item-other .vs-label {
  color: var(--fg-muted);
}

.vs-item ul {
  list-style: none;
}

.vs-item li {
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-item li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.vs-item-other li::before {
  background: var(--fg-subtle);
}

.vs-divider {
  width: 1px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* — Closing — */
.closing-section {
  padding: 120px 48px 140px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-topper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 32px;
}

.closing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.1;
}

.closing-section p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* — Footer — */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--fg-subtle);
}

/* — Responsive — */
@media (max-width: 900px) {
  nav, .hero, .gamemodes, .howitworks, .duel-section, .closing-section, footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  nav { padding: 0 24px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    flex-direction: column;
  }

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

  .mode-card.mode-primary {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .step {
    border-bottom: 1px solid var(--border);
    border-right: none;
  }

  .step:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .duel-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }

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

  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }
}