/*
Theme Name: Tangpusen Studios
Theme URI: https://tangpusenstudios.com
Author: Tangpusen Studios
Description: Custom theme for Tangpusen Studios — independent mobile game studio.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tangpusen
*/

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:          #0f0f0e;
  --bg-card:     #161614;
  --bg-card-alt: #1c1c1a;
  --border:      rgba(255,255,255,0.08);
  --border-mid:  rgba(255,255,255,0.13);

  --text:        #e8e6e0;
  --text-muted:  #7a7870;
  --text-sub:    #b0ada5;

  --gold:        #c9a84c;
  --gold-dim:    rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.35);

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 960px;
  --pad-x: 1.5rem;
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── Nav ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,14,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-sub);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem var(--pad-x) 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.9375rem;
  color: var(--text-sub);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Section labels ─────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Featured game card ─────────────────────────────────────── */
.games-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect x='39' y='0' width='1' height='120' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='79' y='0' width='1' height='120' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='0' y='39' width='120' height='1' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='0' y='79' width='120' height='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-position: right top;
  opacity: 1;
  pointer-events: none;
}
.featured-card::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.game-icon-wrap {
  width: 88px; height: 88px;
  border-radius: 20px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.game-icon-wrap svg { width: 40px; height: 40px; }
.featured-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.featured-desc {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.featured-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  color: var(--text-sub);
  letter-spacing: 0.02em;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0f0f0e;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }

.featured-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.feature-pill {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.feature-pill-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.875rem;
}
.feature-pill-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.feature-pill-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Upcoming ───────────────────────────────────────────────── */
.upcoming-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s;
}
.upcoming-card:hover { border-color: var(--border-mid); }
.upcoming-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
  color: var(--text-muted);
}
.upcoming-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.upcoming-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.125rem;
}
.pill-soon {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ─── About strip ────────────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}
.footer-logo span { color: var(--gold); }
.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-sub); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* ─── Inner page (privacy, terms, contact) ───────────────────── */
.inner-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.inner-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.inner-hero .last-updated {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.inner-content {
  padding: 3.5rem 0 5rem;
  max-width: 680px;
}
.inner-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
.inner-content p {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.inner-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.inner-content ul li {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 0.375rem;
}
.inner-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* contact form */
.contact-form { max-width: 520px; margin-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 4rem 0 3.5rem; }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .featured-visual { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
