/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:          #07070f;
  --bg-alt:      #0e0c1a;
  --bg-card:     rgba(255,255,255,0.03);
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.14);
  --text:        #e0e0ff;
  --text-dim:    #7a8394;
  --text-muted:  #3a3a5a;
  --accent:      #5865f2;
  --accent-hover:#4752c4;
  --accent-glow: rgba(88,101,242,0.45);
  --purple:      #9b59b6;
  --teal:        #1a9b8a;
  --teal-dark:   #0f6aab;
  --gold:        #ffd700;
  --green:       #3bc56b;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3060; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5a50a0; }
* { scrollbar-width: thin; scrollbar-color: #3a3060 transparent; }

/* ── Base ───────────────────────────────────────────────────── */
html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text-dim);
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3 { color: var(--text); line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Grain overlay ──────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 58px;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--text-dim);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
}
.nav-discord:hover { color: #7289da; }

/* ── Shared button system ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn svg { flex-shrink: 0; width: 1em; height: 1em; }

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(88,101,242,0.0); }
  50%       { box-shadow: 0 4px 28px rgba(88,101,242,0.55), 0 0 48px rgba(88,101,242,0.18); }
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  animation: btn-glow 2.8s ease-in-out infinite;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  animation: none;
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.1);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn-email {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--border);
}
.btn-email svg { width: 1.1em; height: 1.1em; }
.btn-email:hover { background: rgba(255,255,255,0.09); transform: translateY(-1px); }

.btn-discord-full {
  background: var(--accent);
  color: #fff;
}
.btn-discord-full:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 58px clamp(1.25rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.13) 1px, transparent 1px),
    radial-gradient(circle, rgba(180,180,255,0.10) 1px, transparent 1px);
  background-size: 48px 48px, 78px 78px, 134px 134px;
  background-position: 0 0, 29px 43px, 63px 19px;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}
.hero-glow-left {
  width: 600px; height: 500px;
  top: -10%; left: -8%;
  background: radial-gradient(ellipse, rgba(88,101,242,0.22) 0%, transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero-glow-right {
  width: 500px; height: 450px;
  bottom: -10%; right: -6%;
  background: radial-gradient(ellipse, rgba(148,60,235,0.16) 0%, transparent 60%);
  animation: drift2 28s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(7%, 5%) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, 7%) scale(1.15); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.25);
  color: #8a96f8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  width: fit-content;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 38ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-halo {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,101,242,0.35) 0%, rgba(148,60,235,0.18) 45%, transparent 72%);
  filter: blur(28px);
}

.mascot {
  position: relative;
  width: 82%;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  filter: drop-shadow(0 0 24px rgba(88,101,242,0.3));
}

/* ── Games section ──────────────────────────────────────────── */
.games {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.section-desc {
  font-size: 0.97rem;
  color: var(--text-dim);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1020px;
  margin: 0 auto;
}

/* ── Game card ──────────────────────────────────────────────── */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* Blurred background image layer — sits behind everything */
.game-card-img {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background: center top / cover no-repeat;
  filter: blur(8px) brightness(0.38) saturate(1.3);
  z-index: 0;
}

.game-card--rpg .game-card-img {
  background-image: url('https://drpg.chillstudios.online/landing/hero.png');
}

.game-card--pirates .game-card-img {
  background-image: url('https://worldofpirates.chillstudios.online/landing/hero.png');
  background-color: #041820;
}

/* Hover gradient overlay — sits above the image, below content */
.game-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 1;
}

.game-card:hover .game-card-bg { opacity: 1; }

/* All content children sit above both background layers */
.game-card > *:not(.game-card-img):not(.game-card-bg) {
  position: relative;
  z-index: 2;
}

@keyframes card-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(88,101,242,0.08), 0 0 0 1px rgba(88,101,242,0.08); }
  50%       { box-shadow: 0 0 32px rgba(88,101,242,0.22), 0 0 0 1px rgba(88,101,242,0.18); }
}

.game-card--rpg {
  animation: card-glow 3s ease-in-out infinite;
}
.game-card--rpg:hover {
  box-shadow: 0 8px 40px rgba(88,101,242,0.28), 0 0 0 1px rgba(88,101,242,0.25);
  border-color: rgba(88,101,242,0.35);
  animation: none;
}
.game-card--rpg .game-card-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(88,101,242,0.1), transparent 65%);
}

.game-card--pirates:hover {
  box-shadow: 0 8px 40px rgba(26,155,138,0.18), 0 0 0 1px rgba(26,155,138,0.2);
  border-color: rgba(26,155,138,0.3);
  animation: none;
}
.game-card--pirates .game-card-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(26,155,138,0.09), transparent 65%);
}

.game-card--blastloop .game-card-img {
  background-image: url('https://blastloop.chillstudios.online/landing/hero.png');
  background-color: #2e211c;
}

.game-card--blastloop:hover {
  box-shadow: 0 8px 40px rgba(95,184,91,0.22), 0 0 0 1px rgba(95,184,91,0.22);
  border-color: rgba(95,184,91,0.35);
  animation: none;
}
.game-card--blastloop .game-card-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(143,224,122,0.1), transparent 65%);
}
.game-card--blastloop:hover .game-cta { color: #8fe07a; }

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-icon {
  font-size: 2rem;
  line-height: 1;
}

.game-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.game-status--live {
  background: rgba(59,197,107,0.12);
  color: var(--green);
  border: 1px solid rgba(59,197,107,0.28);
}

.game-status--soon {
  background: rgba(255,180,0,0.08);
  color: #b8882a;
  border: 1px solid rgba(255,180,0,0.2);
}

.game-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
}

.game-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
  transition: color 0.15s;
}

.game-card:hover .game-cta { color: #7289da; }

.game-cta--muted {
  color: var(--text-muted);
  text-decoration: none;
}
.game-card--pirates:hover .game-cta--muted { color: var(--teal); }

/* ── Contact section ────────────────────────────────────────── */
.contact {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.contact .section-desc {
  margin-bottom: 2.2rem;
}

.contact-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  min-width: 260px;
}

.contact-actions .btn {
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem) 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-discord { color: #5865f2; }
.footer-discord:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lede { max-width: 100%; margin: 0 auto; }
  .hero-copy { align-items: center; }
  .hero-figure { order: -1; max-width: 240px; margin: 0 auto; }
  .studio-badge { align-self: center; }
  .hero-ctas { justify-content: center; }
}

@media (max-width: 480px) {
  .contact-actions { min-width: 0; width: 100%; }
}

/* ── Pirates card teal glow ─────────────────────────────────── */
@keyframes card-glow-teal {
  0%, 100% { box-shadow: 0 0 16px rgba(26,155,138,0.08), 0 0 0 1px rgba(26,155,138,0.08); }
  50%       { box-shadow: 0 0 32px rgba(26,155,138,0.24), 0 0 0 1px rgba(26,155,138,0.2); }
}

.game-card--pirates { animation: card-glow-teal 3s ease-in-out infinite; }

/* ── Blast Loop card green glow ─────────────────────────────── */
@keyframes card-glow-green {
  0%, 100% { box-shadow: 0 0 16px rgba(95,184,91,0.08), 0 0 0 1px rgba(95,184,91,0.08); }
  50%       { box-shadow: 0 0 32px rgba(95,184,91,0.22), 0 0 0 1px rgba(95,184,91,0.2); }
}

.game-card--blastloop { animation: card-glow-green 3s ease-in-out infinite; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.game-grid .game-card:nth-child(2).reveal { transition-delay: 0.12s; }
.game-grid .game-card:nth-child(3).reveal { transition-delay: 0.24s; }
.showcase-visual.reveal                   { transition-delay: 0.15s; }
.about-text.reveal                        { transition-delay: 0.1s; }
.devlog-entry.reveal:nth-child(2)         { transition-delay: 0.07s; }
.devlog-entry.reveal:nth-child(3)         { transition-delay: 0.14s; }
.devlog-entry.reveal:nth-child(4)         { transition-delay: 0.21s; }

/* ── Notify form (pirates card) ─────────────────────────────── */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.notify-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

.notify-input:focus {
  border-color: rgba(26,155,138,0.5);
  background: rgba(26,155,138,0.05);
}

.notify-input::placeholder { color: var(--text-muted); }
.notify-input:disabled { opacity: 0.5; cursor: not-allowed; }

.notify-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(26,155,138,0.18);
  color: var(--teal);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.notify-btn:hover:not(:disabled) {
  background: rgba(26,155,138,0.28);
  color: #22c5ae;
}

.notify-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ── Showcase section ───────────────────────────────────────── */
.showcase {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--bg);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.showcase-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 42ch;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.showcase-feature-icon {
  font-size: 1.4rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.showcase-features li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-features strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.showcase-features span {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(88,101,242,0.06);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(18,16,32,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.frame-label {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Devlog section ─────────────────────────────────────────── */
.devlog {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.devlog-inner {
  max-width: 780px;
  margin: 0 auto;
}

.devlog-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.devlog-list::before {
  content: '';
  position: absolute;
  left: calc(200px + 1rem);
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(88,101,242,0.28) 12%, rgba(88,101,242,0.16) 88%, transparent);
  pointer-events: none;
}

.devlog-entry {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: start;
}

.devlog-entry::before {
  content: '';
  position: absolute;
  left: calc(200px + 1rem);
  top: 2rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 8px rgba(88,101,242,0.4);
  z-index: 1;
}

.devlog-entry:has(.devlog-tag--studio)::before {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(26,155,138,0.4);
}

.devlog-entry:last-child { border-bottom: none; }

.devlog-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}

.devlog-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.devlog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.devlog-tag--rpg {
  background: rgba(88,101,242,0.12);
  color: #8892f8;
  border: 1px solid rgba(88,101,242,0.22);
}

.devlog-tag--studio {
  background: rgba(26,155,138,0.1);
  color: var(--teal);
  border: 1px solid rgba(26,155,138,0.22);
}

.devlog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.devlog-body {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── About section ──────────────────────────────────────────── */
.about {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.about-mascot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-mascot-halo {
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse, rgba(88,101,242,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-mascot {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  border: 2px solid rgba(88,101,242,0.2);
  display: block;
  position: relative;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 0.9rem;
  max-width: 52ch;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.testimonials-inner { max-width: 1100px; margin: 0 auto; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.testimonial-quote {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-dim);
  font-style: italic;
  flex: 1;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: hsl(var(--hue), 55%, 32%);
  color: hsl(var(--hue), 80%, 85%);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.testimonial-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Roadmap ────────────────────────────────────────────────── */
.roadmap {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.roadmap-inner { max-width: 1000px; margin: 0 auto; }

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.roadmap-col { display: flex; flex-direction: column; gap: 1.2rem; }

.roadmap-col.reveal:nth-child(2) { transition-delay: 0.12s; }

.roadmap-col-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.roadmap-icon { font-size: 1.3rem; }

.roadmap-col-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.roadmap-col-header .game-status { margin-left: auto; }

.roadmap-items { display: flex; flex-direction: column; gap: 0.75rem; }

.roadmap-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.roadmap-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.roadmap-item p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.roadmap-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 3px;
}

.roadmap-badge--active {
  background: rgba(88,101,242,0.12);
  color: #8892f8;
  border: 1px solid rgba(88,101,242,0.22);
}

.roadmap-badge--planned {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.roadmap-badge--future {
  background: rgba(59,197,107,0.1);
  color: var(--green);
  border: 1px solid rgba(59,197,107,0.2);
}

/* ── Discord Community ──────────────────────────────────────── */
.community {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(88,101,242,0.09), transparent 70%);
  pointer-events: none;
}

.community-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.community-discord-logo {
  width: 52px;
  height: 52px;
  color: var(--accent);
}

.community-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
}

.community-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 44ch;
}

.community-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.2rem;
  background: rgba(88,101,242,0.07);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: var(--radius);
}

.community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.community-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.community-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.community-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ── Gradient text headings ─────────────────────────────────── */
h1,
.section-head h2,
.showcase-text h2,
.community-inner h2,
.about-text h2,
.contact h2 {
  background: linear-gradient(135deg, #d8dcff 0%, #5865f2 48%, #1a9b8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Hero entrance animation ────────────────────────────────── */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-copy .studio-badge { animation: hero-in 0.55s ease both 0.05s; }
.hero-copy h1            { animation: hero-in 0.6s  ease both 0.15s; }
.hero-copy .lede         { animation: hero-in 0.6s  ease both 0.3s;  }
.hero-copy .hero-ctas    { animation: hero-in 0.55s ease both 0.45s; }
.hero-figure             { animation: hero-in 0.7s  ease both 0.08s; }

/* ── Card hover shine sweep ─────────────────────────────────── */
.game-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.07) 50%, transparent);
  transform: skewX(-15deg);
  z-index: 3;
  pointer-events: none;
  transition: left 0.6s ease;
}

.game-card:hover::after { left: 130%; }

/* ── Roadmap progress bars ──────────────────────────────────── */
.roadmap-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.roadmap-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.roadmap-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent), #7b8ef5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.roadmap-col:nth-child(2) .roadmap-progress-bar {
  background: linear-gradient(to right, var(--teal), #22c5ae);
}

.roadmap-col.visible .roadmap-progress-bar { width: var(--pct); }

.roadmap-progress-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 26px;
  text-align: right;
}

/* ── Responsive — new sections ──────────────────────────────── */
@media (max-width: 860px) {
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-text { order: 1; }
  .showcase-visual { order: 0; }

  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-mascot-wrap { max-width: 160px; margin: 0 auto; }
  .about-links { justify-content: center; }
  .about-text p { max-width: 100%; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card.reveal:nth-child(2),
  .testimonial-card.reveal:nth-child(3) { transition-delay: 0s; }

  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-col.reveal:nth-child(2) { transition-delay: 0s; }
}

@media (max-width: 580px) {
  .devlog-entry {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .devlog-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }
  .showcase-desc { max-width: 100%; }
  .devlog-list::before,
  .devlog-entry::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .hero-glow-left, .hero-glow-right,
  .game-card--rpg, .game-card--pirates, .game-card--blastloop,
  .hero-copy .studio-badge, .hero-copy h1, .hero-copy .lede,
  .hero-copy .hero-ctas, .hero-figure { animation: none; }
  .game-card, .btn, .game-card::after,
  .roadmap-progress-bar { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .roadmap-col.visible .roadmap-progress-bar { width: var(--pct); }
}
