/* ============================================================================
   ArtPlay — Social Casino
   Dark navy + magenta + lime · no frameworks · responsive w/ mobile bottom nav
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --navy-900: #060b1c;
  --navy-800: #0a1128;
  --navy-700: #0f1a3a;
  --navy-600: #16234d;
  --navy-500: #1d2d5e;

  --magenta: #ff2e88;
  --magenta-dk: #d81b73;
  --lime: #c6ff00;
  --lime-dk: #9fce00;

  --text: #eaf0ff;
  --muted: #93a0c8;
  --line: rgba(147, 160, 200, 0.16);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  --glow-m: 0 0 24px rgba(255, 46, 136, 0.45);
  --glow-l: 0 0 24px rgba(198, 255, 0, 0.35);

  --header-h: 68px;
  --bottomnav-h: 64px;
  --maxw: 1240px;

  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 46, 136, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(198, 255, 0, 0.08), transparent 55%),
    var(--navy-900);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; }
.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dk));
  color: #fff; box-shadow: var(--glow-m);
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(255, 46, 136, 0.65); }
.btn--lime {
  background: linear-gradient(135deg, var(--lime), var(--lime-dk));
  color: var(--navy-900); box-shadow: var(--glow-l);
}
.btn--lime:hover { box-shadow: 0 0 32px rgba(198, 255, 0, 0.6); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { padding: .5em 1em; font-size: .85rem; }

/* ---------- Header ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 17, 40, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(6, 11, 28, 0.92); }
.header__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: .5px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--lime));
  color: var(--navy-900); font-size: 1.1rem; box-shadow: var(--glow-m);
}
.logo__name { color: var(--text); }
.logo__name b { color: var(--lime); }

.primary-nav { margin-left: 8px; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: inline-block; padding: .55em .9em; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s, background .15s;
}
.primary-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.primary-nav a.is-active { color: var(--lime); }

.header__search { margin-left: auto; position: relative; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input {
  width: 240px; padding: .6em 1em .6em 2.4em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); font-size: .9rem; transition: border-color .2s, width .2s;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { outline: none; border-color: var(--magenta); box-shadow: var(--glow-m); }
.search-wrap__icon { position: absolute; left: .9em; color: var(--muted); pointer-events: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: none; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 1.2rem;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero --------------------------------------------------------- */
.hero { padding: 48px 0 28px; }
.hero__card {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: 56px 48px; border: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 90% 20%, rgba(255, 46, 136, 0.3), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(198, 255, 0, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-800));
  box-shadow: var(--shadow);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime);
  padding: .4em .9em; border-radius: 999px; background: rgba(198, 255, 0, 0.1);
  border: 1px solid rgba(198, 255, 0, 0.3); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.hero h1 span { color: var(--magenta); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 48ch; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 22px; font-size: .82rem; color: var(--muted); }
.hero__note b { color: var(--lime); }

/* ---------- Stats strip -------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.stat {
  padding: 18px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.5rem; color: var(--lime); }
.stat span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Section heading + filters ------------------------------------ */
.section { padding: 34px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head h2 { font-size: 1.6rem; }
.section__head h2 .accent { color: var(--magenta); }
.result-count { color: var(--muted); font-size: .9rem; }

.category-bar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.category-bar::-webkit-scrollbar { height: 6px; }
.category-bar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: .55em 1.1em; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--magenta); }
.chip--active { color: var(--navy-900); background: linear-gradient(135deg, var(--lime), var(--lime-dk)); border-color: transparent; box-shadow: var(--glow-l); }

/* ---------- Game grid + cards ------------------------------------------- */
.game-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.game-card {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--navy-700); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  outline: none;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: var(--magenta); box-shadow: var(--glow-m); }
.game-card__cover {
  position: relative; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: 14px;
  background: var(--navy-600);
}
.game-card__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
}
.game-card__cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
             linear-gradient(to top, rgba(6, 11, 28, 0.75), transparent 55%);
}
.game-card__title-overlay {
  position: relative; z-index: 1; font-weight: 800; font-size: 1.05rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); line-height: 1.1;
}
.game-card__hover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px;
  background: rgba(6, 11, 28, 0.78); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.game-card:hover .game-card__hover, .game-card:focus-visible .game-card__hover { opacity: 1; }
.play-btn {
  display: inline-flex; padding: .6em 1.2em; border-radius: 999px; font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dk)); color: #fff; box-shadow: var(--glow-m);
}
.game-card__meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag {
  font-size: .68rem; font-weight: 700; color: var(--lime);
  padding: .2em .6em; border-radius: 999px;
  background: rgba(198, 255, 0, 0.12); border: 1px solid rgba(198, 255, 0, 0.3);
}
.game-card__foot { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.game-card__name { font-weight: 700; font-size: .92rem; }
.game-card__provider { font-size: .76rem; color: var(--muted); }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: .25em .6em; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .5px;
}
.badge--hot { background: linear-gradient(135deg, var(--magenta), var(--magenta-dk)); color: #fff; }
.badge--new { background: linear-gradient(135deg, var(--lime), var(--lime-dk)); color: var(--navy-900); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 10px; }

/* ---------- Promo / how-it-works ---------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
}
.feature__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(255, 46, 136, 0.12); border: 1px solid rgba(255, 46, 136, 0.3); margin-bottom: 14px;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Launcher modal ---------------------------------------------- */
.launcher {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.9);
}
.launcher.is-open { display: flex; }
.launcher__dialog {
  width: 90vw; max-width: 1100px; height: 85vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0f1535; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.launcher__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.launcher__bar h3 { margin: 0; font-size: 1rem; }
.launcher__close {
  margin-left: auto; width: 38px; height: 38px; border-radius: 10px; font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.launcher__close:hover { background: rgba(255, 46, 136, 0.2); }
.launcher__frame { position: relative; flex: 1; min-height: 0; background: #000; display: flex; }
.launcher__iframe { width: 100%; flex: 1; min-height: 0; border: none; display: block; }
.launcher__loading {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: var(--muted); background: var(--navy-800);
}
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--magenta); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.launcher__fallback { padding: 40px 28px; text-align: center; }
.launcher__fallback-art {
  width: 140px; height: 175px; border-radius: 14px; margin: 0 auto 20px; overflow: hidden;
  background: var(--navy-600); box-shadow: var(--shadow);
}
.launcher__fallback-art img { width: 100%; height: 100%; object-fit: cover; }
.launcher__fallback h3 { font-size: 1.3rem; }
.launcher__fallback p { color: var(--muted); max-width: 42ch; margin: 0 auto 18px; }
.launcher__disclaimer { font-size: .78rem; margin-top: 18px !important; }

/* ---------- Compliance banner ------------------------------------------- */
.compliance {
  margin: 30px 0; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255, 46, 136, 0.08); border: 1px solid rgba(255, 46, 136, 0.25);
  display: flex; gap: 14px; align-items: flex-start; font-size: .88rem; color: var(--muted);
}
.compliance b { color: var(--text); }
.compliance__icon { font-size: 1.4rem; flex: 0 0 auto; }

/* ---------- Footer ------------------------------------------------------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 40px 0 calc(var(--bottomnav-h) + 30px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer__brand p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--lime); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--text); }
.footer__legal {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: .82rem;
}
.age-pill {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--magenta); color: var(--magenta); font-weight: 800; font-size: .85rem;
}
.footer__disclaimer { color: var(--muted); font-size: .8rem; line-height: 1.7; max-width: 90ch; }

/* ---------- Auth: header controls --------------------------------------- */
.auth-buttons, .auth-user { display: flex; align-items: center; gap: 10px; }

/* Shared pill button shape for the header auth buttons. */
.btn-login, .btn-register, #btn-logout {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5em 1em; border-radius: 999px; font-weight: 700; font-size: .85rem;
  white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-login:active, .btn-register:active, #btn-logout:active { transform: translateY(1px); }

.btn-login, #btn-logout { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); }
.btn-login:hover, #btn-logout:hover { background: rgba(255, 255, 255, 0.12); }

.btn-register {
  background: linear-gradient(135deg, var(--lime), var(--lime-dk));
  color: var(--navy-900); box-shadow: var(--glow-l);
}
.btn-register:hover { box-shadow: 0 0 32px rgba(198, 255, 0, 0.6); }

#auth-username {
  display: inline-flex; align-items: center; font-size: .9rem; font-weight: 700; color: var(--lime);
  padding: .45em .9em; border-radius: 999px;
  background: rgba(198, 255, 0, 0.1); border: 1px solid rgba(198, 255, 0, 0.3);
}

/* ---------- Auth: mobile drawer controls -------------------------------- *
 * Lives inside the hamburger menu (.primary-nav). Hidden on desktop; shown
 * only when the mobile drawer is open (see the max-width: 768px block). */
.nav-auth { display: none; }
.nav-auth__buttons { display: flex; flex-direction: column; gap: 10px; }
.nav-auth__user { display: flex; flex-direction: column; gap: 10px; }
.nav-auth__hello { font-weight: 700; color: var(--lime); padding: .3em 0; }
.nav-auth__btn {
  width: 100%; padding: .8em 1em; border-radius: 10px; font-weight: 700; font-size: .95rem;
  text-align: center; transition: background .2s ease, box-shadow .2s ease;
}
.nav-auth__btn--ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); }
.nav-auth__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.nav-auth__btn--lime {
  background: linear-gradient(135deg, var(--lime), var(--lime-dk)); color: var(--navy-900);
  box-shadow: var(--glow-l); border: none;
}

/* ---------- Auth modal --------------------------------------------------- */
.auth-modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 11, 28, 0.86); backdrop-filter: blur(6px);
}
.auth-modal.is-open { display: flex; }
.auth-modal__dialog {
  position: relative; width: min(420px, 100%);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px;
  font-size: 1.3rem; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.auth-modal__close:hover { background: rgba(255, 46, 136, 0.2); }
.auth-modal__title { font-size: 1.4rem; margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.auth-field input {
  padding: .7em .9em; border-radius: 10px; font-size: .95rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text);
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus { outline: none; border-color: var(--magenta); box-shadow: var(--glow-m); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { text-align: center; font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.auth-switch button { color: var(--lime); font-weight: 700; text-decoration: underline; }
.auth-note { text-align: center; font-size: .74rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Mobile bottom nav ------------------------------------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bottomnav-h);
  display: none; grid-template-columns: repeat(5, 1fr);
  background: rgba(6, 11, 28, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: .68rem; font-weight: 600;
}
.bottom-nav a span { font-size: 1.2rem; }
.bottom-nav a.is-active { color: var(--lime); }
.bottom-nav a.bottom-nav__cta span {
  margin-top: -22px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dk)); color: #fff; box-shadow: var(--glow-m);
}
.bottom-nav a.bottom-nav__cta { color: var(--magenta); }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .primary-nav,
  .header__search { display: none; }
  .primary-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--line); padding: 10px 16px;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 2px; }
  .primary-nav.is-open a { padding: .8em 1em; }
  .icon-btn { display: grid; }
  .icon-btn[data-search-toggle] { display: none; }  /* no search icon on mobile */
  .icon-btn[data-menu-toggle] { margin-left: auto; }  /* hamburger sits on the right */
  .header__search.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 12px 16px; background: var(--navy-800); border-bottom: 1px solid var(--line);
  }
  .header__search.is-open .search-wrap input { width: 100%; }
  .header__actions { gap: 8px; }

  /* Mobile header = logo + hamburger only. Auth lives in the drawer instead. */
  .auth-buttons { display: none !important; }
  .auth-user { display: none !important; }
  .primary-nav.is-open .nav-auth {
    display: block; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  }

  .bottom-nav { display: grid; }
  .hero { padding: 28px 0 18px; }
  .hero__card { padding: 36px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
}

/* ============================================================================
   Content / legal pages (how-it-works, about, support, contact, terms, etc.)
   ========================================================================== */
.page { padding: 40px 0 60px; }
.page-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 48px 40px; margin-bottom: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 46, 136, 0.22), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(198, 255, 0, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-800));
  box-shadow: var(--shadow);
}
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.page-hero h1 span { color: var(--magenta); }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0; }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h2 .accent { color: var(--magenta); }
.prose h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--lime); }
.prose p { color: var(--muted); margin: 0 0 14px; }
.prose .lead { font-size: 1.1rem; color: var(--text); }
.prose ul { margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--muted); }
.prose ul li::before { content: '▹'; position: absolute; left: 4px; color: var(--lime); }
.prose ol { margin: 0 0 16px; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.prose a { color: var(--lime); text-decoration: underline; }
.prose strong { color: var(--text); }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 12px; }
.step {
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line);
}
.step__num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: var(--navy-900);
  background: linear-gradient(135deg, var(--lime), var(--lime-dk)); margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; color: var(--text); font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0; }
.value-card {
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line);
}
.value-card .feature__icon { margin-bottom: 12px; }
.value-card h3 { color: var(--text); margin: 0 0 6px; font-size: 1.1rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.faq { display: grid; gap: 10px; margin: 12px 0; max-width: 820px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-700); overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--lime); font-size: 1.4rem; line-height: 1; }
.faq__item[open] summary::after { content: '–'; }
.faq__item .faq__a { padding: 0 18px 16px; color: var(--muted); }

.notice {
  margin: 26px 0; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255, 46, 136, 0.08); border: 1px solid rgba(255, 46, 136, 0.3); color: var(--muted);
}
.notice strong { color: var(--text); }
.notice--lime { background: rgba(198, 255, 0, 0.08); border-color: rgba(198, 255, 0, 0.35); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.toc a {
  font-size: .82rem; padding: .4em .85em; border-radius: 999px; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.toc a:hover { color: var(--lime); border-color: var(--lime); }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-card {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line);
}
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: .7em .9em; border-radius: 10px; font-size: .95rem; font-family: inherit;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--magenta); box-shadow: var(--glow-m);
}
.form-success {
  display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 16px;
  background: rgba(198, 255, 0, 0.1); border: 1px solid rgba(198, 255, 0, 0.35); color: var(--text);
}
.form-success.is-visible { display: block; }

@media (max-width: 760px) {
  .steps, .value-cards, .contact-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 34px 22px; }
}
