/* MoonTech Studios — dark editorial */
:root {
  --bg: #0a0b0f;
  --bg-raised: #10121a;
  --surface: #151822;
  --line: #262a36;
  --text: #f3f4f6;
  --dim: #a2a8b5;
  --faint: #6c7383;
  --blue: #4c8eff;
  --blue-deep: #2f6be0;
  --pink: #c4477f;
  --green: #73b667;
  --amber: #d6a23a;
  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--blue); margin-bottom: 18px; display: block;
}
.display { font-family: var(--serif); font-size: clamp(46px, 8vw, 104px); line-height: .98; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.015em; }
.h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--dim); max-width: 44ch; line-height: 1.5; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
em.serif { font-family: var(--serif); font-style: italic; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: block; width: 34px; height: 28px; object-fit: contain; flex: none; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; color: var(--dim); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav ul a.cta { background: var(--blue); color: #fff; font-weight: 600; }
.nav ul a.cta:hover { background: var(--blue-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 14px; font-size: 17px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s, border-color .15s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn.ghost { border-color: #3a3f4d; color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- placeholders (swap for real photos) ---------- */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #1a1e2a, #0e1017);
  border: 1px dashed #3a4052;
  display: flex; align-items: flex-end; min-height: 220px;
  aspect-ratio: var(--ratio, 4 / 3);
}
.ph > div { padding: 22px; max-width: 46ch; }
.ph .tag, .badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(214,162,58,.5); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.badge { vertical-align: middle; margin-bottom: 0; }
.badge.free { color: var(--green); border-color: rgba(62,207,142,.5); }
.ph strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ph span.hint { color: var(--dim); font-size: 14px; line-height: 1.45; display: block; }
.ph .icon { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; opacity: .35; }
.ph.tall { --ratio: 4 / 5; }
.ph.wide { --ratio: 16 / 9; }
.ph.square { --ratio: 1 / 1; }
.ph.cinema { --ratio: 21 / 9; }
.ph.phone { --ratio: 9 / 19.5; }

/* A real photo, filling the same shaped box a .ph placeholder would -
   see photo() in build.py, the drop-in replacement for ph(). */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { --ratio: 4 / 5; }
.photo.wide { --ratio: 16 / 9; }
.photo.square { --ratio: 1 / 1; }
.photo.cinema { --ratio: 21 / 9; }
.photo.phone { --ratio: 9 / 19.5; }
.photo.app { --ratio: 6 / 5; }
.photo.small { max-width: 220px; margin: 0 auto; }
.photo.contain { background: var(--bg-raised); }
.photo.contain img { object-fit: contain; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(76,142,255,.20), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: end; position: relative; }
.hero .lede { margin-top: 28px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- credits strip ---------- */
.credits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.credits .wrap { padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.credits h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; font-family: var(--sans); }
.credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 34px; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; color: var(--text); }
.credits .more { font-family: var(--sans); font-size: 15px; color: var(--dim); align-self: center; }
@media (max-width: 760px) { .credits .wrap { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); margin-bottom: clamp(36px, 5vw, 64px); align-items: end; }
.section-head p { margin: 0; color: var(--dim); font-size: 19px; max-width: 46ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--dim); margin: 0; font-size: 16px; }
.card .num { font-family: var(--serif); font-size: 42px; color: var(--faint); line-height: 1; }
.card.link { text-decoration: none; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: #4a5068; transform: translateY(-3px); }
.tile .ph { border-radius: 12px; }
.tile h3 { margin: 18px 0 6px; }
.tile p { color: var(--dim); font-size: 16px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--dim); font-size: 16px; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); margin-top: 9px; justify-self: center; }
.checks strong { color: var(--text); font-weight: 600; }

/* ---------- title list (games) ---------- */
.titles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.titles span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--text); background: var(--bg-raised); }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.role .when { color: var(--faint); font-size: 14px; letter-spacing: .04em; padding-top: 5px; }
.role h3 { font-size: 22px; font-weight: 600; }
.role .org { color: var(--blue); font-size: 15px; margin: 4px 0 12px; }
.role p, .role li { color: var(--dim); font-size: 16px; }
.role ul { margin: 10px 0 0; padding-left: 18px; }
.role-photos { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.role-photos .photo { width: 160px; flex: none; }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; gap: 6px; } .role-photos .photo { width: 130px; } }

/* ---------- GAGE band ---------- */
.gage-band { background: linear-gradient(180deg, #0c0f18, #090a0f); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.gage-band::after { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, rgba(196,71,127,.14), transparent 70%); pointer-events: none; }
.gage-band .wrap { position: relative; z-index: 1; }
.wordmark { height: clamp(44px, 6vw, 72px); width: auto; margin-bottom: 28px; }
.bars { display: flex; gap: 6px; margin-bottom: 30px; }
.bars i { width: 40px; height: 6px; border-radius: 3px; }
.bars i:nth-child(1) { background: var(--blue); } .bars i:nth-child(2) { background: var(--pink); }
.bars i:nth-child(3) { background: var(--amber); } .bars i:nth-child(4) { background: var(--green); }

/* ---------- buy ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border-color: var(--blue); background: linear-gradient(180deg, #131a2b, var(--surface)); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 34px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-size: 44px; line-height: 1; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan .note { color: var(--dim); font-size: 15px; margin-bottom: 8px; }
.placeholder-note { color: var(--amber); font-size: 13px; letter-spacing: .03em; }

/* ---------- forms ---------- */
form.notify { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
form.notify input[type=email], .field input, .field textarea, .field select {
  flex: 1 1 240px; background: var(--bg-raised); border: 1px solid #333849; color: var(--text); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px;
}
form.notify input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; color: var(--dim); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #ff8a8a; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-raised); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--dim); font-size: 15px; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(28px, 4vw, 50px); }
.page-head .lede { margin-top: 24px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
