/* ============================================================
   PHX Studio — Official Website
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-soft: #121730;
  --bg-card: #161c38;
  --bg-card-hover: #1c2347;
  --text: #eef1ff;
  --text-dim: #a3aacb;
  --text-faint: #6b7194;
  --accent: #7c6cff;
  --accent-2: #41d8ff;
  --accent-warm: #ffb347;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1140px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

.nav-links a.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 14, 26, 0.55) 0%,
    rgba(11, 14, 26, 0.35) 45%,
    var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 120px;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
  border: 0;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(124, 108, 255, 0.45);
}
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head .kicker {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 12px 0 16px;
}

.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Game cards ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 108, 255, 0.4);
}

.game-card-art {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.game-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-card) 100%);
}

.game-card-body { padding: 0 28px 28px; margin-top: -46px; position: relative; z-index: 2; }

.game-card-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}

.game-card h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 4px; }

.game-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.game-card p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 20px; }

.card-link { font-weight: 700; color: var(--accent-2); }
.card-link:hover { text-decoration: none; opacity: 0.85; }

/* ---------- Feature / value blocks ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(65, 216, 255, 0.35); }

.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.25), rgba(65, 216, 255, 0.18));
  margin-bottom: 18px;
}

.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- About split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-media { order: 2; }

.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 18px; }
.split p { color: var(--text-dim); margin-bottom: 16px; }

.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.18), rgba(65, 216, 255, 0.12));
  border: 1px solid rgba(124, 108, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Game detail page ---------- */

.game-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}
.game-hero .hero-bg { filter: saturate(1.05); }

.game-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.game-hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.game-hero .genre { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin: 6px 0 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
}
.store-badge .small { display: block; font-size: 0.68rem; opacity: 0.75; letter-spacing: 1px; text-transform: uppercase; }
.store-badge .big { display: block; font-weight: 700; font-size: 0.98rem; }
.store-badge.soon { opacity: 0.75; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* feature list on game pages */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-list li {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text-dim);
}
.feature-list li strong { color: var(--text); display: block; margin-bottom: 4px; }
.feature-list li::before { content: "✦ "; color: var(--accent-2); }

/* ---------- Legal pages ---------- */

.legal { padding: 140px 0 90px; }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: 2.3rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--accent-2); }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- Support ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 14px; }
.contact-card a.mail {
  display: inline-block;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(65, 216, 255, 0.4);
  background: rgba(65, 216, 255, 0.08);
}
.contact-card a.mail:hover { text-decoration: none; background: rgba(65, 216, 255, 0.16); }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::before { content: "＋ "; color: var(--accent-2); }
.faq details[open] summary::before { content: "－ "; }
.faq details p { color: var(--text-dim); margin-top: 12px; font-size: 0.96rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  background: #090c16;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }

.footer-about p { color: var(--text-dim); font-size: 0.92rem; max-width: 300px; margin-top: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 14, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; }
  .nav-links a.nav-cta { display: inline-block; margin-top: 6px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-content { padding: 120px 20px 90px; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-hero { padding: 140px 0 60px; }
}
