/* ============================================================
   JUPITER GAME STUDIO — design system
   Dark, cinematic, gas-giant identity. Shared across all pages.
   ============================================================ */

:root {
  --bg: #07070B;
  --bg-2: #0E0E16;
  --bg-3: #14141F;
  --ink: #F5F5FA;
  --muted: #B4B4C4;
  --muted-2: #7E7E90;
  --gold: #F5A623;
  --ember: #E8622C;
  --violet: #7B4DFF;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(120deg, #F5A623 0%, #E8622C 42%, #7B4DFF 100%);
  --grad-soft: linear-gradient(120deg, rgba(245,166,35,.18), rgba(123,77,255,.18));
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --font: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
p { max-width: 66ch; }

::selection { background: rgba(245, 166, 35, 0.28); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section.tight { padding: clamp(48px, 7vw, 90px) 0; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- kicker label ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); display: inline-block; margin-bottom: 20px;
}
.kicker.violet { color: var(--violet); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #140b02; box-shadow: 0 8px 30px rgba(245, 166, 35, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(232, 98, 44, 0.42); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s var(--ease), color .2s; }
.link-arrow:hover { gap: 12px; color: var(--ink); }
.link-arrow::after { content: "→"; }

/* ---------- BRAND ---------- */
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffd98a, #F5A623 34%, #E8622C 60%, #7a3410 100%);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.45), inset -3px -3px 8px rgba(0,0,0,0.4);
  position: relative; flex: none; overflow: hidden;
}
.brand .mark::after { /* storm band */
  content: ""; position: absolute; left: -20%; right: -20%; top: 54%; height: 20%;
  background: rgba(120, 40, 15, 0.55); transform: rotate(-8deg); border-radius: 50%;
}
/* actual logo emblem (black background blends into the dark chrome) */
.brand .mark-img { width: 36px; height: 36px; flex: none; object-fit: contain; display: block; filter: drop-shadow(0 0 12px rgba(245, 166, 35, 0.35)); }
.footer .brand .mark-img { width: 40px; height: 40px; }

/* ---------- HERO (cosmic backdrop) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 88px 0 72px; }
.hero.page-hero { min-height: 68vh; }
.cosmos { position: absolute; inset: 0; z-index: 0; }
.cosmos .aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(45% 40% at 22% 18%, rgba(245, 166, 35, 0.22), transparent 60%),
    radial-gradient(40% 45% at 82% 28%, rgba(123, 77, 255, 0.24), transparent 62%),
    radial-gradient(50% 50% at 60% 82%, rgba(232, 98, 44, 0.16), transparent 60%);
  filter: blur(30px); animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.cosmos .stars {
  position: absolute; inset: 0; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 30% 15%, #fff, transparent);
  background-size: 100% 100%;
}
.cosmos .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.cosmos .vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg) 92%); }
@media (prefers-reduced-motion: reduce) { .cosmos .aurora { animation: none; } }

.hero-inner { position: relative; z-index: 2; width: 100%; }
/* logo lockup — alpha PNG (black matte cut to transparency) */
.hero-logo { width: min(440px, 72vw); margin: 0 auto 44px; }
.hero-logo img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 70px rgba(123, 77, 255, 0.30));
}
@media (max-width: 640px) { .hero-logo { width: min(320px, 78vw); margin-bottom: 32px; } }
/* editor shot — centered under the hero copy */
.hero-shot { width: min(1180px, 100%); margin: 56px auto 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% 4% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(123, 77, 255, 0.30), transparent 70%);
  filter: blur(56px);
}
.hero-shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
@media (max-width: 640px) { .hero-shot { margin-top: 38px; } }
.hero h1 { margin-bottom: 22px; max-width: 16ch; }
.hero .lead { max-width: 60ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 26px; font-size: 0.86rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- placeholder media blocks (client swaps these) ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245,166,35,0.06), rgba(123,77,255,0.08)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px), var(--bg-2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); text-align: center;
}
.ph::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,0.4); pointer-events: none; }
.ph .ph-label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 20px; line-height: 1.7; }
.ph .ph-label b { color: var(--gold); display: block; font-size: 0.92rem; margin-bottom: 4px; letter-spacing: 0.14em; }
.ph .ph-icon { width: 34px; height: 34px; margin: 0 auto 12px; opacity: 0.5; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-3x4 { aspect-ratio: 3 / 4; }
.ph-hero { aspect-ratio: 16 / 9; box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px var(--line); }

/* ---------- feature rows (alternating) ---------- */
/* ---------- FEATURE LINE (index) ---------- */
.fline { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.6vw, 38px); }
.fitem { border-top: 1px solid var(--line); padding-top: 22px; }
.fitem h3 { font-size: 1.06rem; line-height: 1.25; margin: 13px 0 10px; }
.fitem p { color: var(--muted-2); font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 1080px) { .fline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; } }
@media (max-width: 700px)  { .fline { grid-template-columns: 1fr; row-gap: 28px; } }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.frow + .frow { margin-top: clamp(72px, 10vw, 130px); }
.frow.flip .frow-media { order: -1; }
.frow-copy h2 { margin: 12px 0 18px; }
.frow-copy p { margin-bottom: 22px; }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; gap: 28px; } .frow.flip .frow-media { order: 0; } }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 20px; color: var(--gold);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card .num { font-family: var(--mono); color: var(--muted-2); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 14px; }

/* pillar list */
.pillar { border-top: 1px solid var(--line); padding-top: 30px; }
.pillar ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.pillar li { padding-left: 26px; position: relative; color: var(--muted); }
.pillar li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border-radius: 3px; background: var(--grad); }
.pillar li b { color: var(--ink); font-weight: 600; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .val { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* ---------- showcase ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px) scale(1.01); border-color: var(--line-2); }
.tile .meta {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(7,7,11,0.92), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.tile:hover .meta { opacity: 1; transform: translateY(0); }
.tile .meta .t { color: var(--ink); font-weight: 700; }
.tile .meta .c { color: var(--gold); font-size: 0.85rem; font-family: var(--mono); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { background: var(--grad); color: #140b02; border-color: transparent; }

/* ---------- quote / manifesto ---------- */
.manifesto { text-align: center; }
.manifesto blockquote { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; max-width: 22ch; margin: 0 auto; }
.manifesto .by { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 28px; }
.manifesto .tag { color: var(--muted-2); margin-top: 10px; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 24px; overflow: hidden; padding: clamp(48px, 8vw, 90px); text-align: center; border: 1px solid var(--line-2); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0.14; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(245,166,35,0.25), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin-bottom: 30px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 22px 0; color: var(--ink); font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 20px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 24px; color: var(--muted); }

/* ---------- section heading helper ---------- */
.sec-head { max-width: 62ch; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-bottom: 16px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; }
.price.feat { border-color: rgba(245,166,35,0.5); box-shadow: 0 0 0 1px rgba(245,166,35,0.25), 0 24px 60px rgba(0,0,0,0.4); }
.price .tier { font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); }
.price .amt { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 10px 0 4px; }
.price ul { list-style: none; margin: 20px 0; display: grid; gap: 11px; flex: 1; }
.price li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0; margin-top: 40px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; color: var(--muted-2); font-size: 0.85rem; }
.footer-bottom .credit { color: var(--muted-2); }
@media (max-width: 620px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* eyebrow chip for page heroes */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
