/* ── Reset & Custom Properties ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #FF3300;
  --red-glow:  rgba(255, 51, 0, 0.35);
  --red-dim:   rgba(255, 51, 0, 0.12);
  --orange:    #FF6B00;

  --bg:        #090909;
  --s1:        #101010;
  --s2:        #161616;
  --s3:        #1e1e1e;

  --text:      #F0F0F0;
  --muted:     #888888;
  --dim:       #444444;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);

  --r-common:    #95A5A6;
  --r-uncommon:  #2ECC71;
  --r-rare:      #3498DB;
  --r-epic:      #9B59B6;
  --r-legendary: #F1C40F;
  --r-apex:      #FF3300;

  --font-display: 'Bebas Neue', sans-serif;
  --font-head:    'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container: 1160px;
  --radius:    12px;
  --radius-lg: 18px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: #FF4D1F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,51,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.btn-lg { padding: 13px 28px; font-size: 16px; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }

.nav-ctas { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: rgba(9,9,9,0.97);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-speedlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -20deg,
    transparent 0px,
    transparent 48px,
    rgba(255, 51, 0, 0.025) 48px,
    rgba(255, 51, 0, 0.025) 50px
  );
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,51,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.hero-title span { display: block; }
.hero-title .accent { color: var(--red); }

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}

.hero-proof strong {
  color: var(--text);
  font-weight: 600;
}

.proof-divider { color: var(--dim); }

/* ── Hero Card ─────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 440px;
}

.card-stack-back {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 200px;
  height: 300px;
  transform: rotate(8deg);
  opacity: 0.5;
  filter: blur(1px);
}

.card-body-mini {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-body-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hero-card {
  position: relative;
  width: 240px;
  height: 360px;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
  transition: transform 0.08s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-glow-ring {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(255,51,0,0.45) 0%, transparent 65%);
  filter: blur(16px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

.card-body {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
}

.card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.card-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.7) 55%, transparent 100%);
  padding: 28px 14px 14px;
}

.card-rarity-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.card-ovr-row {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}
.card-ovr-row span { color: #fff; font-weight: 700; }

.card-stats-row {
  display: flex;
  gap: 6px;
}

.cs {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 4px 2px;
}

.cs-l { font-size: 8px; color: #666; letter-spacing: 1px; text-transform: uppercase; }
.cs-v { font-size: 13px; font-weight: 700; color: #fff; font-family: var(--font-head); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  margin: 0 auto;
  animation: bounce 2s ease-in-out infinite;
}

/* ── Section shared ────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.section-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features ──────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(255,51,0,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 20px,
    rgba(255,255,255,0.012) 20px, rgba(255,255,255,0.012) 21px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 20px,
    rgba(255,255,255,0.012) 20px, rgba(255,255,255,0.012) 21px
  );
  pointer-events: none;
}

.feature-card:hover {
  border-top-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,51,0,0.15);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255,51,0,0.3);
  border-radius: 4px;
  padding: 3px 10px;
}

/* ── Rarities ──────────────────────────────────────────────────── */
.rarities {
  padding: 100px 0;
  background: var(--s1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rarity-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rarity-row {
  display: grid;
  grid-template-columns: 48px 1fr 200px;
  align-items: center;
  gap: 20px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.rarity-row:hover { border-color: var(--border-hi); }

.rbadge { font-size: 22px; }

.rarity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rarity-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.rarity-desc { font-size: 13px; color: var(--muted); }

/* Rarity name colors */
[data-rarity="common"]    .rarity-name { color: var(--r-common); }
[data-rarity="uncommon"]  .rarity-name { color: var(--r-uncommon); }
[data-rarity="rare"]      .rarity-name { color: var(--r-rare); }
[data-rarity="epic"]      .rarity-name { color: var(--r-epic); }
[data-rarity="legendary"] .rarity-name { color: var(--r-legendary); }
[data-rarity="apex"]      .rarity-name { color: var(--r-apex); }

.rarity-bar {
  height: 4px;
  background: var(--s3);
  border-radius: 2px;
  overflow: hidden;
}

.rarity-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

[data-rarity="common"]    .rarity-fill { background: var(--r-common); }
[data-rarity="uncommon"]  .rarity-fill { background: var(--r-uncommon); }
[data-rarity="rare"]      .rarity-fill { background: var(--r-rare); }
[data-rarity="epic"]      .rarity-fill { background: var(--r-epic); }
[data-rarity="legendary"] .rarity-fill { background: var(--r-legendary); }
[data-rarity="apex"]      .rarity-fill { background: var(--r-apex); }

/* ── How It Works ──────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: rgba(255,51,0,0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  font-size: 22px;
  color: var(--dim);
  flex-shrink: 0;
  width: 40px;
}

/* ── Commands ──────────────────────────────────────────────────── */
.commands {
  padding: 100px 0;
  background: var(--s1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.cmd-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}

.cmd-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.cmd-card code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}

.cmd-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--bg);
}

.cta-speedlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -20deg,
    transparent 0px, transparent 48px,
    rgba(255,51,0,0.03) 48px, rgba(255,51,0,0.03) 50px
  );
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,51,0,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-flag { font-size: 48px; margin-bottom: 20px; }

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 90px);
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--s1);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 60px 24px 48px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-brand {
  flex: 1;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--dim);
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%       { transform: translateY(-14px) rotate(-1.5deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.features-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }
.features-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }
.features-grid .fade-up:nth-child(4) { transition-delay: 0.08s; }
.features-grid .fade-up:nth-child(5) { transition-delay: 0.16s; }
.features-grid .fade-up:nth-child(6) { transition-delay: 0.24s; }

.rarity-list    .fade-up:nth-child(2) { transition-delay: 0.07s; }
.rarity-list    .fade-up:nth-child(3) { transition-delay: 0.14s; }
.rarity-list    .fade-up:nth-child(4) { transition-delay: 0.21s; }
.rarity-list    .fade-up:nth-child(5) { transition-delay: 0.28s; }
.rarity-list    .fade-up:nth-child(6) { transition-delay: 0.35s; }

.cmd-grid       .fade-up:nth-child(n+2) { transition-delay: calc((var(--i, 0)) * 0.05s); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

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

  .cmd-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-ctas { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero-title { align-items: center; }
  .hero-sub   { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof   { justify-content: center; flex-wrap: wrap; }

  .hero-visual {
    display: none;
  }

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

  .rarity-row {
    grid-template-columns: 40px 1fr;
  }
  .rarity-bar { display: none; }

  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-connector { transform: rotate(90deg); padding: 0; }

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

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-cols { gap: 32px; }
}

@media (max-width: 480px) {
  .cmd-grid { grid-template-columns: 1fr; }
  .cta-inner h2 { font-size: 40px; }
}
