/* Shared base styles for Criticscale marketing site
   Matches the visual language of index.html.
   Keep additions here; page-specific styles can be inlined per page. */

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:#09090f; color:#f4f1ec;
  font-family:'Inter', -apple-system, system-ui, sans-serif;
  overflow-x:hidden;
  line-height:1.5;
}
.syne{ font-family:'Syne', sans-serif; font-weight:800; letter-spacing:-0.02em; }
.mono{ font-family:'JetBrains Mono', monospace; }

a{ color:inherit; }

/* Animated grain background */
body::before{
  content:'';
  position:fixed; inset:0; pointer-events:none; z-index:1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(162,155,254,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,118,117,0.06) 0%, transparent 50%);
}
body::after{
  content:'';
  position:fixed; inset:0; pointer-events:none; z-index:2; opacity:0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Top nav */
nav.top{
  position:fixed; top:0; left:0; right:0; z-index:50;
  padding:18px 32px; display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(180deg, rgba(9,9,15,0.85), rgba(9,9,15,0));
  backdrop-filter:blur(8px);
}
nav.top .brand{ font-weight:800; font-size:18px; letter-spacing:-0.5px; font-family:'Syne'; text-decoration:none; color:inherit; }
nav.top .links{ display:flex; gap:28px; font-size:13px; color:#a8a39c;}
nav.top .links a{ color:inherit; text-decoration:none;}
nav.top .links a:hover{ color:#f4f1ec; }

/* Page wrapper */
main.page{
  position:relative; z-index:3;
  max-width: 880px; margin: 0 auto;
  padding: 140px 32px 120px;
}
main.page.wide{ max-width: 1180px; }

/* Page header */
.page-eyebrow{
  font-family:'JetBrains Mono', monospace; font-size:11px;
  color:#a29bfe; letter-spacing:3px; text-transform:uppercase;
  margin-bottom:16px;
}
.page-title{
  font-family:'Syne', sans-serif; font-weight:800;
  font-size: clamp(40px, 6vw, 72px); line-height:1; letter-spacing:-0.03em;
  margin-bottom: 20px;
}
.page-lede{
  font-size: 18px; color:#c9c4bd; max-width: 640px; line-height:1.55;
  margin-bottom: 12px;
}
.page-meta{
  font-family:'JetBrains Mono', monospace; font-size: 11px;
  color:#62605b; letter-spacing:1.5px; margin-bottom: 48px; text-transform:uppercase;
}

/* Long-form prose */
.prose{ color:#c9c4bd; }
.prose h2{
  font-family:'Syne', sans-serif; font-weight:800;
  font-size: 26px; letter-spacing:-0.02em; color:#f4f1ec;
  margin-top: 48px; margin-bottom: 14px;
}
.prose h3{
  font-family:'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing:2px; text-transform:uppercase; color:#f4f1ec;
  margin-top: 28px; margin-bottom: 10px;
}
.prose p{ margin-bottom: 14px; line-height: 1.65; }
.prose ul{ margin: 8px 0 18px 22px; }
.prose li{ margin-bottom: 8px; line-height: 1.55; }
.prose a{ color:#a29bfe; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover{ color:#f4f1ec; }
.prose strong{ color:#f4f1ec; font-weight:700; }
.prose hr{ border:none; border-top:1px solid rgba(244,241,236,0.08); margin: 32px 0; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 22px; border-radius:50px;
  font-weight:700; font-size:14px; cursor:pointer; text-decoration:none;
  transition: transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn:hover{ transform: translateY(-2px); }
.btn.primary{ background:#f4f1ec; color:#09090f; }
.btn.ghost{ background:transparent; color:#f4f1ec; border:1px solid rgba(244,241,236,0.18); }

/* Card */
.card{
  background:rgba(244,241,236,0.04); border:1px solid rgba(244,241,236,0.08);
  border-radius:24px; padding:28px;
  transition: background 0.3s, border-color 0.3s;
}
.card:hover{ background:rgba(244,241,236,0.07); border-color:rgba(162,155,254,0.3); }

/* Footer */
footer.site{
  position:relative; z-index:3;
  border-top: 1px solid rgba(244,241,236,0.08);
  padding: 48px 32px 64px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin-left:auto; margin-right:auto;
}
footer.site .col h4{
  font-family:'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 2px; color:#a8a39c; text-transform:uppercase;
  margin-bottom: 14px;
}
footer.site .col a{
  display:block; color:#c9c4bd; font-size: 13px; text-decoration:none;
  margin-bottom: 8px;
}
footer.site .col a:hover{ color:#f4f1ec; }
footer.site .brand{
  font-family:'Syne', sans-serif; font-weight:800; font-size: 28px;
  letter-spacing:-0.5px; margin-bottom: 8px;
}
footer.site .tag{ color:#62605b; font-size: 12px; }
footer.site .copy{
  grid-column: 1 / -1;
  border-top: 1px solid rgba(244,241,236,0.06);
  padding-top: 24px;
  margin-top: 16px;
  display:flex; justify-content:space-between;
  color:#62605b; font-size: 12px;
}

/* Per-game page hero (uses --accent custom property) */
.game-hero{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.game-hero .emoji{ font-size: 64px; line-height: 1; margin-bottom: 16px; }
.game-hero h1{ font-family:'Syne'; font-weight:800; font-size: clamp(56px, 9vw, 112px); line-height: 0.92; letter-spacing: -0.04em; color: var(--accent, #a29bfe); }
.game-hero .tagline{ font-family:'Syne'; font-weight: 800; font-size: 28px; letter-spacing: -0.5px; margin: 18px 0 14px; color:#f4f1ec; }
.game-hero p.lead{ color:#c9c4bd; font-size: 17px; line-height: 1.55; max-width: 480px; }
.game-hero .ctas{ display:flex; gap: 12px; margin-top: 28px; flex-wrap:wrap; }
.game-hero .accent-eyebrow{ color: var(--accent, #a29bfe); }

.preview-card{
  border-radius: 28px; padding: 40px;
  background: linear-gradient(160deg, var(--accent-fade, rgba(162,155,254,0.12)), rgba(244,241,236,0.02));
  border: 1px solid rgba(244,241,236,0.08);
  aspect-ratio: 4 / 5; max-width: 360px; justify-self: end;
  display:flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.preview-card .pmeta{ font-family:'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color:#a8a39c; text-transform: uppercase; }
.preview-card .big{ font-family:'Syne'; font-weight:800; font-size: 80px; letter-spacing: -3px; color: var(--accent, #a29bfe); text-align:center; line-height: 1; }
.preview-card .center{ text-align: center; }

.how-section{ margin-top: 120px; }
.how-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.how-step{ background: rgba(244,241,236,0.04); border: 1px solid rgba(244,241,236,0.08); border-radius: 22px; padding: 26px; }
.how-step .num{ font-family:'Syne'; font-size: 48px; font-weight: 800; color: var(--accent, #a29bfe); line-height:1; letter-spacing: -2px; }
.how-step h3{ font-family:'Syne'; font-size: 20px; margin: 12px 0 6px; }
.how-step p{ color:#a8a39c; font-size: 13px; line-height: 1.55; }

.other-games{ margin-top: 100px; padding-top: 64px; border-top: 1px solid rgba(244,241,236,0.08); }
.other-games .row{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.other-games a{
  text-decoration:none; padding: 10px 18px; border-radius: 30px;
  background: rgba(244,241,236,0.04); border: 1px solid rgba(244,241,236,0.08);
  font-family:'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1.5px;
  color: #c9c4bd; transition: border-color 0.2s, color 0.2s;
}
.other-games a:hover{ color: #f4f1ec; border-color: rgba(244,241,236,0.2); }

@media (max-width: 800px){
  nav.top{ padding:14px 18px; }
  nav.top .brand{ font-size:16px; }
  nav.top .links{ gap:18px; font-size:12px; }
  main.page{ padding: 110px 18px 80px; }
  .page-title{ font-size: clamp(34px, 9vw, 48px); }
  .game-hero{ grid-template-columns: 1fr; gap: 36px; }
  .preview-card{ justify-self: center; }
  .how-grid{ grid-template-columns: 1fr; }
  footer.site{
    grid-template-columns: 1fr 1fr;
    padding: 40px 18px 100px;
    gap: 28px;
  }
  footer.site .copy{ flex-direction: column; gap: 6px; text-align:center; }
}
