/* AlterU landing — shared brand tokens + below-fold sections + footer
   Used by all 4 hero variants. v2 hand-drawn brand canonical. */

:root {
  --brand-pink: #F5B1C7;
  --brand-pink-strong: #FF94B7;
  --ink: #000000;
  --surface-1: #000000;
  --surface-2: #0d0d10;
  --surface-3: #16161a;
  --border: #313132;
  --text-1: #FFFFFF;
  --text-2: #D9D9D9;
  --text-3: #9B9BA1;
  --text-on-brand: #1F1F1F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-1);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Top nav ─────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nav-brand img { width: 32px; height: auto; display: block; }
.nav-brand span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}
.nav-back {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-back:hover { color: var(--text-1); background: var(--surface-2); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-brand);
  background: var(--brand-pink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 200ms ease;
}
.nav-cta:hover { background: var(--brand-pink-strong); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ─── CTAs (used in hero + final) ─────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 16px 24px;
  border-radius: 14px;
  transition: transform 180ms ease, background 200ms ease, border-color 200ms ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}
.cta-primary {
  background: var(--brand-pink);
  color: var(--text-on-brand);
}
.cta-primary:hover { background: var(--brand-pink-strong); transform: translateY(-1px); }
.cta-secondary {
  background: transparent;
  color: var(--brand-pink);
  border-color: var(--brand-pink);
}
.cta-secondary:hover { background: rgba(245, 177, 199, 0.08); transform: translateY(-1px); }
.cta-icon { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; }
.cta-label-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.cta-label-stack .small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.8;
  text-transform: uppercase;
}
.cta-label-stack .big {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ─── Below-fold sections (shared across all 4 variants) ──── */
.section {
  padding: 96px 24px;
  position: relative;
}
.section .container { max-width: 1160px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-pink);
  margin-bottom: 16px;
}
.h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text-1);
  max-width: 18ch;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0;
}

/* — Identity section — */
.identity {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Mini worlds gallery embedded in identity slot — refined 3D folding-screen layout */
.identity-art {
  position: relative;
}
.identity-art-emblem {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  perspective: 1500px;
  perspective-origin: 50% 58%;
  overflow: visible;
}
.mini-tile {
  position: absolute;
  width: 32%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 420ms ease, filter 420ms ease;
  will-change: transform;
  filter: brightness(0.84) saturate(0.92);
}
.mini-tile::after {
  /* subtle edge sheen so each panel reads as glass-cased card */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.10) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.18) 100%);
}
.mini-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Soft upward arc — edges sit lower, center pushed higher (like a fanned-out screen) */
.mini-tile:nth-child(1) { left: -3%; bottom: 3%;  transform: rotateY(38deg);  z-index: 1; }
.mini-tile:nth-child(2) { left: 16%; bottom: 8%;  transform: rotateY(20deg);  z-index: 2; filter: brightness(0.94) saturate(0.96); }
.mini-tile:nth-child(3) {
  left: 34%; bottom: 12%; transform: rotateY(0deg); z-index: 3;
  filter: brightness(1.06) saturate(1.06);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.65),
    0 0 64px rgba(245, 177, 199, 0.20),
    0 0 0 1px rgba(245, 177, 199, 0.18) inset;
}
.mini-tile:nth-child(4) { left: 52%; bottom: 8%;  transform: rotateY(-20deg); z-index: 2; filter: brightness(0.94) saturate(0.96); }
.mini-tile:nth-child(5) { left: 71%; bottom: 3%;  transform: rotateY(-38deg); z-index: 1; }

.mini-tile:hover,
.mini-tile:focus-visible {
  z-index: 10;
  filter: brightness(1.14) saturate(1.10);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(245, 177, 199, 0.5),
    0 0 80px rgba(245, 177, 199, 0.24);
  transform: rotateY(0deg) translateY(-22%) translateZ(40px) scale(1.18) !important;
}

@media (max-width: 1100px) {
  .identity-art-emblem { aspect-ratio: 5 / 4; }
}
@media (max-width: 760px) {
  .identity-art-emblem { aspect-ratio: 5 / 4; }
  .mini-tile { width: 27%; }
  .mini-tile:nth-child(1) { left: -2%; }
  .mini-tile:nth-child(2) { left: 18%; }
  .mini-tile:nth-child(3) { left: 36.5%; }
  .mini-tile:nth-child(4) { left: 55%; }
  .mini-tile:nth-child(5) { left: 75%; }
}
@media (max-width: 760px) {
  .identity-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* — How it works (3 steps) — */
.how {
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.how-head { text-align: center; margin-bottom: 56px; }
.how-head .h2 { margin: 0 auto 16px; }
.how-head .lede { margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-pink);
  opacity: 0.18;
  position: absolute;
  top: 16px;
  right: 24px;
  pointer-events: none;
}
.step h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text-1);
  position: relative;
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0;
  position: relative;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* — Game wall — */
.wall {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.wall-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.wall-head .h2 { margin: 0; max-width: 24ch; }
.wall-head p {
  color: var(--text-3);
  font-size: 15px;
  max-width: 36ch;
  margin: 0;
}
.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 220ms ease, border-color 220ms ease;
  cursor: pointer;
}
.tile:hover { transform: translateY(-4px); border-color: var(--brand-pink); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 2;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 980px) { .wall-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .wall-grid { grid-template-columns: repeat(2, 1fr); } }

/* — Final CTA — */
.final {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--ink) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.final .container { max-width: 760px; }
.final .h2 { margin: 0 auto 20px; max-width: 20ch; }
.final .lede { margin: 0 auto 32px; }
.final .cta-row { justify-content: center; }
.final .small-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* — Footer — */
.foot {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  background: var(--ink);
}
.foot-row {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: auto; }
.foot-brand span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.foot-meta {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* — Brushstroke decorative motifs (D1 single descending curl) — */
.brush-d1 {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}
.brush-d1 svg { display: block; width: 100%; height: 100%; }

/* — reduced motion respect — */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
