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

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface2:  #1a1a1a;
  --border:    #2a2a2a;
  --text:      #f0f0f0;
  --muted:     #888;
  --orange:    #f6821f;
  --teal:      #00b5b5;
  --purple:    #7c3aed;
  --orange-bg: rgba(246,130,31,0.12);
  --teal-bg:   rgba(0,181,181,0.12);
  --purple-bg: rgba(124,58,237,0.12);
  --radius:    14px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s; cursor: pointer; border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.logo-by { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap;
}
.hero-content { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(246,130,31,0.3); border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 600; width: fit-content; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 500px; line-height: 1.7; }

/* ── Store buttons ── */
.store-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem 1.4rem; text-decoration: none;
  color: var(--text); transition: border-color 0.2s, transform 0.15s, background 0.2s;
  min-width: 160px;
}
.store-btn:hover { border-color: var(--orange); background: rgba(246,130,31,0.05); transform: translateY(-2px); }
.store-icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--text); }
.store-sub { display: block; font-size: 0.7rem; color: var(--muted); line-height: 1; }
.store-name { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; }

/* ── Hero stats ── */
.hero-stats { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Phone mockup ── */
.hero-visual { flex: 0 0 auto; display: flex; justify-content: center; }
.phone-mockup {
  width: 260px; background: #111; border-radius: 36px;
  border: 2px solid #333; padding: 16px;
  box-shadow: 0 0 60px rgba(246,130,31,0.15), 0 0 120px rgba(0,181,181,0.08);
}
.phone-screen { background: #0d0d0d; border-radius: 24px; padding: 20px; }
.game-board { display: flex; flex-direction: column; gap: 6px; }
.game-row { display: flex; gap: 6px; }
.tile {
  width: 38px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; border: 1px solid var(--border); color: var(--text);
  transition: background 0.2s;
}
.tile.correct  { background: rgba(246,130,31,0.8);  border-color: var(--orange);  color: #fff; }
.tile.present  { background: rgba(0,181,181,0.7);   border-color: var(--teal);    color: #fff; }
.tile.absent   { background: rgba(255,255,255,0.06); border-color: #333;           color: var(--muted); }
.game-row.empty .tile { border-color: #222; }

/* ── Sections ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 3rem; }

/* ── Features ── */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature-icon.orange { background: var(--orange-bg); color: var(--orange); }
.feature-icon.teal   { background: var(--teal-bg);   color: var(--teal);   }
.feature-icon.purple { background: var(--purple-bg); color: var(--purple); }
.feature-card:nth-child(1):hover, .feature-card:nth-child(4):hover { border-color: var(--orange); }
.feature-card:nth-child(2):hover, .feature-card:nth-child(5):hover { border-color: var(--teal); }
.feature-card:nth-child(3):hover, .feature-card:nth-child(6):hover { border-color: var(--purple); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p  { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Screenshots ── */
.screenshots { padding: 5rem 2rem; }
.screenshot-row { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.screenshot-card {
  width: 200px; height: 380px; border-radius: 24px; border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  background: var(--surface);
}
.screenshot-card.featured { width: 230px; height: 440px; transform: translateY(-16px); }
.screenshot-card:hover { transform: translateY(-8px) scale(1.02); }
.screenshot-card.featured:hover { transform: translateY(-22px) scale(1.03); }
.screenshot-card.orange-card { border-color: rgba(246,130,31,0.4); box-shadow: 0 8px 32px rgba(246,130,31,0.1); }
.screenshot-card.teal-card   { border-color: rgba(0,181,181,0.4);   box-shadow: 0 8px 48px rgba(0,181,181,0.15); }
.screenshot-card.purple-card { border-color: rgba(124,58,237,0.4);  box-shadow: 0 8px 32px rgba(124,58,237,0.1); }
.screenshot-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.screenshot-icon { font-size: 2.5rem; }

/* ── How to Play ── */
.how-to-play { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.step {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--orange); }
.step-number {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; flex-shrink: 0;
}
.orange-num { background: var(--orange-bg); color: var(--orange); border-color: rgba(246,130,31,0.3); }
.teal-num   { background: var(--teal-bg);   color: var(--teal);   border-color: rgba(0,181,181,0.3); }
.purple-num { background: var(--purple-bg); color: var(--purple); border-color: rgba(124,58,237,0.3); }
.step-content { flex: 1; }
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-content p  { color: var(--muted); font-size: 0.95rem; }
.step-tiles { display: flex; gap: 5px; flex-shrink: 0; }
.mini-tile {
  width: 32px; height: 32px; border-radius: 5px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem; color: var(--text);
}
.mini-tile.correct { background: rgba(246,130,31,0.8);  border-color: var(--orange);  color: #fff; }
.mini-tile.present { background: rgba(0,181,181,0.7);   border-color: var(--teal);    color: #fff; }
.mini-tile.absent  { background: rgba(255,255,255,0.06); border-color: #333;           color: var(--muted); }
.clue { font-weight: 700; }
.correct-clue { color: var(--orange); }
.present-clue { color: var(--teal); }
.absent-clue  { color: var(--muted); }

/* ── CTA ── */
.cta { text-align: center; }
.cta-inner {
  max-width: 700px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(246,130,31,0.08), rgba(0,181,181,0.05), rgba(124,58,237,0.08));
  border: 1px solid var(--border); border-radius: 24px; padding: 4rem 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.cta h2 { font-size: 2.4rem; font-weight: 800; }
.cta p  { color: var(--muted); font-size: 1.05rem; }
.cta .store-buttons { justify-content: center; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: var(--muted); font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; padding: 3rem 1.5rem; text-align: center; }
  .hero-content { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-stats { justify-content: center; }
  .step { flex-wrap: wrap; }
  .step-tiles { display: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 4rem 1.25rem; }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .screenshot-card { width: 160px; height: 300px; }
  .screenshot-card.featured { width: 180px; height: 340px; }
}
