/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  background:#0a0a0f;
  color:#e0e0e6;
  line-height:1.7;
  min-height:100vh;
  display:flex;flex-direction:column;
}

/* ===== UTILITY ===== */
.container{max-width:960px;margin:0 auto;padding:0 24px}
a{color:#7c8aff;text-decoration:none;transition:color .2s}
a:hover{color:#a3adff}

/* ===== HEADER / NAV ===== */
header{
  background:rgba(10,10,15,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
  position:sticky;top:0;z-index:100;
  padding:16px 0;
}
header .container{display:flex;align-items:center;justify-content:center}
.logo{
  font-size:1.6rem;font-weight:800;letter-spacing:-.02em;
  color:#fff;
}
.logo span{color:#1493e3}

/* ===== HERO (homepage) ===== */
.hero{
  text-align:center;
  padding:80px 0 40px;
}
.hero-logo{
  width:160px;height:160px;
  margin:0 auto 32px;
  border-radius:28px;
  background:linear-gradient(135deg,#7c8aff 0%,#4f46e5 100%);
  display:flex;align-items:center;justify-content:center;
  font-size:2.8rem;font-weight:900;color:#fff;
  box-shadow:0 8px 40px rgba(79,70,229,.35);
}
.hero-logo-img{
  width:160px;height:160px;
  margin:0 auto 32px;
  border-radius:28px;
  object-fit:contain;
  filter:drop-shadow(0 0 32px rgba(79,70,229,.45)) drop-shadow(0 0 80px rgba(124,138,255,.2));
}
.hero h1{
  font-size:2.4rem;font-weight:800;color:#fff;letter-spacing:-.02em;
  margin-bottom:8px;
}
.hero p{
  font-size:1.1rem;color:#888;max-width:500px;margin:0 auto;
}

/* ===== GAMES GRID ===== */
.games-section{padding:40px 0 60px}
.games-section h2{
  text-align:center;font-size:1.5rem;font-weight:700;
  color:#fff;margin-bottom:40px;letter-spacing:-.01em;
}
.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}
.game-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:32px 24px;
  text-align:center;
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.game-card:hover{
  transform:translateY(-4px);
  border-color:rgba(124,138,255,.3);
  box-shadow:0 12px 40px rgba(124,138,255,.12);
}
.game-icon{
  width:100px;height:100px;
  border-radius:20px;
  margin:0 auto 20px;
  display:flex;align-items:center;justify-content:center;
  font-size:2rem;font-weight:800;color:#fff;
}
.game-icon.gravit{background:linear-gradient(135deg,#6d5bff 0%,#2a2250 100%);font-family:'Lora',Georgia,serif;letter-spacing:-.02em}
.game-icon.civrise{background:linear-gradient(135deg,#f59e0b,#d97706)}
.game-icon.digs{background:linear-gradient(135deg,#10b981,#059669)}
.game-icon.blast{background:linear-gradient(135deg,#ef4444,#dc2626)}
.game-icon-img{
  width:100px;height:100px;
  border-radius:20px;
  margin:0 auto 20px;
  object-fit:cover;
}
.game-card h3{
  font-size:1.15rem;font-weight:700;color:#fff;margin-bottom:6px;
}
.game-card p{font-size:.88rem;color:#888;margin-bottom:16px}
.game-card .btn{
  display:inline-block;
  padding:10px 24px;
  font-size:.85rem;font-weight:600;
  border-radius:8px;
  background:rgba(124,138,255,.12);
  color:#7c8aff;
  border:1px solid rgba(124,138,255,.25);
  transition:background .2s,color .2s;
}
.game-card .btn:hover{
  background:#7c8aff;color:#0a0a0f;
}

/* ===== FOOTER ===== */
footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.06);
  padding:32px 0;
  text-align:center;
  font-size:.85rem;color:#555;
}
footer .links{margin-bottom:12px}
footer .links a{
  margin:0 12px;color:#888;font-weight:500;
}
footer .links a:hover{color:#7c8aff}

/* ===== LEGAL / POLICY PAGES ===== */
.legal-page{
  padding:60px 0 80px;
  flex:1;
}
.legal-page h1{
  font-size:2rem;font-weight:800;color:#fff;
  margin-bottom:8px;letter-spacing:-.02em;
}
.legal-page .effective{
  font-size:.9rem;color:#666;margin-bottom:40px;
}
.legal-page h2{
  font-size:1.3rem;font-weight:700;color:#ccc;
  margin-top:40px;margin-bottom:12px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.legal-page h3{
  font-size:1.05rem;font-weight:600;color:#bbb;
  margin-top:24px;margin-bottom:8px;
}
.legal-page p,.legal-page li{
  font-size:.95rem;line-height:1.75;color:#aaa;
}
.legal-page ul,.legal-page ol{
  margin:12px 0 12px 24px;
}
.legal-page li{margin-bottom:6px}
.legal-page .address{
  font-style:normal;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:8px;
  padding:16px 20px;
  margin:16px 0;
  font-size:.9rem;color:#999;
  line-height:1.8;
}
.legal-page table{
  width:100%;border-collapse:collapse;margin:16px 0;
  font-size:.88rem;
}
.legal-page th,.legal-page td{
  text-align:left;padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
}
.legal-page th{
  background:rgba(255,255,255,.05);
  color:#ccc;font-weight:600;
}
.legal-page td{color:#aaa}
.legal-page .supplement-links{
  margin:16px 0;
  padding:16px 20px;
  background:rgba(124,138,255,.06);
  border:1px solid rgba(124,138,255,.12);
  border-radius:8px;
}
.legal-page .supplement-links p{margin-bottom:6px}
.legal-page .model-form{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:20px 24px;
  margin:16px 0;
}
.back-link{
  display:inline-block;margin-bottom:24px;
  font-size:.9rem;color:#7c8aff;
}
.back-link:hover{color:#a3adff}

/* ===== ACCESSIBILITY ===== */
a:focus-visible,button:focus-visible{
  outline:2px solid #7c8aff;
  outline-offset:3px;
  border-radius:6px;
}
.skip-link{
  position:absolute;left:-9999px;top:0;
  background:#7c8aff;color:#0a0a0f;
  padding:10px 18px;border-radius:0 0 8px 0;
  font-weight:700;z-index:200;
}
.skip-link:focus{left:0;color:#0a0a0f}

/* ===== PLATFORM HEADER (landing + studio) ===== */
header .container.header-row{
  justify-content:space-between;
  gap:16px;
}
.site-nav{display:flex;align-items:center;gap:4px}
.site-nav a{
  font-size:.92rem;font-weight:600;
  color:#9a9aa8;
  padding:8px 12px;border-radius:8px;
  transition:color .2s,background .2s;
}
.site-nav a:hover{color:#fff;background:rgba(255,255,255,.05)}
.site-nav a[aria-current="page"]{color:#fff}

/* ===== PLATFORM HERO ===== */
.hero.hero--platform{padding:64px 0 32px}
.hero--platform h1{
  font-size:2.7rem;line-height:1.15;
  margin-bottom:14px;
}
.hero--platform .hero-sub{
  font-size:1.15rem;color:#a0a0ad;
  max-width:560px;margin:0 auto;
}
.hero--platform .hero-note{
  font-size:.88rem;color:#5f5f6c;
  margin:14px auto 0;max-width:560px;
}
.btn-cta{
  display:inline-block;margin-top:28px;
  padding:13px 32px;border-radius:999px;
  font-size:.95rem;font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,#7c8aff 0%,#4f46e5 100%);
  box-shadow:0 8px 30px rgba(79,70,229,.32);
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.btn-cta:hover{
  color:#fff;transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:0 12px 38px rgba(79,70,229,.42);
}

/* ===== FEATURED STRIP (Goatinho) ===== */
.featured-section{padding:16px 0 8px}
.featured-card{
  display:flex;align-items:center;gap:28px;
  padding:28px 32px;
  border-radius:20px;
  background:linear-gradient(135deg,#111c2e 0%,#0b0f1c 62%);
  border:1px solid rgba(43,212,122,.28);
  box-shadow:0 0 42px rgba(43,212,122,.08),inset 0 1px 0 rgba(255,255,255,.04);
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.featured-card:hover{
  transform:translateY(-3px);
  border-color:rgba(43,212,122,.5);
  box-shadow:0 18px 60px rgba(43,212,122,.16),inset 0 1px 0 rgba(255,255,255,.06);
}
.featured-art{
  width:104px;height:104px;flex:0 0 104px;
  object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(43,212,122,.28));
}
.featured-body{min-width:0}
.featured-body h2{
  font-size:1.35rem;font-weight:800;color:#fff;
  letter-spacing:-.01em;margin-bottom:8px;
}
.featured-body h2 .goat{color:#2bd47a}
.featured-body p{
  font-size:.95rem;color:#9aa0ae;margin-bottom:18px;
}
.btn-goat{
  display:inline-block;
  padding:11px 26px;border-radius:999px;
  font-size:.88rem;font-weight:700;
  color:#2bd47a;
  background:rgba(43,212,122,.12);
  border:1px solid rgba(43,212,122,.35);
  transition:background .2s,color .2s;
}
.btn-goat:hover{background:#2bd47a;color:#06120c}

/* ===== PLATFORM GAMES GRID ===== */
.games-grid--platform{
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.game-card .game-art{
  display:block;
  width:112px;height:112px;
  border-radius:20px;
  margin:0 auto 18px;
  object-fit:cover;
  background:rgba(255,255,255,.03);
}
.tag{
  display:inline-block;
  font-size:.7rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  color:#8b8b99;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:4px 12px;
  margin-bottom:18px;
}
.btn-play{
  display:inline-block;
  padding:11px 26px;border-radius:999px;
  font-size:.88rem;font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,#7c8aff 0%,#4f46e5 100%);
  box-shadow:0 6px 20px rgba(79,70,229,.28);
  transition:transform .2s,filter .2s,box-shadow .2s;
}
.btn-play:hover{
  color:#fff;transform:translateY(-1px);
  filter:brightness(1.1);
  box-shadow:0 10px 28px rgba(79,70,229,.38);
}
.btn-play .ext,.btn-goat .ext{margin-left:2px}

/* equal-height cards: pin the CTA to the bottom */
.games-grid--platform .game-card,
.catalog-grid .game-card{display:flex;flex-direction:column}
.games-grid--platform .game-card .btn-play,
.catalog-grid .game-card .btn-play{margin-top:auto;align-self:center}
.games-grid--platform .game-card .store-row{margin-top:auto}
.games-grid--platform .game-card .store-row + .btn-play{margin-top:14px}

/* ===== PLATFORM / STORE PILLS ===== */
.store-row{
  display:flex;flex-wrap:wrap;
  align-items:center;justify-content:center;
  gap:8px;
}
.store-btn{
  display:inline-flex;align-items:center;gap:4px;
  padding:7px 14px;border-radius:999px;
  font-size:.76rem;font-weight:600;
  letter-spacing:.02em;
  color:#a8aec2;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  transition:color .2s,background .2s,border-color .2s,transform .2s;
}
.store-btn:hover{
  color:#c9cfff;
  background:rgba(124,138,255,.14);
  border-color:rgba(124,138,255,.45);
  transform:translateY(-1px);
}
.store-btn .ext{margin-left:1px;opacity:.7}
.store-btn--lg{
  padding:11px 22px;font-size:.85rem;font-weight:700;
}

/* ===== COMING SOON ROW ===== */
.coming-soon{
  display:flex;flex-wrap:wrap;
  align-items:center;justify-content:center;
  gap:10px;margin-top:32px;
}
.coming-soon .cs-label{
  font-size:.78rem;letter-spacing:.08em;
  text-transform:uppercase;color:#4f4f5c;
}
.mini-chip{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.8rem;color:#6b6b78;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:6px 14px;
  cursor:default;
}

/* ===== STUDIO TEASER ===== */
.studio-teaser{
  text-align:center;
  padding:0 0 64px;
}
.studio-teaser p{font-size:.95rem;color:#7a7a88}
.studio-teaser a{font-weight:600}

/* ===== STUDIO PAGE ===== */
.page-head{padding:64px 0 12px}
.page-head h1{
  font-size:2.2rem;font-weight:800;color:#fff;
  letter-spacing:-.02em;margin-bottom:16px;
}
.page-head p{
  font-size:1rem;color:#9a9aa8;max-width:640px;
}
.page-head p + p{margin-top:12px}
.catalog-section{padding:32px 0 64px}
.catalog-section h2{
  font-size:1.25rem;font-weight:700;color:#fff;
  margin-bottom:28px;letter-spacing:-.01em;
}
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
}
.game-card--sm{padding:24px 20px}
.game-card--sm .game-art,
.game-card--sm .game-icon{
  width:88px;height:88px;border-radius:16px;margin-bottom:14px;
}
.game-card--sm .game-icon{font-size:1.7rem}
.game-card--sm h3{font-size:1.05rem}
.game-card .meta{
  font-size:.72rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  color:#6b6b78;margin-bottom:10px;
}

/* ===== GAME DETAIL PAGE ===== */
.game-hero{padding:64px 0 8px}
.game-hero .container{
  display:flex;align-items:center;gap:28px;
}
.game-hero__art{
  width:128px;height:128px;flex:0 0 128px;
  border-radius:24px;object-fit:cover;
  background:rgba(255,255,255,.03);
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}
.game-hero__body{min-width:0}
.game-hero h1{
  font-size:2.2rem;font-weight:800;color:#fff;
  letter-spacing:-.02em;margin-bottom:10px;
}
.game-hero .tag{margin-bottom:12px}
.game-hero__lead{
  font-size:1rem;color:#9a9aa8;max-width:640px;
}
.game-body{padding:24px 0 72px}
.game-body h2{
  font-size:1.15rem;font-weight:700;color:#fff;
  margin-bottom:16px;letter-spacing:-.01em;
}
.feature-list{list-style:none;margin:0 0 32px;padding:0;max-width:680px}
.feature-list li{
  position:relative;
  padding-left:26px;margin-bottom:12px;
  font-size:.95rem;color:#a0a0ad;
}
.feature-list li::before{
  content:"";
  position:absolute;left:4px;top:.62em;
  width:8px;height:8px;border-radius:2px;
  background:linear-gradient(135deg,#7c8aff,#4f46e5);
}
.play-row{
  display:flex;flex-wrap:wrap;
  align-items:center;gap:14px;
}
.chip-soon{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.82rem;color:#6b6b78;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:10px 18px;
  cursor:default;
}
.btn-cta.btn-cta--inline{margin-top:0}

/* ===== PLAY PLACEHOLDER ===== */
.placeholder{
  text-align:center;
  padding:88px 0 96px;
  flex:1;
}
.placeholder img{
  width:120px;height:120px;
  border-radius:24px;object-fit:cover;
  margin:0 auto 28px;display:block;
}
.placeholder h1{
  font-size:1.6rem;font-weight:800;color:#fff;
  letter-spacing:-.02em;margin-bottom:12px;
}
.placeholder p{font-size:1rem;color:#8b8b99;margin-bottom:28px}

/* ===== RESPONSIVE ===== */
@media(max-width:640px){
  .hero{padding:48px 0 24px}
  .hero-logo{width:120px;height:120px;font-size:2rem;border-radius:24px}
  .hero-logo-img{width:120px;height:120px;border-radius:24px}
  .game-icon-img{width:80px;height:80px;border-radius:16px}
  .hero h1{font-size:1.6rem}
  .games-grid{grid-template-columns:1fr}
  .legal-page h1{font-size:1.5rem}

  /* platform landing + studio */
  .logo{font-size:1.3rem}
  .site-nav a{padding:8px 8px;font-size:.86rem}
  .hero.hero--platform{padding:44px 0 20px}
  .hero--platform h1{font-size:1.85rem}
  .hero--platform .hero-sub{font-size:1rem}
  .featured-card{
    flex-direction:column;text-align:center;
    gap:18px;padding:26px 22px;
  }
  .featured-art{width:88px;height:88px;flex:0 0 88px}
  .games-grid--platform,
  .catalog-grid{grid-template-columns:1fr}
  .game-card .game-art{width:96px;height:96px;border-radius:18px}
  .page-head{padding:44px 0 8px}
  .page-head h1{font-size:1.7rem}
  .game-hero{padding:44px 0 4px}
  .game-hero .container{
    flex-direction:column;text-align:center;gap:20px;
  }
  .game-hero__art{width:104px;height:104px;flex:0 0 104px;border-radius:20px}
  .game-hero h1{font-size:1.7rem}
  .feature-list{text-align:left}
  .play-row{justify-content:center}
  .placeholder{padding:64px 0 72px}
}
