/* GDB.gg — Platform landing */

:root {
  --bg-0: #0a0a0b;
  --bg-1: #111113;
  --bg-2: #18181b;
  --panel: rgba(24, 24, 27, 0.72);
  --panel-solid: #18181b;
  --panel-edge: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --purple-glow: rgba(139, 92, 246, 0.35);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --maxw: 1200px;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-0);
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(700px 400px at 85% 10%, rgba(139, 92, 246, 0.08), transparent 50%),
    var(--bg-0);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.social-links a[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--purple);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.social-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.footer-brand .social-links {
  display: flex;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.social-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  padding: 24px;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--panel-edge);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--panel-edge);
}

.mobile-nav a.is-active { color: var(--purple-bright); }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .social-links { display: flex; }
  .nav-toggle { display: none; }
  .site-header__actions { margin-left: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: #7c3aed;
}

.btn--ghost {
  background: transparent;
  border-color: var(--panel-edge);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline {
  background: transparent;
  border-color: var(--panel-edge);
  color: var(--muted);
}

.btn--outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Section headings ---------- */

.section-label {
  display: block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header--left {
  text-align: left;
  margin-bottom: 32px;
}

.section-header--left .section-lede {
  margin-inline: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 96px;
  text-align: center;
}

.hero__title {
  margin: 0 auto 20px;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__title em {
  font-style: normal;
  color: var(--purple-bright);
}

.hero__desc {
  margin: 0 auto 36px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero__hint {
  display: block;
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Game tile grid (Mobalytics-style) */

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}

@media (min-width: 640px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); }
}

.game-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  background: var(--bg-2);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

a.game-tile:hover {
  transform: translateY(-4px);
  border-color: var(--purple-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.game-tile__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

a.game-tile:hover .game-tile__cover {
  transform: scale(1.05);
}

.game-tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
    linear-gradient(180deg, #1c1530, #0f0d18);
}

.game-tile__placeholder span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 0 12px;
}

.game-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 14px;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 8, 0.9) 100%);
}

.game-tile__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
  text-align: left;
}

.game-tile__badge {
  padding: 3px 9px;
  margin-bottom: 8px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.game-tile__badge--live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.game-tile__badge--soon {
  background: var(--purple-dim);
  color: var(--purple-bright);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.game-tile__badge--dev {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ---------- Projects ---------- */

.section { padding: 80px 0; }

.project-grid {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  border-color: var(--purple-glow);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.project-card__link { display: block; color: inherit; }

.project-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}

.project-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__cover {
  transform: scale(1.04);
}

.project-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.project-card__badge--live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.project-card__badge--soon {
  background: var(--purple-dim);
  color: var(--purple-bright);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.project-card__body { padding: 20px; }

.project-card__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.project-card__desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.tag-list li {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-bright);
}

.project-card:hover .project-card__cta { color: var(--text); }

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Tools ---------- */

.tools-grid {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(5, 1fr); }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.tool-card:hover { border-color: rgba(255, 255, 255, 0.14); }

.tool-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.25rem;
}

.tool-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tool-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.tool-card__status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Studio banner ---------- */

.studio-banner {
  padding: 80px 0;
}

.studio-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.studio-banner__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--purple-dim);
  color: var(--purple-bright);
}

.studio-banner__icon svg {
  width: 24px;
  height: 24px;
}

.studio-banner__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.studio-banner__desc {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .studio-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
  }
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--panel-edge);
}

.page-hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero__desc {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.page-content {
  padding: 48px 0 80px;
}

.page-content h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
  color: var(--muted);
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}

.content-card {
  padding: 24px;
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.content-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.content-card p {
  margin: 0;
  font-size: 0.875rem;
}

.placeholder-notice {
  padding: 32px;
  text-align: center;
  background: var(--panel-solid);
  border: 1px dashed var(--panel-edge);
  border-radius: var(--radius);
  color: var(--muted);
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm);
}

.status-item__name {
  font-weight: 600;
}

.status-item__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-item__badge--ok {
  background: var(--green-dim);
  color: var(--green);
}

.status-item__badge--warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  padding: 24px;
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-card a {
  color: var(--purple-bright);
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-card a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--panel-edge);
  padding: 64px 0 32px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand__desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-edge);
  font-size: 0.8125rem;
  color: var(--muted-2);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom .heart { color: #ef4444; }

/* ---------- Utilities ---------- */

.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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
