/* Handprint — Design System
 * Tier color language: gold → green → blue → gray → ghost
 * Dark theme with warm undertones. Syne headings, Satoshi body.
 */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  /* Tier palette — extracted from production SVGs */
  --gold:       #c9a84c;
  --gold-bg:    #1a4d2e;
  --green:      #4dab6d;
  --green-bg:   #1a4d2e;
  --blue:       #5b8def;
  --blue-bg:    #1a2d4d;
  --bronze:     #cd7f32;
  --bronze-bg:  #3d2200;
  --gray:       #888;
  --gray-bg:    #2a2a2a;

  /* Core palette */
  --bg-deep:    #0c0c0f;
  --bg-section: #111115;
  --bg-card:    #18181d;
  --bg-elevated:#1f1f26;
  --surface:    #26262e;
  --border:     rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);

  --text-primary:   #f0efe9;
  --text-secondary:  #a0a0a8;
  --text-muted:     #6a6a72;
  --text-dim:       #44444c;

  --accent:     #c9a84c;
  --accent-glow: rgba(201,168,76,0.15);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Satoshi', 'General Sans', -apple-system, sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Spacing */
  --section-gap:  120px;
  --content-max:  1080px;
  --content-narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #e0c060; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* Subtle top border between sections */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content-max));
  height: 1px;
  background: var(--border);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(12,12,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo .palm {
  display: inline-block;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__cta {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.nav__cta:hover {
  background: #e0c060;
  color: var(--bg-deep);
  transform: translateY(-1px);
}

/* ================================================================
   HERO COLOR PROGRESSION INDICATOR
   ================================================================ */
.hero__color-progression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.prog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.prog-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 160px 0 var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Radial glow behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero h1 .accent { color: var(--accent); }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.hero__badge {
  width: 80px;
  height: auto;
}

/* ================================================================
   PROBLEM SECTION
   ================================================================ */
.problem {
  background: var(--bg-section);
}
.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.problem__card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.problem__card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.problem__card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.problem__card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.problem__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

/* ================================================================
   SOLUTION — TIER SYSTEM
   ================================================================ */
.solution h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.solution__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tier {
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tier:hover {
  transform: translateY(-4px);
}
.tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* Tier-specific colors */
.tier--gold { background: rgba(26,77,46,0.15); }
.tier--gold::before { background: var(--gold); }
.tier--gold:hover { border-color: rgba(201,168,76,0.3); }
.tier--gold .tier__name { color: var(--gold); }

.tier--green { background: rgba(77,171,109,0.08); }
.tier--green::before { background: var(--green); }
.tier--green:hover { border-color: rgba(77,171,109,0.3); }
.tier--green .tier__name { color: var(--green); }

.tier--blue { background: rgba(91,141,239,0.08); }
.tier--blue::before { background: var(--blue); }
.tier--blue:hover { border-color: rgba(91,141,239,0.3); }
.tier--blue .tier__name { color: var(--blue); }

.tier--gray-mid { background: rgba(136,136,136,0.06); }
.tier--gray-mid::before { background: var(--gray); }
.tier--gray-mid:hover { border-color: rgba(136,136,136,0.3); }
.tier--gray-mid .tier__name { color: var(--gray); }

.tier--ghost { background: rgba(68,68,68,0.04); }
.tier--ghost::before { background: #555; }
.tier--ghost:hover { border-color: rgba(85,85,85,0.3); }
.tier--ghost .tier__name { color: #666; }

.tier__badge {
  width: 80px;
  height: auto;
  margin: 0 auto 16px;
}
.tier__name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tier__range {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tier__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ================================================================
   HOW IT WORKS — SCORING
   ================================================================ */
.scoring {
  background: var(--bg-section);
}
.scoring h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.scoring__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.score-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.score-table thead th:last-child { text-align: right; }
.score-table tbody tr {
  transition: background 0.2s ease;
}
.score-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.score-table tbody td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.score-table tbody tr:last-child td { border-bottom: none; }
.score-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}
.score-table tbody td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}
.score-bar {
  display: inline-block;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.6;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.pricing__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pricing__card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pricing__card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pricing__card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, var(--bg-card) 100%);
}
.pricing__card--featured:hover {
  border-color: var(--accent);
}
.pricing__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}
.pricing__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pricing__price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.pricing__features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing__features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing__features li:last-child { border-bottom: none; }
.pricing__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ================================================================
   INDIE GAMES
   ================================================================ */
.indie {
  background: var(--bg-section);
}
.indie h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.indie__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.indie__reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.indie__reason {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.indie__reason h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.indie__reason p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   FOR DEVELOPERS — CTA + EMAIL
   ================================================================ */
.developers {
  text-align: center;
}
.developers h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.developers__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.email-form input[type="email"]::placeholder {
  color: var(--text-dim);
}
.email-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.email-form button {
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.email-form button:hover {
  background: #e0c060;
  transform: translateY(-1px);
}
.email-form__note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ================================================================
   FOR CONSUMERS
   ================================================================ */
.consumers {
  background: var(--bg-section);
}
.consumers h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.consumers__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.consumers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.consumers__card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.consumers__card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.consumers__card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.consumers__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-secondary); }
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn--primary:hover {
  background: #e0c060;
  color: var(--bg-deep);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
  }

  .nav__links { display: none; }

  .hero { padding-top: 120px; }

  .tiers {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tiers .tier:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .score-table { font-size: 0.85rem; }
  .score-table thead th,
  .score-table tbody td { padding: 10px 14px; }
  .score-bar { display: none; }

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

  .email-form {
    flex-direction: column;
  }
  .email-form button { width: 100%; }

  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .tiers {
    grid-template-columns: 1fr;
  }
  .tiers .tier:last-child {
    max-width: 100%;
  }
}

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

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