/* ========================================
   4:LOOP — play4loop.com
   Dark theme, art-forward, pre-launch
   ======================================== */

:root {
  --bg: #0f1117;
  --bg-elevated: #161922;
  --bg-card: #1a1d28;
  --text: #e8e8ed;
  --text-muted: #8b8d98;
  /* Key art palette */
  --ka-teal: #4bd8b5;
  --ka-cyan: #3695d8;
  --ka-purple: #925fc4;
  --ka-amber: #d8a23c;
  --ka-red: #cd4733;
  --ka-green: #5da492;
  /* UI accents (from key art) */
  --accent-purple: #925fc4;
  --accent-teal: #4bd8b5;
  --accent-blue: #3695d8;
  --accent-orange: #d8a23c;
  --ps-blue: #0070d1;
  --steam-dark: #1b2838;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1600px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
}

.container-wide {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

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

.nav-media-kit {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: border-color var(--transition), color var(--transition) !important;
}

.nav-media-kit:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.nav-playtest {
  padding: 7px 18px;
  background: linear-gradient(135deg, var(--ka-purple), var(--ka-cyan));
  border-radius: 20px;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity var(--transition), transform var(--transition) !important;
}

.nav-playtest:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(20px);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--text);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(15, 17, 23, 0.3) 0%,
      rgba(15, 17, 23, 0.0) 30%,
      rgba(15, 17, 23, 0.0) 50%,
      rgba(15, 17, 23, 0.6) 75%,
      rgba(15, 17, 23, 1) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 48px 100px;
  max-width: 1100px;
  margin-top: 55vh;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-wishlist-pills {
  display: flex;
  gap: 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  opacity: 0.5;
  animation: bobble 2s ease-in-out infinite;
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-ps {
  background: var(--ps-blue);
}

.btn-ps:hover {
  background: #0080eb;
}

.btn-steam {
  background: var(--steam-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-steam:hover {
  background: #2a475e;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

/* Horizon-style white pill buttons */
.hero-wishlist-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: -4px;
  font-style: italic;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  background: #fff;
  color: #111;
  border-radius: 50px;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn-pill:active {
  transform: translateY(0);
}

.btn-pill-icon {
  height: 40px;
  width: auto;
  display: block;
}

.btn-pill-playtest {
  background: rgba(88, 30, 160, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-pill-playtest:hover {
  background: rgba(108, 40, 190, 0.95);
}

.btn-pill-lg {
  padding: 5px;
}

.btn-pill-lg .btn-pill-icon {
  height: 48px;
}

/* ---- Terminal aesthetic ---- */
.prompt {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
  font-weight: 400;
}

.cursor {
  color: rgba(255, 255, 255, 0.7);
  animation: blink 1s step-end infinite;
  font-weight: 400;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typewriter {
  min-height: 6em;
  position: relative;
}

.tw-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--text);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: block-blink 1s step-end infinite;
}

.tw-bold {
  color: var(--text);
  font-weight: 700;
}

@keyframes block-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.feature-step {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 64px;
  text-align: center;
}

/* ---- Section color bands (from key art beams) ---- */
.section::before {
  content: '';
  display: block;
  height: 2px;
  margin-bottom: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.section {
  position: relative;
}

/* ---- Trailers ---- */
.trailers {
  background: var(--bg);
  border-top: 1px solid rgba(75, 216, 181, 0.15);
}

.trailers::before {
  background: linear-gradient(90deg,
    transparent 5%,
    var(--ka-teal) 20%,
    var(--ka-cyan) 45%,
    var(--ka-purple) 70%,
    transparent 95%
  );
  opacity: 0.5;
}

.media-carousel {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.media-track {
  display: flex;
  align-items: center;
  gap: 24px;
  will-change: transform;
}

.media-item {
  flex-shrink: 0;
  width: 60vw;
  max-width: 800px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.8);
  opacity: 0.5;
}

.media-item.active {
  transform: scale(1);
  opacity: 1;
}

.media-item-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.media-item-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.media-item.active .video-wrapper iframe {
  pointer-events: auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 17, 23, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: rgba(15, 17, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
}

.carousel-arrow-left {
  left: max(16px, calc((100vw - 900px) / 2 - 60px));
}

.carousel-arrow-right {
  right: max(16px, calc((100vw - 900px) / 2 - 60px));
}

.media-item-screenshot {
  border-radius: 16px;
  overflow: hidden;
}

.media-item-screenshot img,
.media-item-screenshot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  border: 1px solid rgba(75, 216, 181, 0.1);
  border-radius: 16px;
  background: rgba(75, 216, 181, 0.02);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ---- About ---- */
.about {
  position: relative;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(75, 216, 181, 0.3) 20%,
      rgba(146, 95, 196, 0.4) 50%,
      rgba(216, 162, 60, 0.3) 80%,
      var(--bg) 100%
    );
}

.about > * {
  position: relative;
  z-index: 1;
}

.about::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(75, 216, 181, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(146, 95, 196, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 40% 80%, rgba(216, 162, 60, 0.25) 0%, transparent 60%);
  opacity: 1;
}

.about::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('assets/about-bg.jpg') center / cover no-repeat;
  opacity: 0.08;
}

.about-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.about-lead strong {
  color: var(--text);
}

.features-stack {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 16px;
}

.feature-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  border-radius: 16px;
}

.feature-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.feature-media-placeholder span {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.5;
}

.feature-body h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-row:nth-child(1) .feature-body h3 { color: var(--ka-teal); }
.feature-row:nth-child(2) .feature-body h3 { color: var(--ka-purple); }
.feature-row:nth-child(3) .feature-body h3 { color: var(--ka-amber); }

.feature-body p {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- Playtest CTA ---- */
.playtest-cta {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.playtest-bg {
  position: relative;
  width: 100%;
}

.playtest-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.playtest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.playtest-content {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 2;
  width: 30%;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: linear-gradient(to bottom, rgba(80, 30, 120, 0.8), rgba(15, 17, 23, 0.95));
  backdrop-filter: blur(8px);
  border-top-left-radius: 16px;
  text-align: left;
}

.playtest-spinner {
  height: 1.2em;
  width: auto;
  vertical-align: -0.15em;
  margin-right: 8px;
  animation: spin-step 3s steps(8) infinite;
}

@keyframes spin-step {
  to { transform: rotate(360deg); }
}

.killbot-watermark {
  position: absolute;
  left: var(--kb-hide, -25%);
  top: 50%;
  transform: translateY(-50%) rotate(33deg);
  width: 350px;
  height: 350px;
  opacity: 0;
  pointer-events: none;
  color: rgba(50, 20, 90, 1);
  --kb-hide: -25%;
  --kb-show: -5%;
  animation: killbot-peek 30s ease-in-out infinite;
}


.killbot-eye {
  animation: killbot-eyes 30s ease-in-out infinite;
}

@keyframes killbot-eyes {
  0%   { fill: currentColor; }
  8%   { fill: currentColor; }
  12%  { fill: currentColor; }
  13%  { fill: #ff0000; filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.8)); }
  15%  { fill: #ff0000; filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.8)); }
  17%  { fill: currentColor; filter: none; }
  100% { fill: currentColor; }
}

@keyframes killbot-peek {
  0%   { left: var(--kb-hide); opacity: 0; }
  8%   { left: var(--kb-show); opacity: 0.12; }
  18%  { left: var(--kb-show); opacity: 0.12; }
  26%  { left: var(--kb-hide); opacity: 0; }
  100% { left: var(--kb-hide); opacity: 0; }
}

.playtest-about-heading {
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.playtest-about {
  font-size: clamp(0.85rem, 1.1vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: clamp(16px, 2vw, 32px);
  font-weight: 500;
}

.playtest-heading {
  font-size: clamp(1.3rem, 2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(8px, 1vw, 16px);
  letter-spacing: 0.02em;
}

.playtest-sub {
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: clamp(16px, 2vw, 32px);
  line-height: 1.5;
}

.playtest-btn {
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  padding: clamp(10px, 1.2vw, 14px) clamp(24px, 3vw, 40px);
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

/* ---- Media ---- */
.media {
  background: var(--bg);
}

/* ---- Press ---- */
.press {
  background: var(--bg-elevated);
}

.press::before {
  background: linear-gradient(90deg,
    transparent 10%,
    var(--ka-amber) 30%,
    var(--ka-teal) 60%,
    var(--ka-cyan) 80%,
    transparent 95%
  );
  opacity: 0.35;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.press-card {
  display: block;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.press-card:hover {
  border-color: rgba(216, 162, 60, 0.3);
  transform: translateY(-4px);
}

.press-source {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ka-amber);
  margin-bottom: 12px;
}

.press-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.press-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.press-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  background: linear-gradient(90deg,
    transparent 0%,
    var(--ka-amber) 20%,
    var(--ka-red) 40%,
    var(--ka-purple) 60%,
    var(--ka-cyan) 80%,
    transparent 100%
  );
  opacity: 0.5;
  z-index: 2;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(6px) brightness(0.3);
  transform: scale(1.1);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.7);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---- FAQ ---- */
.faq {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.faq-bg {
  position: relative;
  width: 100%;
}

.faq-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.faq-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 48px 64px;
  width: 580px;
  height: 85%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border-top-right-radius: 16px;
}

.faq-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.faq-list::-webkit-scrollbar {
  display: none;
}

.faq-content .section-title {
  text-align: left;
  margin-bottom: 32px;
}


.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '>';
  margin-left: auto;
  font-family: monospace;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform var(--transition);
  transform: rotate(0deg);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item summary:hover {
  color: var(--ka-teal);
}

.faq-item p {
  padding: 0 0 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item a {
  color: var(--ka-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item a:hover {
  color: #fff;
}

/* ---- Community ---- */
.community {
  padding: 80px 0;
  background: linear-gradient(180deg,
    rgba(88, 30, 160, 0.6) 0%,
    rgba(60, 20, 120, 0.8) 50%,
    rgba(30, 10, 70, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.community::after {
  content: '';
  position: absolute;
  left: -25%;
  top: 50%;
  transform: translateY(-50%) rotate(33deg);
  width: 350px;
  height: 350px;
  background: url('assets/killbot.svg') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  display: none;
}

.community-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.community-row .section-title {
  margin-bottom: 0;
}

.community::before {
  background: linear-gradient(90deg,
    transparent 10%,
    rgba(120, 50, 200, 0.4) 30%,
    rgba(88, 30, 160, 0.5) 50%,
    rgba(120, 50, 200, 0.4) 70%,
    transparent 90%
  );
  opacity: 0.5;
}

.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px;
  background: rgba(88, 101, 242, 0.25);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.discord-cta:hover {
  background: rgba(88, 101, 242, 0.4);
  border-color: rgba(88, 101, 242, 0.7);
  transform: translateY(-2px);
}

.discord-logo {
  height: 40px;
  width: auto;
  display: block;
}

.x-cta {
  display: inline-flex;
  align-items: center;
  padding: 20px 48px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.x-cta:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.x-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* ---- Footer ---- */
.footer {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  text-align: center;
}

.footer-brg {
  display: inline-block;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}

.footer-brg:hover {
  opacity: 0.8;
}

.footer-brg-logo {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-esrb {
  height: 50px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { padding: 0 20px; height: 60px; }
  .nav-logo-img { height: 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { padding: 0 20px 60px; }

  .section { padding: 72px 0; }
  .section-title { margin-bottom: 40px; }

  .media-item { width: 80vw; }
  .carousel-arrow-left { left: 8px; }
  .carousel-arrow-right { right: 8px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row-reverse { direction: ltr; }
  .features-stack { gap: 56px; }
  .community-row { flex-direction: column; gap: 24px; }
  .discord-cta { padding: 16px 32px; }
  .killbot-watermark { width: 150px; height: 150px; --kb-hide: -40%; --kb-show: -8%; }

  .about-lead { margin-bottom: 48px; }

  .faq-bg {
    position: relative;
  }
  .faq-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(15, 17, 23, 1));
  }
  .faq-bg img { min-height: 300px; object-fit: cover; display: block; }
  .faq-content {
    position: relative;
    max-width: 100%;
    padding: 40px 24px;
    border-radius: 0;
    background: var(--bg);
    margin-top: -1px;
  }

  .hero-cta { gap: 12px; }

  .btn-pill { padding: 5px; }
  .btn-pill-icon { height: 36px; }
  .btn-pill-lg .btn-pill-icon { height: 34px; }
  .btn-pill-playtest { padding: 14px 28px; }
  .hero-wishlist-pills { gap: 12px; }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .nav-playtest { display: inline-block; margin-top: 4px; text-align: center; }

  .playtest-content {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(80, 30, 120, 0.8), rgba(15, 17, 23, 0.95));
    margin-top: -1px;
  }
  .playtest-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
  }
  .playtest-bg { position: relative; }
  .playtest-bg img { min-height: 250px; object-fit: cover; }
  .playtest-btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 2rem;
  }

  .btn { width: 100%; justify-content: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
