:root {
  --bg: #0b0b0e;
  --bg-soft: #14131a;
  --text: #f2f2f4;
  --muted: #b5b6bf;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.25);
  --glow: rgba(255, 120, 55, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --header-alpha: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/bg/just_bg.png") center / cover no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 14, calc(0.95 * var(--header-alpha))) 0%,
    rgba(11, 11, 14, calc(0.7 * var(--header-alpha))) 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, calc(0.08 * var(--header-alpha)));
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  height: 22px;
  width: auto;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 20, 0.6);
  margin-left: 4px;
  width: fit-content;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(255, 106, 61, 0.7);
  outline-offset: 2px;
}

.lang-btn.active {
  color: var(--text);
  border-color: rgba(255, 106, 61, 0.35);
  background: rgba(255, 106, 61, 0.18);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 106, 61, 0.12);
  border: 1px solid rgba(255, 106, 61, 0.3);
}

.nav.open .nav-links {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.section {
  min-height: 100vh;
  padding: 100px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  contain: paint;
}

.content {
  max-width: 1100px;
  width: 100%;
  display: grid;
  gap: 28px;
}

.hero .content {
  position: relative;
}

:root { --hero-logo-offset: -22px; --hero-logo-offset-x: 32px; }
.hero-bg-logo {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(260px, 55vw);
  height: 512px;
  background: url("assets/img/logo_2_no_font_no_bg.png") right center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  transform: translate(
    calc(var(--hero-logo-offset-x, 0px)),
    calc(-50% + var(--hero-logo-offset, 0px))
  );
}

.hero .content > *:not(.hero-bg-logo) {
  position: relative;
  z-index: 1;
}

.hero {
  padding-top: 120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.section-title {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0;
  position: relative;
  isolation: isolate;
}

.burn-text {
  display: inline-block;
  background: linear-gradient(90deg, #ffd6b8, #ff8a55 45%, #fff2e6 70%, #ff7b42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
  position: relative;
  isolation: isolate;
  animation: burnPulse 2.8s ease-in-out infinite, burnFlicker 0.16s steps(2, end) infinite;
  text-shadow:
    0 0 10px rgba(255, 140, 70, 0.4),
    0 0 22px rgba(255, 100, 50, 0.35),
    0 0 38px rgba(255, 70, 30, 0.25);
}

.burn-text::after {
  display: none;
}

@keyframes burnPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes burnFlicker {
  0% { opacity: 0.98; }
  50% { opacity: 0.92; }
  100% { opacity: 1; }
}

@keyframes burnWave {
  0%, 100% { transform: translateY(0) scaleX(0.95); opacity: 0.55; }
  50% { transform: translateY(-6px) scaleX(1.05); opacity: 0.8; }
}

.section-title::after {
  display: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; transform: scaleX(0.9); }
  50% { opacity: 0.8; transform: scaleX(1.05); }
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, #ff9055);
  color: #0b0b0e;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(255, 106, 61, 0.35);
}

.btn::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 0.6;
  transform: scale(1);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 106, 61, 0.6);
  box-shadow: none;
}

.btn.wishlist {
  background: linear-gradient(135deg, #1b6d3b, #2e8b57);
  color: #e8f7ee;
  box-shadow: 0 6px 20px rgba(34, 139, 86, 0.35);
}

.btn.small {
  font-size: 14px;
  padding: 10px 18px;
}

.forge-panel {
  position: relative;
  height: 260px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.12), rgba(255, 106, 61, 0.02));
  border: 1px solid rgba(255, 106, 61, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.forge-ring {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 106, 61, 0.3);
  box-shadow: 0 0 30px rgba(255, 120, 55, 0.4);
}

.forge-core {
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 110, 0.8), rgba(255, 106, 61, 0.2));
  filter: blur(1px);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-art-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.game-art {
  height: 160px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 20% 20%, rgba(255, 120, 60, 0.45), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 190, 120, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(20, 18, 24, 0.9), rgba(10, 10, 14, 0.8));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  flex: 1 1 50%;
  min-width: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 24px;
  margin-top: auto;
}

.tag {
  background: rgba(255, 106, 61, 0.12);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 106, 61, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tag.forging {
  background: rgba(255, 120, 55, 0.18);
  border-color: rgba(255, 140, 80, 0.45);
  color: #ffd7c2;
}

.tag.published {
  background: rgba(46, 120, 80, 0.25);
  border-color: rgba(82, 180, 120, 0.5);
  color: #d7f6e6;
}

.tag-icon {
  width: 12px;
  height: 12px;
  display: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7f6e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E");
}

.tag.published .tag-icon {
  display: inline-block;
}

.split {
  gap: 40px;
}

.stats {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(20, 18, 24, 0.8);
}

.stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--bg-soft);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  min-height: 44px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 106, 61, 0.5);
}

.form-status {
  min-height: 20px;
  color: var(--accent);
  margin: 0;
}

.contact-details {
  display: grid;
  gap: 16px;
  align-content: start;
}

.subscribe {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 20, 0.8);
}

.subscribe .muted {
  margin: 0;
  color: var(--muted);
}

.subscribe h3 {
  margin: 0;
  font-size: 16px;
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-status {
  min-height: 20px;
  color: var(--accent);
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.office {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 20, 0.8);
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--muted);
}

.social-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 80, 0.4);
  background: rgba(20, 14, 14, 0.7);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.floating-social {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 80, 0.5);
  background: rgba(12, 10, 12, 0.92);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 6, 6, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.floating-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.floating-social:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 61, 0.8);
  color: #ffb08a;
}

.floating-social:focus-visible {
  outline: 2px solid rgba(255, 106, 61, 0.7);
  outline-offset: 2px;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 61, 0.7);
  color: #ffb08a;
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 106, 61, 0.7);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-links a {
    color: var(--muted);
  }

  .content {
    grid-template-columns: 1fr;
  }

  .hero .content {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 20px 100px;
  }

  .nav {
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-title::after {
    animation: none;
  }

  .btn,
  .btn::after {
    transition: none;
  }

  .burn-text,
  .burn-text::after {
    animation: none;
  }
}
