/* =============================================================
   Slampunks — Landing Page Styles
   Accent color and other brand tokens live in :root.
   ============================================================= */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --bg:              #0a0a0f;
  --text:            #ffffff;
  --text-dim:        rgba(255, 255, 255, 0.72);
  --accent:          #e8312a;
  --accent-hover:    #ff4a42;
  --nav-height:      68px;
  --social-height:   58px;
  --nav-bg:          rgba(8, 8, 12, 0.78);
  --border-subtle:   rgba(255, 255, 255, 0.08);
  --radius:          6px;
  --ease:            0.22s ease;
  --font:            'Outfit', system-ui, sans-serif;
  --font-accent:     'Jost', system-ui, sans-serif;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Background Video ────────────────────────────────────────── */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Vignette + top/bottom darkening for readability */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.05) 25%,
      rgba(0,0,0,0.05) 70%,
      rgba(0,0,0,0.65) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.nav-link:hover {
  color: #fff;
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link--active {
  color: #fff;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: -2px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ── Main Content ────────────────────────────────────────────── */
.main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  text-align: center;
  padding: 0 1rem;
}

.hero-logo {
  max-width: min(345px, 48vw);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(232, 49, 42, 0.2));
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 24px rgba(232, 49, 42, 0.35);
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-steam svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-steam:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 49, 42, 0.5);
}

/* ── Steam Widget ────────────────────────────────────────────── */
.steam-widget-wrap {
  /* Width and height are set dynamically by JS; fallback matches native height */
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
}

.steam-widget-wrap iframe {
  border: none;
  display: block;
  /* transform and height overridden by JS on small viewports */
}

/* ── Steam Section ───────────────────────────────────────────── */
.steam-section {
  width: 100%;
  max-width: 686px;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ── Studio Attribution ──────────────────────────────────────── */
.studio-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.studio-attribution img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.65;
}

/* ── YouTube Embed ───────────────────────────────────────────── */
.video-section {
  width: 100%;
  max-width: 686px;
  padding: 0 1.25rem;
}

.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
}

.youtube-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Social Links (inline, below attribution) ────────────────── */
.social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  white-space: nowrap;
}

.social-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.studio-logo {
  margin-left: auto;
  opacity: 0.45;
  transition: opacity var(--ease);
}

.studio-logo:hover { opacity: 0.8; }

.studio-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ── Cookie Banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: rgba(12, 12, 18, 0.97);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100svh - var(--nav-height));
  overflow-y: auto;
  /* Hidden by default — JS adds .visible */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 760px;
}

.cookie-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.btn-cookie {
  padding: 0.42rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-cookie-accept:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-subtle);
}
.btn-cookie-reject:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-cookie-manage {
  background: transparent;
  color: var(--text-dim);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0;
  padding-right: 0;
}
.btn-cookie-manage:hover { color: var(--text); }

/* Cookie preferences panel */
.cookie-prefs {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.cookie-prefs.open { display: flex; }

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.pref-label { font-size: 0.82rem; flex: 1; }

.pref-label strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.18rem;
}

.pref-label span {
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1.5;
}

.always-on-badge {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--ease);
}

.toggle input:checked + .toggle-track { background: var(--accent); }

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease);
}

.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── Inner Pages (Impressum / Privacy Policy) ────────────────── */
.page-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
}

.page-content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
}

.page-content p,
.page-content li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.page-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content strong { color: var(--text); }

.page-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  transition: color var(--ease);
}
.page-content .back-link:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 0 1rem; }
  .nav-logo img { height: 30px; }
  .nav-links { gap: 0; }
  .nav-link { font-size: 0.68rem; padding: 0.3rem 0.55rem; letter-spacing: 0.04em; }

  .hero-logo { max-width: 88vw; }
  .btn-steam { font-size: 0.8rem; padding: 0.75rem 1.6rem; }

  .cookie-banner { padding: 1rem; }
  .cookie-actions { flex-direction: column; align-items: flex-start; }

  .page-content { padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem; }
  .page-content h1 { font-size: 1.4rem; }
  .page-content h2 { font-size: 1rem; }
}

/* ── SEO Footer Section ──────────────────────────────────────── */
.seo-footer {
  width: 100%;
  max-width: 680px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.seo-h1 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.seo-body {
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
  margin: 0 0 1.25rem;
}

.seo-cards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.seo-card {
  flex: 1 1 180px;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.seo-card h2 {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.seo-card p {
  font-size: 0.68rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

@media (max-width: 600px) {
  .seo-cards { flex-direction: column; }
  .seo-card { flex: unset; }
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.cookie-settings-link {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--ease);
}

.cookie-settings-link:hover {
  color: var(--text);
}
