/* ============================================================
   BAKU GAME STUDIO — bakugamestudio.az
   Design language: "Odlar Yurdu" — dark caspian night + fire
   ============================================================ */

:root {
  --bg: #08090f;
  --bg-soft: #0d0f18;
  --bg-card: #10131f;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f2f0ec;
  --text-dim: #9a9aa8;
  --fire-1: #ff6a3d;
  --fire-2: #ffc93d;
  --teal: #3dd6c3;
  --violet: #a06bff;
  --radius: 20px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

button {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fire-1); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-flame { animation: flameBob 1.2s ease-in-out infinite; }
.preloader-word {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.42em;
  color: var(--text-dim); animation: fadePulse 1.6s ease-in-out infinite;
}
@keyframes flameBob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.06); } }
@keyframes fadePulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 95;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
}
.nav-logo em { font-style: normal; color: var(--fire-1); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
  transition: width 0.3s var(--ease-out); border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-dim); font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 7px 14px; cursor: pointer; letter-spacing: 0.08em;
  transition: border-color 0.25s;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.25); }
.lang-toggle .active { color: var(--fire-2); }
.lang-divider { margin: 0 5px; opacity: 0.4; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 15px 32px; border-radius: 999px; cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-fire {
  background: linear-gradient(120deg, var(--fire-1), #ff8a3d 55%, var(--fire-2));
  color: #1a0d06;
  box-shadow: 0 8px 32px rgba(255, 106, 61, 0.35);
}
.btn-fire:hover { box-shadow: 0 12px 44px rgba(255, 106, 61, 0.55); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 100px; /* reserves clearance so hero-scroll never overlaps centered content */
  overflow: hidden;
}
#emberCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; left: 50%; bottom: -40%; width: 120vmax; height: 80vmax;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 106, 61, 0.14) 0%, rgba(255, 106, 61, 0.05) 35%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 120px 24px 60px; max-width: 1000px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; margin-bottom: 38px;
  background: rgba(255, 255, 255, 0.02);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fire-1);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 106, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); }
}
.hero-title {
  font-size: clamp(56px, 11vw, 138px);
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.96;
  margin-bottom: 34px;
}
.hero-title .line { display: block; }
.fire-text {
  background: linear-gradient(100deg, var(--fire-1) 10%, var(--fire-2) 60%, #ffe9a8 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 140, 60, 0.3));
}
.hero-sub {
  max-width: 620px; margin: 0 auto 44px;
  font-size: clamp(16px, 2vw, 19px); color: var(--text-dim);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim);
}
.hero-scroll-line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: rgba(255, 255, 255, 0.1);
}
.hero-scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--fire-2));
  animation: scrollDrip 1.8s var(--ease-out) infinite;
}
@keyframes scrollDrip { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 36px); font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--fire-1); font-size: 0.6em; }
.marquee-track .outline {
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 150px) clamp(20px, 5vw, 56px); max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.eyebrow {
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--fire-1); margin-bottom: 18px;
}
.section-head h2, .contact h2 { font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; max-width: 520px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  max-width: 800px; margin: 0 auto;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  position: relative;
}
.product-card:hover { border-color: rgba(255, 255, 255, 0.16); }
.product-card[data-accent="fire"]:hover { box-shadow: 0 24px 70px -20px rgba(255, 106, 61, 0.35); }
.product-card[data-accent="teal"]:hover { box-shadow: 0 24px 70px -20px rgba(61, 214, 195, 0.3); }
.product-card[data-accent="violet"]:hover { box-shadow: 0 24px 70px -20px rgba(160, 107, 255, 0.3); }

.product-visual {
  height: 250px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 106, 61, 0.1), transparent 65%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.product-card[data-accent="teal"] .product-visual {
  background: radial-gradient(ellipse at 50% 120%, rgba(61, 214, 195, 0.1), transparent 65%), var(--bg-soft);
}
.product-card[data-accent="violet"] .product-visual {
  background: radial-gradient(ellipse at 50% 120%, rgba(160, 107, 255, 0.12), transparent 65%), var(--bg-soft);
}
.product-body { padding: 28px 28px 30px; }
.product-body h3 {
  font-size: 24px; letter-spacing: 0.03em; margin: 14px 0 10px;
}
.product-body p { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.tag-fire { color: var(--fire-2); border-color: rgba(255, 201, 61, 0.3); background: rgba(255, 106, 61, 0.08); }
.tag-teal { color: var(--teal); border-color: rgba(61, 214, 195, 0.3); background: rgba(61, 214, 195, 0.07); }
.tag-violet { color: var(--violet); border-color: rgba(160, 107, 255, 0.35); background: rgba(160, 107, 255, 0.08); }
.tag-soon { color: var(--text-dim); }
.product-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.product-link i { font-style: normal; transition: transform 0.3s var(--ease-out); }
.product-link:hover i { transform: translateX(5px); }

/* --- FAST DROP visual --- */
.device {
  width: 128px; height: 210px; border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #0a0c14; padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(24px);
}
.device-screen {
  width: 100%; height: 100%; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(to bottom, #101427, #1a1030);
}
.fd-drop {
  position: absolute; width: 12px; height: 15px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  top: -20px;
  animation: fdFall 1.6s linear infinite;
}
.fd-d1 { left: 16%; background: var(--fire-1); animation-delay: 0s; }
.fd-d2 { left: 42%; background: var(--fire-2); animation-delay: 0.5s; }
.fd-d3 { left: 66%; background: var(--teal); animation-delay: 0.9s; }
.fd-d4 { left: 84%; background: var(--violet); animation-delay: 1.25s; }
@keyframes fdFall { to { transform: translateY(230px); } }
.fd-paddle {
  position: absolute; bottom: 12px; left: 50%; width: 42px; height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
  animation: fdPaddle 1.6s ease-in-out infinite;
}
@keyframes fdPaddle {
  0%, 100% { transform: translateX(-80%); } 50% { transform: translateX(-10%); }
}
.fd-score {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--fire-2);
}

/* --- AI TO PNG visual --- */
.aipng-frame {
  width: 190px; height: 190px; border-radius: 18px; position: relative; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.aipng-checker {
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(#181c28 0% 25%, #10131e 0% 50%) 0 0 / 22px 22px;
}
.aipng-prompt {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  background: rgba(8, 9, 15, 0.85); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; font-family: var(--font-display); font-size: 11px; color: var(--text-dim);
  display: flex; align-items: center; gap: 2px; overflow: hidden; white-space: nowrap;
}
.aipng-caret { width: 2px; height: 12px; background: var(--teal); animation: caretBlink 0.9s steps(2) infinite; order: 2; }
@keyframes caretBlink { 50% { opacity: 0; } }
.aipng-text {
  overflow: hidden; display: inline-block; white-space: nowrap; max-width: 0;
  animation: typeIn 4s steps(20) infinite;
}
@keyframes typeIn { 0% { max-width: 0; } 45%, 90% { max-width: 100%; } 100% { max-width: 100%; } }
.aipng-fox {
  position: absolute; width: 96px; left: 50%; bottom: 16px; transform: translateX(-50%) scale(0);
  animation: foxPop 4s var(--ease-out) infinite;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
@keyframes foxPop {
  0%, 42% { transform: translateX(-50%) scale(0) rotate(-8deg); opacity: 0; }
  55%, 92% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 0; }
}
.aipng-sparkle {
  position: absolute; color: var(--teal); font-size: 14px; z-index: 2; opacity: 0;
  animation: sparkle 4s ease-in-out infinite;
}
.aipng-sparkle.s1 { left: 22px; bottom: 74px; animation-delay: 0.2s; }
.aipng-sparkle.s2 { right: 26px; bottom: 44px; animation-delay: 0.5s; font-size: 10px; }
@keyframes sparkle {
  0%, 45% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  58% { opacity: 1; transform: scale(1.2) rotate(40deg); }
  75%, 100% { opacity: 0; transform: scale(0.4) rotate(90deg); }
}
.aipng-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: #06231f; background: var(--teal); border-radius: 6px; padding: 3px 8px;
}

/* --- DROP SORT visual --- */
.jars { display: flex; align-items: flex-end; gap: 16px; position: relative; transform: translateY(8px); }
.jar {
  width: 46px; height: 110px; position: relative; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2); border-top-width: 3px;
  border-radius: 8px 8px 16px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.jar-liquid {
  position: absolute; bottom: 0; left: 0; right: 0; border-radius: 0 0 12px 12px;
  transition: height 0.5s;
}
.jar-liquid::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: rgba(255, 255, 255, 0.25); border-radius: 50%;
  animation: liquidWave 2.4s ease-in-out infinite;
}
@keyframes liquidWave { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(0.9) translateY(1px); } }
.l-red { background: linear-gradient(to bottom, #ff5d6c, #d63652); }
.l-blue { background: linear-gradient(to bottom, #4d9dff, #2f6de0); }
.l-green { background: linear-gradient(to bottom, #4de08a, #27b569); }
.jar-drop {
  position: absolute; top: -60px; left: 50%; width: 13px; height: 16px; margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #4d9dff;
  animation: jarDrop 2.2s ease-in infinite;
}
@keyframes jarDrop {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  60% { transform: translateY(105px) scale(1); opacity: 1; }
  70%, 100% { transform: translateY(112px) scale(1.6, 0.3); opacity: 0; }
}

/* --- Classified (unknown) projects --- */
.classified .blurred {
  filter: blur(7px) brightness(0.55) saturate(0.7);
  transition: filter 0.5s var(--ease-out);
}
.product-card:hover .classified .blurred { filter: blur(5px) brightness(0.65) saturate(0.8); }
.mystery-mark {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 84px; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 40px rgba(255, 106, 61, 0.55);
  animation: mysteryFloat 3.2s ease-in-out infinite;
  pointer-events: none;
}
.product-card[data-accent="teal"] .mystery-mark { text-shadow: 0 0 40px rgba(61, 214, 195, 0.55); }
@keyframes mysteryFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-8px) scale(1.05); opacity: 1; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.6); }
.blog-thumb {
  height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px;
  overflow: hidden;
}
.blog-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 55%);
}
.bt-fire { background: linear-gradient(135deg, #ff6a3d, #ffc93d); }
.bt-teal { background: linear-gradient(135deg, #1f9e8f, #3dd6c3); }
.bt-violet { background: linear-gradient(135deg, #7b45d6, #a06bff); }
.blog-cat {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #1a0d06;
  background: rgba(255, 255, 255, 0.72); border-radius: 999px; padding: 4px 12px;
}
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.blog-card-body p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; flex: 1; }
.blog-more {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fire-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.blog-more i { font-style: normal; transition: transform 0.3s var(--ease-out); }
.blog-card:hover .blog-more i { transform: translateX(5px); }

/* ---------- Article page ---------- */
.article {
  max-width: 760px; margin: 0 auto; padding: 130px clamp(20px, 5vw, 24px) 80px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim);
  font-size: 14px; font-weight: 500; margin-bottom: 32px; transition: color 0.25s;
}
.article-back:hover { color: var(--text); }
.article-cat {
  display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire-1); margin-bottom: 16px;
}
.article h1 {
  font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin-bottom: 18px;
}
.article-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.article-body { font-size: 17px; line-height: 1.75; color: #d9d7d1; }
.article-body h2 {
  font-size: 26px; margin: 44px 0 16px; color: var(--text);
}
.article-body h3 { font-size: 20px; margin: 32px 0 12px; color: var(--text); }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--fire-2); border-bottom: 1px solid rgba(255, 201, 61, 0.35); }
.article-lead {
  font-size: 20px; line-height: 1.6; color: var(--text); margin-bottom: 36px;
  padding-left: 20px; border-left: 3px solid var(--fire-1);
}
.article-cta {
  margin-top: 52px; padding: 32px; border: 1px solid rgba(255, 106, 61, 0.28);
  border-radius: var(--radius); text-align: center;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 106, 61, 0.1), transparent 60%), var(--bg-soft);
}
.article-cta h3 { font-size: 22px; margin-bottom: 10px; }
.article-cta p { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }

/* ---------- Invest ---------- */
.invest {
  max-width: none;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(255, 106, 61, 0.06), transparent 65%),
    var(--bg);
}
.invest-inner { max-width: 1240px; margin: 0 auto; }
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 0; margin-bottom: 60px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); line-height: 1;
  background: linear-gradient(100deg, var(--fire-1), var(--fire-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.stat-label { color: var(--text-dim); font-size: 14px; max-width: 210px; margin: 0 auto; }

.invest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 64px; }
.invest-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.invest-card:hover { transform: translateY(-5px); border-color: rgba(255, 106, 61, 0.3); }
.invest-ic { font-size: 26px; margin-bottom: 15px; }
.invest-card h4 { font-size: 18px; margin-bottom: 10px; }
.invest-card p { color: var(--text-dim); font-size: 14px; }

.invest-cta {
  text-align: center; border: 1px solid rgba(255, 106, 61, 0.28); border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px) 32px;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 106, 61, 0.1), transparent 60%),
    var(--bg-soft);
}
.invest-cta h3 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 14px; }
.invest-cta p { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.support-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  background: var(--bg-card);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.support-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.16); }
.support-card-featured {
  border-color: rgba(255, 106, 61, 0.35);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 106, 61, 0.09), transparent 60%),
    var(--bg-card);
}
.support-card-featured:hover { box-shadow: 0 24px 70px -20px rgba(255, 106, 61, 0.35); }
.support-icon { font-size: 30px; margin-bottom: 14px; }
.support-card h4 { font-size: 21px; margin-bottom: 10px; }
.support-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }
.support-badge {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(61, 214, 195, 0.3); border-radius: 999px; padding: 8px 18px;
  margin-top: auto;
}
.support-card .btn { margin-top: auto; }

/* ---------- Mission ---------- */
.mission {
  max-width: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 106, 61, 0.07), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mission-inner { max-width: 1240px; margin: 0 auto; text-align: center; }
.mission-statement {
  font-size: clamp(36px, 6.4vw, 74px); text-transform: none; margin-bottom: 26px;
}
.mission-statement span { display: block; }
.mission-sub { max-width: 640px; margin: 0 auto 70px; color: var(--text-dim); font-size: 17px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
.pillar {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.pillar:hover { border-color: rgba(255, 106, 61, 0.35); transform: translateY(-4px); }
.pillar-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--fire-1);
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.pillar h4 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.studio-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.studio-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.16); }
.studio-icon { font-size: 26px; margin-bottom: 16px; }
.studio-card h4 { font-size: 18px; margin-bottom: 9px; }
.studio-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact p { color: var(--text-dim); font-size: 17px; margin-bottom: 40px; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 4.6vw, 46px); letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--fire-1), var(--fire-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid rgba(255, 106, 61, 0.35);
  padding-bottom: 6px;
  transition: filter 0.3s;
}
.contact-email:hover { filter: brightness(1.2) drop-shadow(0 0 24px rgba(255, 140, 60, 0.35)); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 44px clamp(20px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em;
}
.footer-note { color: var(--text-dim); font-size: 14px; }
.footer-copy { color: rgba(255, 255, 255, 0.3); font-size: 12.5px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.42s; }

@media (max-height: 560px) {
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* ---------- Hero 3D layer ---------- */
.hero-3d {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }

.hero-video-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(8, 9, 15, 0.1), rgba(8, 9, 15, 0.72) 100%),
    linear-gradient(to bottom, rgba(8, 9, 15, 0.55) 0%, rgba(8, 9, 15, 0.2) 32%, rgba(8, 9, 15, 0.3) 68%, rgba(8, 9, 15, 0.85) 100%);
}

/* "Entering the flame" intro veil */
.flame-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 55%,
    #ffe9a8 0%, #ff8a3d 30%, #ff6a3d 55%, #2a0e05 78%, #08090f 100%);
  animation: flameVeilOut 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}
@keyframes flameVeilOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ---------- Page transitions (multi-page navigation) ---------- */
body {
  animation: pageIn 0.5s var(--ease-out);
}
body.page-leaving {
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Home teaser grid (reuses studio-card/studio-grid look) ---------- */
a.studio-card { display: block; }
a.studio-card .product-link { margin-top: 14px; }

/* ---------- Games hub ---------- */
.game-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.game-tab {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-dim); background: rgba(255, 255, 255, 0.02); cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.game-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.game-tab.active {
  color: #1a0d06; background: linear-gradient(120deg, var(--fire-1), var(--fire-2)); border-color: transparent;
}
.game-stage {
  position: relative; min-height: 360px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  padding: clamp(24px, 4vw, 44px);
}
.game-panel { display: none; }
.game-panel.active { display: block; animation: gamePanelIn 0.45s var(--ease-out); }
@keyframes gamePanelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shared: per-game objective line */
.game-goal {
  max-width: 560px; margin: 0 auto 26px; text-align: center;
  color: var(--text-dim); font-size: 14px; line-height: 1.6;
}

/* Shared game HUD / controls / win overlay */
.ds-hud {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 14px; color: var(--text-dim);
}
.ds-hud-item b { color: var(--fire-2); }
.ds-controls { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ds-win {
  text-align: center; margin-top: 26px; padding: 26px; border-radius: var(--radius);
  border: 1px solid rgba(255, 106, 61, 0.3);
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 106, 61, 0.12), transparent 60%), var(--bg-soft);
}
.ds-win p { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; }

/* Kod Sındır (Code Break) */
.cb-slots { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.cb-slot {
  width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, color 0.2s;
}
.cb-slot.filled { border-color: rgba(255, 201, 61, 0.4); color: var(--fire-2); }
.cb-pad { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cb-pad-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.cb-pad-btn:hover { border-color: rgba(255, 201, 61, 0.4); transform: translateY(-2px); }
.cb-history { max-width: 360px; margin: 22px auto 0; display: flex; flex-direction: column; gap: 8px; }
.cb-history-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
  font-family: var(--font-display); font-size: 14px; background: rgba(255, 255, 255, 0.02);
}
.cb-history-guess { letter-spacing: 0.12em; color: var(--text-dim); }
.cb-history-feedback { display: flex; gap: 12px; font-size: 13px; }
.cb-fb-exact { color: var(--fire-2); }
.cb-fb-close { color: var(--teal); }

/* Ember Merge */
.em-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 380px; margin: 0 auto;
  background: var(--bg-soft); padding: 10px; border-radius: 16px; border: 1px solid var(--line);
  touch-action: none; user-select: none;
}
.em-cell {
  aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.em-cell.filled {
  background: linear-gradient(145deg, rgba(255, 106, 61, 0.2), rgba(255, 201, 61, 0.09));
  border: 1px solid rgba(255, 201, 61, 0.28);
}
.em-emoji { font-size: clamp(18px, 4vw, 26px); }
.em-value { font-family: var(--font-display); font-size: 11px; color: var(--text-dim); font-weight: 600; }
.em-hint { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px; }

/* Memory of Baku — real 3D card flip */
.mm-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.mm-card { aspect-ratio: 1; perspective: 800px; cursor: pointer; }
.mm-card-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}
.mm-card.flipped .mm-card-inner { transform: rotateY(180deg); }
.mm-card-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(20px, 5vw, 32px); border-radius: 12px; border: 1px solid var(--line);
}
.mm-card-back { background: linear-gradient(135deg, #1a1030, #241238); }
.mm-card-front { background: var(--bg-soft); transform: rotateY(180deg); }
.mm-card.matched .mm-card-front { box-shadow: 0 0 0 2px var(--teal) inset; }

/* ---------- Ad slot (hidden until AdSense is configured) ---------- */
.ad-slot { margin: 40px auto 0; max-width: 728px; min-height: 90px; }
.ad-slot[hidden] { display: none; }

/* ---------- Shared primitives for the 15 extra games ---------- */
.gg-board {
  display: grid; gap: 8px; margin: 0 auto; max-width: 420px; user-select: none;
}
.gg-cell {
  aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 3vw, 20px);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--text);
}
.gg-cell:hover { border-color: rgba(255, 201, 61, 0.35); }
.gg-cell.revealed { background: rgba(255, 255, 255, 0.05); cursor: default; }
.gg-cell.mine { background: rgba(255, 93, 108, 0.25); }
.gg-cell.flagged { color: var(--fire-2); }
.gg-cell.blank { background: transparent; border-color: transparent; cursor: default; }
.gg-cell.disabled { cursor: default; }
.gg-cell.x { color: var(--fire-2); }
.gg-cell.o { color: var(--teal); }
.gg-cell.active { background: rgba(255, 106, 61, 0.22); border-color: rgba(255, 201, 61, 0.5); font-size: 22px; }

.game-canvas-wrap { display: flex; justify-content: center; }
.game-canvas {
  max-width: 100%; border-radius: 16px; border: 1px solid var(--line);
  background: #0a0c14; touch-action: none;
}

.choice-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.choice-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
}
.choice-btn:hover { transform: translateY(-3px); border-color: rgba(255, 201, 61, 0.4); }
.choice-btn.picked { border-color: var(--fire-2); box-shadow: 0 0 0 2px rgba(255, 201, 61, 0.3); }

.big-readout {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 6vw, 52px); margin: 20px 0; color: var(--fire-2);
}

.type-text {
  font-family: var(--font-body); font-size: 18px; line-height: 1.8;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; max-width: 560px; margin: 0 auto 20px; letter-spacing: 0.02em;
}
.type-text .tc-done { color: var(--teal); }
.type-text .tc-wrong { color: #ff5d6c; text-decoration: underline; }
.type-text .tc-current { border-bottom: 2px solid var(--fire-2); }
.type-input {
  display: block; width: 100%; max-width: 560px; margin: 0 auto; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-size: 16px; font-family: var(--font-body);
}

.aim-field {
  position: relative; width: 100%; max-width: 480px; height: 320px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); overflow: hidden;
}
.aim-target {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--fire-2), var(--fire-1));
  cursor: pointer; box-shadow: 0 0 18px rgba(255, 106, 61, 0.5);
}

.stroop-word {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 7vw, 56px); margin: 24px 0;
}

.simon-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 260px; margin: 0 auto; }
.simon-btn { aspect-ratio: 1; border-radius: 16px; opacity: 0.5; transition: opacity 0.15s, transform 0.15s; border: 1px solid var(--line); }
.simon-btn.lit { opacity: 1; transform: scale(0.96); }

/* ---------- Support: payment buttons ---------- */
.support-grid-3 { grid-template-columns: repeat(3, 1fr); }
.support-note { font-size: 12px; color: var(--text-dim); margin-top: 10px; letter-spacing: 0.04em; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

@media (max-width: 1020px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .invest-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .support-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: rgba(10, 12, 20, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 34px;
    transform: translateX(100%); transition: transform 0.45s var(--ease-out);
    z-index: 85;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; }
  .nav-burger { display: block; position: relative; z-index: 86; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .btn-small { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
  .support-grid-3 { grid-template-columns: 1fr; }
  .game-stage { padding: 20px 14px; }
  .cb-slot, .cb-pad-btn { width: 38px; height: 38px; }
  .mm-board, .em-board { max-width: 320px; gap: 8px; }
  .hero-3d { opacity: 0.7; }
}
