/* ===== Umalumpa landing — base theme ===== */
:root {
  --bg: #0b0b14;
  --bg-alt: #11111f;
  --surface: #16162a;
  --surface-2: #1c1c34;
  --border: #28283f;
  --text: #ececf5;
  --muted: #a3a3c2;
  --brand: #7c5cff;
  --brand-2: #16d8c6;
  --accent: #ff5c8a;
  --ring: rgba(124, 92, 255, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Brand mark ===== */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 6px 18px rgba(124, 92, 255, 0.35);
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 20, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a { color: var(--muted); font-weight: 500; transition: color 0.18s; }
.primary-nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--surface);
}
.nav-cta:hover { border-color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(124, 92, 255, 0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 0.9rem;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at 70% 30%, rgba(124, 92, 255, 0.4), transparent 60%),
              radial-gradient(circle at 40% 70%, rgba(22, 216, 198, 0.25), transparent 60%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* ===== Capability strip ===== */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.strip-item {
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.strip-item strong { font-size: 1.05rem; }
.strip-item span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===== Cards ===== */
.cards { display: grid; gap: 1.2rem; }
.games-grid { grid-template-columns: repeat(3, 1fr); }
.cap-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card p:last-child { margin-bottom: 0; }

/* Game cards */
.game-art {
  height: 150px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  background-size: cover;
}
.game-art-1 { background: linear-gradient(135deg, #7c5cff, #16d8c6); }
.game-art-2 { background: linear-gradient(135deg, #ff5c8a, #ffb35c); }
.game-art-3 { background: linear-gradient(135deg, #16d8c6, #5c8bff); }
.game-genre { color: var(--brand-2); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6rem; }
.badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  background: rgba(22, 216, 198, 0.1);
  border: 1px solid rgba(22, 216, 198, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ===== Two-column (studio) ===== */
.two-col { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 2.5rem; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}
.aside-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.aside-card h3 { color: var(--brand-2); }
.aside-card p { margin-bottom: 0; color: var(--muted); }

/* ===== CTA ===== */
.section-cta { text-align: center; background: var(--bg-alt); }
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-inner .btn { margin-top: 0.6rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-top: 3rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: grid; gap: 0.4rem; max-width: 260px; }
.footer-brand .brand-mark { margin-bottom: 0.4rem; }
.footer-tag { color: var(--muted); margin: 0; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-nav a { color: var(--muted); transition: color 0.18s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { padding: 1.4rem 0 2rem; }
.footer-bottom p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 0.8rem; border-bottom: 0 !important; }
  .games-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
}
