/* PAMG Studio — site styles */
:root {
  --ink: #0d0b14;
  --ink-2: #15121f;
  --ink-3: #1d1929;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f1ea;
  --muted: #a39fb0;
  --gold: #ffc83d;
  --gold-2: #ff9f1c;
  --grass: #5fd23c;
  --dirt: #8a5a35;
  --violet: #8b6cff;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: var(--gold); color: #1a1205;
  box-shadow: 0 0 0 0 rgba(255, 200, 61, .5), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 200, 61, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.btn--small { padding: .7em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 11, 20, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 4px 10px rgba(95, 210, 60, .35)); }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__studio { font-family: var(--pixel); font-weight: 400; font-size: .7rem; color: var(--gold); margin-left: 6px; letter-spacing: .04em; text-transform: uppercase; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(139, 108, 255, .28), transparent 70%),
    radial-gradient(40% 40% at 15% 15%, rgba(255, 200, 61, .14), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(95, 210, 60, .12), transparent 70%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .85rem; color: var(--muted); background: rgba(255, 255, 255, .03);
}
.dot { width: 8px; height: 8px; background: var(--grass); box-shadow: 0 0 0 4px rgba(95, 210, 60, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 210, 60, 0); } }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.2rem); font-weight: 800; margin: 24px 0 22px; letter-spacing: -.04em; line-height: 1.02; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-2) 50%, var(--grass) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 52px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .85rem; color: var(--muted); }
.hero__stats dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; }

.hero__stage { position: relative; aspect-ratio: 1 / .82; }
.stage__shot {
  position: absolute; top: 12%; left: 0; width: 88%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  animation: float 9s ease-in-out infinite;
}
.stage__phone {
  position: absolute; right: 0; bottom: 0; width: 30%;
  border-radius: 26px; overflow: hidden; border: 6px solid #241f33;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
  animation: float 9s ease-in-out -3s infinite;
}
.stage__icons { position: absolute; left: -2%; bottom: 6%; display: flex; gap: 10px; animation: float 9s ease-in-out -6s infinite; }
.stage__icons img {
  width: clamp(52px, 6vw, 72px); border-radius: 18px;
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2);
}
.stage__icons img:nth-child(2) { transform: translateY(-14px); }
.stage__badge {
  position: absolute; top: 0; right: 4%;
  display: flex; flex-direction: column; padding: 12px 16px;
  background: rgba(21, 18, 31, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.stage__badge .pixel { color: var(--gold); font-size: 1.3rem; }
.stage__badge small { color: var(--muted); font-size: .78rem; }
@keyframes float { 50% { translate: 0 -12px; } }

.cube { position: absolute; width: 22px; height: 22px; background: var(--gold); box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .22), inset 5px 5px 0 rgba(255, 255, 255, .3); animation: bob 6s ease-in-out infinite; }
.cube--a { top: 2%; left: 10%; }
.cube--b { top: 52%; left: 44%; width: 14px; height: 14px; background: var(--grass); animation-delay: -2s; }
.cube--c { bottom: 2%; right: 40%; width: 18px; height: 18px; background: var(--violet); animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(18deg); } }

/* ticker */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font-family: var(--pixel); font-size: 1rem; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 10px; height: 10px; background: var(--gold); display: block; }
.ticker i:nth-of-type(3n+2) { background: var(--grass); }
.ticker i:nth-of-type(3n) { background: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { margin-bottom: 52px; max-width: 760px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.kicker { color: var(--gold); font-size: .85rem; text-transform: uppercase; margin-bottom: 18px; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.section__sub { color: var(--muted); font-size: 1.15rem; margin-top: 18px; max-width: 36em; }

/* ---------- Flagship ---------- */
.flagship__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.gallery { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.gallery__main { border-radius: calc(var(--radius) - 8px); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.gallery__main img.is-fading { opacity: 0; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none;
  aspect-ratio: 16 / 9; opacity: .5; transition: opacity .2s, border-color .2s;
}
.gallery__thumbs button:hover { opacity: .85; }
.gallery__thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.flagship__info {
  display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(160deg, rgba(255, 200, 61, .1), transparent 45%), var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2); flex-shrink: 0; }
.app-id h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.app-id p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.app-id--sm img { width: 52px; height: 52px; border-radius: 14px; }
.app-id--sm h3 { font-size: 1.08rem; line-height: 1.2; }
.app-id--sm p { font-size: .82rem; margin-top: 2px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.metrics div { padding: 14px 12px; text-align: center; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics strong { display: block; font-size: 1.45rem; letter-spacing: -.02em; }
.metrics span { color: var(--muted); font-size: .8rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: #d9d5e2; font-size: .98rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px;
  background: var(--grass); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .3);
}

/* ---------- App cards ---------- */
.apps { background: linear-gradient(var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.filters { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); }
.filters button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: background .2s, color .2s; }
.filters button:hover { color: var(--text); }
.filters button.is-active { background: var(--text); color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.card.is-hidden { display: none; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 14px 0; background: radial-gradient(80% 90% at 50% 100%, rgba(139, 108, 255, .3), transparent), #120f1b; }
.card__media--duo img { border-radius: 12px 12px 0 0; object-position: top; }
.card__body { display: flex; flex-direction: column; gap: 16px; padding: 22px; flex: 1; }
.card__desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.tag { font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #cfcbd9; }
.card__link { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--gold); padding: 6px 2px; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Studio ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--ink); padding: 34px 28px 38px; transition: background .3s; }
.pillar:hover { background: var(--ink-2); }
.pillar__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px;
  border-radius: 12px; background: rgba(255, 200, 61, .1); color: var(--gold);
}
.pillar:nth-child(2) .pillar__icon { background: rgba(95, 210, 60, .1); color: var(--grass); }
.pillar:nth-child(3) .pillar__icon { background: rgba(139, 108, 255, .14); color: #b3a1ff; }
.pillar:nth-child(4) .pillar__icon { background: rgba(255, 159, 28, .12); color: var(--gold-2); }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: -.02em; }
.pillar p { color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* ---------- Numbers ---------- */
.numbers { padding-top: 0; }
.numbers__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 200, 61, .22), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(95, 210, 60, .16), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line-2);
}
.numbers__panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.numbers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.numbers__grid div { background: rgba(13, 11, 20, .75); padding: 26px; }
.numbers__grid strong { display: block; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.numbers__grid span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 36px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em;
  border-bottom: 2px solid var(--gold); padding-bottom: 6px;
  transition: gap .3s var(--ease), color .3s;
}
.mail:hover { gap: 22px; color: var(--gold); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.topics li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.topics li:hover { border-color: var(--line-2); transform: translateX(4px); }
.topics .pixel { flex-shrink: 0; min-width: 64px; padding: 6px 8px; border-radius: 8px; text-align: center; font-size: .75rem; background: rgba(255, 200, 61, .12); color: var(--gold); }
.topics li:nth-child(2) .pixel { background: rgba(139, 108, 255, .15); color: #b3a1ff; }
.topics li:nth-child(3) .pixel { background: rgba(95, 210, 60, .12); color: var(--grass); }
.topics strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.topics p { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--ink); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer__links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: #6f6a7e; font-size: .82rem; }

/* ---------- Store buttons ---------- */
.nav__stores { display: flex; gap: 8px; }
.store-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.store-btns .btn { padding-inline: 1em; }
.card__link--ios { margin-left: 0; color: #cfcbd9; }

/* ---------- App Store section ---------- */
.ios { position: relative; }
.ios::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 85% 10%, rgba(139, 108, 255, .14), transparent 70%);
}
.ios .section__head--row { align-items: end; }
.ios__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 20px; background: var(--ink-2); }
.ios__stats div { padding: 18px 22px; }
.ios__stats div + div { border-left: 1px solid var(--line); }
.ios__stats strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.ios__stats span { color: var(--muted); font-size: .85rem; }
.ios__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ios__app {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.ios__app:hover { border-color: var(--line-2); background: var(--ink-3); transform: translateY(-2px); }
.ios__app img { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.ios__app span { display: flex; flex-direction: column; min-width: 0; }
.ios__app strong { font-size: .95rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios__app small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ios__count { opacity: .7; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 150px 0 56px; position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; margin: 18px 0 16px; }
.legal-hero p { color: var(--muted); max-width: 40em; font-size: 1.1rem; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; }
.crumbs a:hover { color: var(--text); }
.legal-switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); }
.legal-switch a { padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.legal-switch a:hover { color: var(--text); }
.legal-switch a[aria-current="page"] { background: var(--text); color: var(--ink); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 64px 0 120px; align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-family: var(--pixel); font-size: .78rem; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .88rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--gold); }
.prose { max-width: 760px; color: #d6d2df; font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose .intro { font-size: 1.15rem; color: var(--text); }
.prose h2 {
  font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.3;
  margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); scroll-margin-top: 96px;
}
.prose h2:first-of-type { margin-top: 2em; }
.prose h2 .num { font-family: var(--pixel); font-weight: 400; font-size: .85rem; color: var(--gold); display: block; margin-bottom: 6px; letter-spacing: .02em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 200, 61, .4); text-underline-offset: 3px; word-break: break-word; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--gold); }
.prose .caps { font-size: .92rem; letter-spacing: .01em; color: var(--muted); }
.prose .address { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); }
.updated { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .88rem; color: var(--muted); }

@media (max-width: 1080px) {
  .ios__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav__stores { margin-left: auto; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { position: static; max-height: none; margin-bottom: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); }
  .toc ol { columns: 2; column-gap: 24px; border: 0; }
  .toc a { padding-left: 0; border: 0; }
}
@media (max-width: 640px) {
  .nav__stores { display: none; }
  .ios__grid, .ios__stats { grid-template-columns: minmax(0, 1fr); }
  .ios__stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .store-btns { grid-template-columns: minmax(0, 1fr); }
  .legal-hero { padding-top: 120px; }
  .toc ol { columns: 1; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
  .hero__stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .flagship__grid, .numbers__panel, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { gap: 40px; }

  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; margin: 0;
    padding: 12px 16px 24px; background: rgba(13, 11, 20, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links a { padding: 14px 8px; font-size: 1.1rem; color: var(--text); border-radius: 10px; }
  .nav.is-open { background: rgba(13, 11, 20, .97); border-color: var(--line); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__toggle { display: block; }
  .nav__toggle { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__toggle { margin-left: auto; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .hero h1 br { display: none; }
  .cards, .pillars, .numbers__grid { grid-template-columns: minmax(0, 1fr); }
  .stage__badge { right: 0; }
  .gallery__thumbs { gap: 6px; }
  .metrics strong { font-size: 1.2rem; }
  .flagship__info { padding: 22px; }
  .numbers__grid div { padding: 22px; }
  .filters { width: 100%; justify-content: space-between; }
  .filters button { padding: 8px 12px; }
  .mail { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
