/* ===========================================================
   SMW Studios — marketing site
   Brand palette (LOCKED): purple #6C3BFF + teal #00C2A8
   60% purple/neutral · 30% off-white/dark · 10% teal
   Teal is a fill/CTA color only — never teal body text on light.
   =========================================================== */

:root {
  --purple: #6C3BFF;
  --purple-700: #551fe6;
  --purple-900: #2b1466;
  --teal: #00C2A8;
  --teal-700: #00a892;
  --gold: #FFC857;      /* seasoning only */
  --pinkred: #FF4E5B;   /* energy only */
  --ink: #15151F;
  --ink-2: #1A1A2E;
  --surface: #F5F5F7;
  --white: #ffffff;

  --text: #15151F;
  --text-muted: #55556a;
  --text-on-dark: #eceaf5;
  --text-on-dark-muted: #b3aecf;
  --border: #e7e6ee;

  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 21, 31, .06), 0 4px 14px rgba(21, 21, 31, .05);
  --shadow-md: 0 10px 30px rgba(43, 20, 102, .12);
  --shadow-purple: 0 14px 40px rgba(108, 59, 255, .28);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #05261f; box-shadow: 0 8px 22px rgba(0, 194, 168, .32); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost.on-dark { color: var(--text-on-dark); border-color: rgba(255, 255, 255, .28); }
.btn-ghost.on-dark:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .06); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--purple-700));
  color: #fff; font-size: .95rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(108, 59, 255, .35);
}
.brand-name { color: var(--ink); font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 8px; font-weight: 500; color: var(--text-muted);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--purple); font-weight: 600; }
.nav-links a.nav-cta {
  margin-left: .4rem; color: #05261f; background: var(--teal); font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--teal-700); color: #05261f; }
.nav-links a.nav-cta[aria-current="page"] { color: #05261f; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 194, 168, .18), transparent 60%),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-700) 55%, var(--purple-900) 100%);
  color: var(--text-on-dark);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), transparent 65%);
  pointer-events: none;
}
.hero-inner { padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 10vw, 104px); max-width: 760px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #d7fff6; padding: .35rem .7rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-on-dark-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-sub { color: var(--text-on-dark-muted); }
.eyebrow-ink { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: .6rem; }

/* ---------- Cards / game grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d5f2; }
.card-thumb { height: 168px; position: relative; }
.card-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 80px at 75% 20%, rgba(255, 255, 255, .25), transparent 70%);
}
.thumb-jubo { background: linear-gradient(135deg, #7a4bff, #4a1fd0); }
.thumb-founders { background: linear-gradient(135deg, #6C3BFF, #2b1466); }
.thumb-empires { background: linear-gradient(135deg, #5a2fe0, #00806f); }
.thumb-gems { background: linear-gradient(135deg, #8a5bff, #00C2A8); }
.thumb-fields { background: linear-gradient(135deg, #6C3BFF, #00a892); }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb.has-img::after { content: none; }
.card-thumb .thumb-glyph {
  position: absolute; left: 20px; bottom: 16px; font-size: 1.6rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3, .card-body h2 { margin-bottom: .35rem; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.card-body p { color: var(--text-muted); font-size: .96rem; margin-bottom: 1.1rem; }
.card-body .card-link { margin-top: auto; color: var(--purple); font-weight: 600; font-size: .95rem; }
.card-body .card-link:hover { color: var(--purple-700); }

.tag {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}
.tag-soon { background: rgba(0, 194, 168, .14); color: #007a68; }
.tag-dev { background: rgba(108, 59, 255, .12); color: var(--purple-700); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.card-featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card-featured { flex-direction: row; }
  .card-featured .card-thumb { flex: 0 0 46%; height: auto; min-height: 300px; }
  .card-featured .card-body { padding: 40px; justify-content: center; }
  .card-featured .card-body h3, .card-featured .card-body h2 { font-size: 1.9rem; }
  .card-featured .card-body p { font-size: 1.05rem; }
}

/* ---------- Studio blurb / feature rows ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 1.5rem; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--purple); letter-spacing: -.02em; }
.stat span { color: var(--text-muted); font-size: .9rem; }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; }
.value-list .dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: rgba(0, 194, 168, .16); display: grid; place-items: center; margin-top: 2px; }
.value-list .dot svg { width: 13px; height: 13px; stroke: var(--teal-700); }
.value-list strong { color: var(--ink); }
.value-list span { color: var(--text-muted); }

/* ---------- Devlog posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post time { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--purple-700); margin-bottom: .6rem; }
.post h3 { color: var(--ink); margin-bottom: .4rem; }
.post p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.empty-note { text-align: center; color: var(--text-muted); max-width: 520px; margin: 2.5rem auto 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card {
  display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9d5f2; }
.contact-card .c-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.contact-card .c-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--purple); }
.contact-card .c-desc { display: block; color: var(--text-muted); font-size: .9rem; margin-top: .35rem; }

/* ---------- Social row ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social-link:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: var(--shadow-sm); }
.social-link svg { width: 18px; height: 18px; }
.section-dark .social-link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--text-on-dark); }
.section-dark .social-link:hover { border-color: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple), var(--purple-700));
  color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 56px);
  text-align: center; box-shadow: var(--shadow-purple);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-on-dark-muted); max-width: 520px; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 48px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand .brand-name { color: #fff; }
.footer-tagline { margin: 12px 0 0; max-width: 300px; font-size: .95rem; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #7f7aa3; margin: 0 0 12px; }
.footer-col a { display: block; color: var(--text-on-dark-muted); padding: 4px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .15s ease, border-color .15s ease; }
.footer-social a:hover { background: rgba(0, 194, 168, .14); border-color: var(--teal); }
.footer-social svg { width: 18px; height: 18px; fill: var(--text-on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal-on-scroll (script.js toggles .is-visible) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(48px, 8vw, 84px) 0 clamp(36px, 6vw, 56px); }
.page-hero h1 { color: var(--ink); max-width: 720px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem 1rem; border-radius: 10px; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; justify-content: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { flex-direction: column; }
}
