/* ==========================================================================
   Yupi Game Services (YGS) — Landing Styles
   Dark-tech neon palette matching Yupi Studios & Pongzera
   ========================================================================== */

:root {
  --bg: #080c1e;
  --bg-2: #0c1330;
  --surface: #111a3d;
  --surface-2: #16244f;
  --line: rgba(140, 170, 255, 0.16);
  --text: #eef3ff;
  --muted: #a5b1d6;
  --dim: #7380a8;

  --cyan: #00e5ff;
  --gold: #ffd600;
  --coral: #ff3355;
  --purple: #a855f7;
  --green: #22d36b;
  --lime: #bef264;
  --yupi-bg: #08090c;

  --rainbow: linear-gradient(90deg, var(--cyan), #7cf0a0 35%, var(--gold) 70%, var(--lime));
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --nav-h: 68px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04101f;
  padding: 8px 14px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 14px; height: 14px; }

.hide-sm { display: inline; }
.show-sm { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}

/* ================= Yupi Studios Bar ================= */
.studio-bar {
  background: var(--yupi-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.studio-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 12px;
}
.studio-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.studio-bar__logo { height: 20px; width: auto; }
.studio-bar__studios { color: var(--lime); font-weight: 700; letter-spacing: 0.08em; font-size: 11px; }
.studio-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}
.studio-bar__back:hover { color: var(--lime); }

/* ================= Product Nav ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 12, 30, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav__logo img { width: 36px; height: 36px; }
.nav__wordmark { font-size: 17px; }
.nav__tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.nav__links a:hover { color: var(--cyan); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 60;
}
.lang[data-open="true"] .lang__list { display: block; }
.lang__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.lang__list a:hover, .lang__list a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--cyan);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
}
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 960px) {
  .nav__links, .nav__admin-desktop { display: none; }
  .nav__burger { display: inline-flex; }
}

.mobile-menu {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 16px 0 22px;
}
.mobile-menu__inner { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__inner > a { padding: 8px 4px; font-weight: 600; color: var(--text); }
.mobile-menu__langs { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}
.lang-pill[aria-current="true"] { border-color: var(--cyan); color: var(--cyan); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #031120;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.25);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #161000;
  border-color: transparent;
}
.btn--lime {
  background: linear-gradient(135deg, var(--lime), #84cc16);
  color: #091402;
  border-color: transparent;
}
.btn--ghost { background: rgba(17, 26, 61, 0.65); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 76px 0 64px;
  background:
    radial-gradient(ellipse 65% 55% at 50% -10%, rgba(0, 229, 255, 0.18), transparent),
    radial-gradient(ellipse 45% 40% at 85% 30%, rgba(190, 242, 100, 0.10), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(34, 211, 107, 0.10);
  border: 1px solid rgba(34, 211, 107, 0.35);
  color: #86efac;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero__title span {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 26px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.hero__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
}
.hero__card pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #dbeafe;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.metric-mini {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.metric-mini strong { display: block; font-size: 18px; color: var(--gold); }
.metric-mini span { font-size: 11px; color: var(--muted); }

/* ================= Sections ================= */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section__title { font-size: clamp(26px, 3.3vw, 40px); margin-bottom: 12px; }
.section__desc { color: var(--muted); font-size: 17px; }

/* ================= Capabilities Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ================= Quickstart Code Tabs ================= */
.code-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 940px;
  margin: 0 auto;
}
.code-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.code-tabs__group { display: flex; gap: 8px; flex-wrap: wrap; }
.code-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.code-tab.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}
.code-panel { padding: 20px; margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; overflow-x: auto; color: #dbeafe; }

/* ================= Showcase ================= */
.showcase {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.showcase__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 0, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.showcase h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.showcase p { color: var(--muted); margin-bottom: 20px; }
.showcase__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.stat-box strong { display: block; font-size: 22px; color: var(--cyan); }
.stat-box span { font-size: 13px; color: var(--muted); }

/* ================= Pricing ================= */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  margin-top: 18px;
}
.billing-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.billing-btn.active { background: var(--cyan); color: #04101f; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card--featured {
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.14);
}
.price-card__tier { font-size: 13px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.price-card__price { font-size: 34px; font-weight: 800; font-family: var(--font-head); }
.price-card__price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card__ccu { font-weight: 700; color: var(--gold); font-size: 14px; }
.price-card ul { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; flex: 1; }
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ================= FAQ ================= */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--yupi-bg);
  color: var(--muted);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a:hover { color: var(--cyan); }
