/* ═══ RESET & VARS ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-deep: #0c0b0f;
  --bg-panel: #141318;
  --bg-card: #1a1820;
  --brass: #c4923a;
  --brass-bright: #e8b04a;
  --brass-dim: #8a6828;
  --copper: #b86e3a;
  --ember: #ee7025;
  --ember-glow: #ff9544;
  --iron: #6a6872;
  --iron-light: #8a8892;
  --text-main: #d4cfc8;
  --text-dim: #7a756e;
  --text-bright: #ede8e0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--brass); color: var(--bg-deep); }

/* ═══ NOISE TEXTURE OVERLAY ═══ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* ═══ UTILITY ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brass); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brass-bright); }

/* ═══ DECORATIVE LINES ═══ */
.rule-brass {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, var(--brass-dim), var(--brass), var(--brass-dim), transparent);
  margin: 0;
}
.rule-thin {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, rgba(138,104,40,0.3), transparent);
}

/* ═══ RIVET DECORATION ═══ */
.rivet {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--iron-light), var(--iron) 60%, #3a3840);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.5);
}

/* ═══ TOP BAR ═══ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(12,11,15,0.95), rgba(12,11,15,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,146,58,0.15);
  transition: transform 0.3s;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.topbar-logo {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 3px;
  color: var(--brass); text-transform: uppercase;
}
.topbar-logo span { color: var(--ember); }
.topbar-nav { display: flex; gap: 28px; }
.topbar-nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
  position: relative; padding: 4px 0;
}
.topbar-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--brass); transform: scaleX(0);
  transition: transform 0.3s;
}
.topbar-nav a:hover { color: var(--text-bright); }
.topbar-nav a:hover::after { transform: scaleX(1); }

/* ═══ HERO — MOLTEN GEARS FLAGSHIP ═══ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  position: relative; overflow: hidden; padding: 80px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(238,112,37,0.08), transparent),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(184,110,58,0.06), transparent),
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(196,146,58,0.04), transparent),
    var(--bg-deep);
}
/* Animated gear silhouettes */
.hero-gear {
  position: absolute; border-radius: 50%; opacity: 0.03;
  border: 3px solid var(--brass);
}
.hero-gear:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -120px; animation: spin 80s linear infinite; }
.hero-gear:nth-child(2) { width: 280px; height: 280px; bottom: -60px; right: -80px; animation: spin 60s linear infinite reverse; }
.hero-gear:nth-child(3) { width: 180px; height: 180px; top: 30%; right: 10%; animation: spin 45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 2; }

.hero-studio {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 6px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 24px;
}
.hero-studio .rivet { margin: 0 8px; vertical-align: middle; }

.hero-title {
  font-family: var(--font-display); font-size: clamp(64px, 10vw, 130px);
  letter-spacing: 6px; text-transform: uppercase; line-height: 0.9;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--text-bright) 0%, var(--brass) 60%, var(--copper) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 36px);
  letter-spacing: 8px; color: var(--ember);
  margin-bottom: 6px;
}

.hero-year {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 4px;
  color: var(--brass-dim); margin-bottom: 40px;
}

.hero-tagline {
  font-family: var(--font-body); font-size: 18px; font-weight: 400;
  color: var(--text-dim); max-width: 600px; margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--bg-deep); background: var(--brass);
  padding: 14px 36px; position: relative;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--brass-bright); color: var(--bg-deep); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ═══ SECTION HEADERS ═══ */
.section-header {
  text-align: center; padding: 80px 24px 48px;
}
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 6px; text-transform: uppercase; color: var(--text-bright);
  margin-bottom: 8px;
}
.section-header .section-sub {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 4px;
  color: var(--brass-dim); text-transform: uppercase;
}

/* ═══ GAME GRID ═══ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2px; padding: 0 2px;
  max-width: 1200px; margin: 0 auto 80px;
}

.game-card {
  position: relative; overflow: hidden;
  background: var(--bg-card); cursor: pointer;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.3s;
}
.game-card:hover { transform: scale(1.01); z-index: 2; }

.game-card-bg {
  position: absolute; inset: 0; transition: transform 0.6s, filter 0.4s;
}
.game-card:hover .game-card-bg { transform: scale(1.05); }

.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,11,15,0.92) 0%, rgba(12,11,15,0.4) 50%, rgba(12,11,15,0.15) 100%);
}
.game-card:hover .game-card-overlay {
  background: linear-gradient(0deg, rgba(12,11,15,0.85) 0%, rgba(12,11,15,0.2) 50%, rgba(12,11,15,0.05) 100%);
}

.game-card-content { position: relative; z-index: 2; padding: 20px 24px; }

.game-card-genre {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 6px;
}
.game-card-title {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-bright); margin-bottom: 4px;
}
.game-card-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  max-height: 0; overflow: hidden; transition: max-height 0.4s, opacity 0.3s;
  opacity: 0;
}
.game-card:hover .game-card-desc { max-height: 120px; opacity: 1; }

.game-card-status {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; margin-top: 8px;
}

/* Status colors */
.status-flagship { color: var(--ember); }
.status-dev { color: var(--brass); }
.status-announced { color: var(--iron-light); }
.status-concept { color: var(--text-dim); }

/* Featured card (Molten Gears) spans full width */
.game-card.featured {
  grid-column: 1 / -1; aspect-ratio: 21 / 7;
  min-height: 280px;
}
.game-card.featured .game-card-title {
  font-size: clamp(32px, 4vw, 48px);
}

/* ═══ ABOUT SECTION ═══ */
.about {
  padding: 60px 24px 80px;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-panel));
}
.about-inner {
  max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.about-text h3 {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-bright); margin-bottom: 16px;
}
.about-text p {
  font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px;
}
.about-stats { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.stat-block {
  border-left: 2px solid var(--brass-dim); padding-left: 16px;
}
.stat-number {
  font-family: var(--font-display); font-size: 42px; color: var(--brass);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-dim); margin-top: 4px;
}

/* ═══ PHILOSOPHY STRIP ═══ */
.philosophy {
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-panel);
  border-top: 1px solid rgba(196,146,58,0.1);
  border-bottom: 1px solid rgba(196,146,58,0.1);
}
.philosophy blockquote {
  font-family: var(--font-body); font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600; color: var(--text-main); max-width: 700px;
  margin: 0 auto; line-height: 1.6; font-style: italic;
}
.philosophy blockquote span { color: var(--brass); font-style: normal; }
.philosophy cite {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-dim); font-style: normal;
}

/* ═══ FAQ (SEO / AEO) ═══ */
.faq-section {
  padding: 60px 24px 80px;
  background: var(--bg-panel);
}
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list { list-style: none; }
.faq-item {
  border-bottom: 1px solid rgba(196,146,58,0.12);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item dt {
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--text-bright); margin-bottom: 8px; line-height: 1.4;
}
.faq-item dd {
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
  margin: 0;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(196,146,58,0.1);
}
.footer-logo {
  font-family: var(--font-display); font-size: 18px; letter-spacing: 4px;
  color: var(--brass-dim); text-transform: uppercase; margin-bottom: 12px;
}
.footer-links {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 16px;
}
.footer-links a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
}
.footer-copy {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(122,117,110,0.5); letter-spacing: 1px;
}

/* ═══ SNOODLES CARD — THE COLORFUL ONE ═══ */
.snoodles-bg {
  background: linear-gradient(135deg, #ffe4f0, #fff0d0 30%, #d4f7e8 60%, #e0e8ff 100%) !important;
}
.snoodles-overlay {
  background: linear-gradient(0deg, rgba(255,240,245,0.6) 0%, rgba(255,255,255,0.1) 40%, transparent 100%) !important;
}
.snoodles-card:hover .snoodles-overlay {
  background: linear-gradient(0deg, rgba(255,240,245,0.85) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%) !important;
}
.snoodles-title { color: #ee55aa !important; }
.snoodles-desc { color: #664455 !important; }
.snoodles-card .game-card-genre { color: #dd66aa !important; }

/* Dancing Snoodle characters */
.snoodles-scene {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; justify-content: center; align-items: center;
  gap: 28px; padding-bottom: 50px;
}

.snoodle {
  position: relative; width: 32px; height: 44px;
  animation: snoodleDance 0.8s ease-in-out infinite alternate;
}
.snoodle.s1 { animation-delay: 0s; }
.snoodle.s2 { animation-delay: 0.15s; }
.snoodle.s3 { animation-delay: 0.3s; }
.snoodle.s4 { animation-delay: 0.45s; }

.snoodle-body {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 28px; border-radius: 12px 12px 8px 8px;
}
.s1 .snoodle-body { background: #ff6699; }
.s2 .snoodle-body { background: #66bbff; }
.s3 .snoodle-body { background: #88dd55; }
.s4 .snoodle-body { background: #ffaa33; }

.snoodle-eye {
  position: absolute; width: 5px; height: 6px; border-radius: 50%;
  background: #333; top: 14px;
}
.snoodle-eye.left { left: 7px; }
.snoodle-eye.right { right: 7px; }

.snoodle-mouth {
  position: absolute; width: 8px; height: 4px; border-radius: 0 0 4px 4px;
  background: #fff; top: 23px; left: 50%; transform: translateX(-50%);
}

.snoodle-arm {
  position: absolute; width: 4px; height: 12px; border-radius: 2px;
  top: 16px; transform-origin: top center;
  animation: snoodleWave 0.6s ease-in-out infinite alternate;
}
.snoodle-arm.left { left: -2px; }
.snoodle-arm.right { right: -2px; animation-delay: 0.3s; }
.s1 .snoodle-arm { background: #ee5588; }
.s2 .snoodle-arm { background: #55aaee; }
.s3 .snoodle-arm { background: #77cc44; }
.s4 .snoodle-arm { background: #ee9922; }

.snoodle-foot {
  position: absolute; bottom: 2px; width: 8px; height: 6px; border-radius: 3px;
}
.snoodle-foot.left { left: 2px; animation: snoodleTap 0.8s ease-in-out infinite; }
.snoodle-foot.right { right: 2px; animation: snoodleTap 0.8s ease-in-out infinite 0.4s; }
.s1 .snoodle-foot { background: #dd4477; }
.s2 .snoodle-foot { background: #4499dd; }
.s3 .snoodle-foot { background: #66bb33; }
.s4 .snoodle-foot { background: #dd8811; }

@keyframes snoodleDance {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes snoodleWave {
  0% { transform: rotate(-30deg); }
  100% { transform: rotate(40deg); }
}
@keyframes snoodleTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Sparkles */
.sparkle {
  position: absolute; font-size: 14px; opacity: 0.6;
  animation: sparkleFloat 2s ease-in-out infinite alternate;
}
.sp1 { top: 20%; left: 15%; color: #ff88bb; animation-delay: 0s; }
.sp2 { top: 30%; right: 12%; color: #ffcc44; animation-delay: 0.4s; font-size: 18px; }
.sp3 { bottom: 40%; left: 22%; color: #88ddff; animation-delay: 0.8s; }
.sp4 { top: 18%; right: 28%; color: #aaddff; animation-delay: 0.6s; font-size: 12px; }
.sp5 { bottom: 45%; right: 20%; color: #bbee66; animation-delay: 1.0s; font-size: 16px; }
@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0.3; }
  100% { transform: translateY(-8px) scale(1.1); opacity: 0.7; }
}

/* ═══ SCROLL ANIMATIONS ═══ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .topbar-nav { gap: 16px; }
  .topbar-nav a { font-size: 10px; letter-spacing: 1px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card.featured { aspect-ratio: 16 / 10; min-height: 220px; }
}
