:root {
  --bg-deep: #070913;
  --bg-surface: #0d1224;
  --bg-glass: rgba(16, 22, 44, 0.72);
  --bg-glass-hover: rgba(24, 33, 64, 0.85);
  --border-glass: rgba(168, 85, 247, 0.22);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --nucleus-purple: #a855f7;
  --nucleus-bright: #c084fc;
  --bio-emerald: #10b981;
  --bio-cyan: #06b6d4;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 42px rgba(168, 85, 247, 0.18), 0 18px 40px rgba(0, 0, 0, 0.48);
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Bioluminescent Ambient Background */
.bio-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.16), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.14), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.12), transparent 46%),
    var(--bg-deep);
}

.bio-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 9, 19, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, var(--nucleus-bright), var(--bio-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--nucleus-purple), var(--bio-cyan));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

/* Language block switching */
html[data-lang="en"] [data-lang-block="tr"],
html[data-lang="tr"] [data-lang-block="en"] {
  display: none !important;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--nucleus-purple), #7e22ce 45%, var(--bio-cyan));
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.36);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.38);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(20, 30, 56, 0.95);
  border-color: var(--bio-emerald);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  background: rgba(16, 22, 44, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--bio-cyan);
  background: rgba(24, 34, 66, 0.9);
}

/* Hero Section */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--nucleus-bright);
}

.pill.cyan {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.pill.emerald {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff 15%, var(--nucleus-bright) 55%, var(--bio-cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.38), rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.28));
  box-shadow: var(--shadow-glow);
}

.showcase-frame img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-cyan);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* 4 Consciousness / Heroes Grid */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hero-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.18);
}

.hero-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.22), rgba(7, 9, 19, 0.96));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-card-media.core-emblem img {
  width: 68%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 0 36px rgba(6, 182, 212, 0.4);
}

.hero-role {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(7, 9, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.hero-card-body {
  padding: 18px;
}

.hero-card-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Gameplay & Organelle Ecosystem */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.glass-card:hover {
  border-color: var(--border-glass);
  background: var(--bg-glass-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.glass-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.glass-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-caption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.gallery-caption strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* Legal & Support Pages */
.page-hero {
  padding: 48px 0 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.legal-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 56px;
}

.legal-card h2 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--nucleus-bright);
  margin: 28px 0 10px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-card code {
  background: rgba(168, 85, 247, 0.16);
  color: #e9d5ff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
}

.legal-card a.link {
  color: var(--bio-cyan);
  text-decoration: underline;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 15, 0.9);
  padding: 36px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--bio-cyan);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .heroes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .heroes-grid,
  .features-grid,
  .gallery-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 24px 18px;
  }
}
