/* ============================================================
   PACER-X — studio site styles
   Dark violet-black base · three app accent systems
   Type: Space Grotesk (display) · Manrope (body) · Space Mono (labels)
   ============================================================ */

:root {
  /* base */
  --bg:        #07060c;
  --bg-1:      #0b0a13;
  --bg-2:      #110f1b;
  --ink:       #f5f3fb;
  --ink-dim:   #a6a1bd;
  --ink-faint: #645e7c;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.15);
  --surface:   rgba(255,255,255,0.025);

  /* PacerX — magenta → violet neon */
  --px-1: #ff2e9a;
  --px-2: #c42ad8;
  --px-3: #8b3bff;
  --px-glow: rgba(255,46,154,0.55);

  /* Five Hole — ice blue */
  --fh-1: #6cc0ff;
  --fh-2: #2a76e0;
  --fh-3: #1b4fb0;
  --fh-glow: rgba(95,184,255,0.5);

  /* Dark Skies — amber over indigo night */
  --ds-1: #ffb066;
  --ds-2: #f3884a;
  --ds-3: #5566ff;
  --ds-glow: rgba(255,160,90,0.5);

  --maxw: 1240px;
  --r-lg: 28px;
  --r-md: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
.mono { font-family: 'Space Mono', ui-monospace, monospace; }
.display { font-family: 'Space Grotesk', sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Atmospheric backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(255,46,154,0.16), transparent 70%),
    radial-gradient(40% 32% at 84% 26%, rgba(95,184,255,0.13), transparent 72%),
    radial-gradient(46% 38% at 60% 96%, rgba(255,160,90,0.12), transparent 72%),
    radial-gradient(60% 50% at 50% 50%, rgba(139,59,255,0.06), transparent 75%);
  filter: blur(8px);
  opacity: 0.9;
}
.grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,0.5) 100%);
}

.shell { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(7,6,12,0.86), rgba(7,6,12,0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px -6px var(--px-glow);
}
.brand .name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: 0.14em; color: var(--ink);
}
.brand .name b { color: var(--px-1); font-weight: 700; }
nav.top .links { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; }
nav.top a.nav-link {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); text-decoration: none;
  transition: color 180ms;
}
nav.top a.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-family: 'Manrope'; font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  color: #0a0510; background: linear-gradient(95deg, var(--px-1), var(--px-3));
  box-shadow: 0 8px 26px -10px var(--px-glow), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 180ms, box-shadow 180ms; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px var(--px-glow), inset 0 1px 0 rgba(255,255,255,0.45); }
@media (max-width: 720px) { nav.top .links .nav-link { display: none; } }

/* ---------- Shared hero atoms ---------- */
section.hero { position: relative; min-height: 100vh; display: flex; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--px-1); box-shadow: 0 0 12px var(--px-1); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.8)} }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px;
  border-radius: 999px; font-family: 'Manrope'; font-size: 14px; font-weight: 700;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: none;
  transition: transform 200ms ease, box-shadow 200ms; white-space: nowrap;
}
.btn-primary {
  color: #0a0510; background: linear-gradient(95deg, var(--px-1), var(--px-2) 55%, var(--px-3));
  box-shadow: 0 12px 40px -12px var(--px-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px var(--px-glow), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hide all hero variants by default; JS shows the active one */
.hero-variant { display: none; width: 100%; }
section.hero[data-layout="aurora"]   .hero-aurora   { display: flex; }
section.hero[data-layout="triptych"] .hero-triptych { display: grid; }
section.hero[data-layout="index"]    .hero-index    { display: grid; }
section.hero[data-layout="showcase"] .hero-showcase { display: grid; }

/* ===== Hero · AURORA (centered) ===== */
.hero-aurora {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px clamp(20px,5vw,48px) 90px; gap: 26px;
}
.hero-aurora .glyph-wrap { position: relative; }
.hero-aurora .glyph {
  width: clamp(96px, 13vw, 148px); height: clamp(96px, 13vw, 148px);
  border-radius: 26px; object-fit: cover; position: relative;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 90px -20px var(--px-glow);
}
.hero-aurora .glyph-wrap::after {
  content: ''; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--px-glow), transparent 65%);
  filter: blur(30px); opacity: 0.7;
}
.hero-aurora h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0;
  font-size: clamp(44px, 12vw, 142px); line-height: 0.92; letter-spacing: -0.04em;
  white-space: nowrap;
}
.hero-aurora h1 .x {
  background: linear-gradient(120deg, var(--px-1), var(--px-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-dim);
  max-width: 600px; line-height: 1.55; text-wrap: pretty; margin: 0;
}
.lede em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero-aurora .cta-row { justify-content: center; margin-top: 6px; }
.app-dots { display: flex; gap: 18px; margin-top: 20px; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; justify-content: center; }
.app-dots span { display: inline-flex; align-items: center; gap: 8px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.app-dots .d-px { background: var(--px-1); box-shadow: 0 0 10px var(--px-1); }
.app-dots .d-fh { background: var(--fh-1); box-shadow: 0 0 10px var(--fh-1); }
.app-dots .d-ds { background: var(--ds-1); box-shadow: 0 0 10px var(--ds-1); }

/* ===== Hero · TRIPTYCH (three converging panels) ===== */
.hero-triptych { grid-template-columns: 1fr 1fr 1fr; min-height: 100vh; position: relative; }
.tri-pane { position: relative; overflow: hidden; padding: 150px 30px 80px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; }
.tri-ic { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 36px -14px rgba(0,0,0,0.7); }
.tri-pane .cat { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.tri-pane h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 0.95; letter-spacing: -0.03em; }
.tri-pane p { color: var(--ink-dim); font-size: 15px; max-width: 30ch; margin: 0; }
.tri-px { background:
    radial-gradient(70% 50% at 30% 75%, rgba(255,46,154,0.32), transparent 70%),
    linear-gradient(180deg, #0b0712, #16091a); }
.tri-px h2 { color: #ffd9ee; }
.tri-fh { background:
    radial-gradient(70% 50% at 50% 75%, rgba(58,120,224,0.34), transparent 70%),
    linear-gradient(180deg, #070a16, #0a1428); }
.tri-fh h2 { color: #d6ecff; }
.tri-ds { background:
    radial-gradient(70% 50% at 70% 75%, rgba(255,160,90,0.3), transparent 70%),
    linear-gradient(180deg, #0a0810, #170f0c); }
.tri-ds h2 { color: #ffe7cf; }
.tri-center {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%); z-index: 5;
  text-align: center; pointer-events: none;
}
.tri-center img { width: 78px; height: 78px; border-radius: 18px; margin: 0 auto 14px;
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px -16px var(--px-glow); }
.tri-center .nm { font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(26px, 3vw, 44px); letter-spacing: 0.04em; }
.tri-center .nm b { color: var(--px-1); }
.tri-center .sub { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim); margin-top: 8px; }

/* ===== Hero · INDEX (editorial type + list) ===== */
.hero-index { grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 160px clamp(20px,5vw,48px) 110px; width: 100%; }
.hero-index .big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0;
  font-size: clamp(52px, 7vw, 116px); line-height: 0.92; letter-spacing: -0.04em; }
.hero-index .big .x { background: linear-gradient(120deg, var(--px-1), var(--px-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-index .lede { margin: 28px 0 32px; }
.idx-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.idx-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 20px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding-left 200ms, background 200ms; }
.idx-row:hover { padding-left: 16px; background: rgba(255,255,255,0.02); }
.idx-row .no { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--ink-faint); }
.idx-row .nm { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(20px,2vw,26px); }
.idx-row .cat { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); }
.idx-row .swatch { width: 10px; height: 10px; border-radius: 50%; }

/* ===== Hero · SHOWCASE (headline + phones) ===== */
.hero-showcase { grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 150px clamp(20px,5vw,48px) 100px; width: 100%; }
.hero-showcase .copy h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 18px 0 0;
  font-size: clamp(46px, 5.6vw, 92px); line-height: 0.94; letter-spacing: -0.035em; }
.hero-showcase .copy h1 .x { background: linear-gradient(120deg, var(--px-1), var(--px-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-showcase .lede { margin: 24px 0 30px; }
.showcase-stage { position: relative; height: 560px; }
.showcase-stage .phone { position: absolute; }
.showcase-stage .p1 { left: 6%;  top: 40px; z-index: 3; transform: rotate(-5deg); }
.showcase-stage .p2 { left: 38%; top: 0;   z-index: 2; transform: rotate(3deg); }
.showcase-stage .p3 { left: 22%; top: 120px; z-index: 1; transform: rotate(-1deg); opacity: .9; }

/* ---------- Phone frame ---------- */
.phone {
  width: 232px; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a2733, #131019);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 90px -30px rgba(0,0,0,0.8);
}
.phone .screen { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.5;
  background: #0a0810; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; border-radius: 999px; background: #000; z-index: 4; }
.phone image-slot { width: 100%; height: 100%; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.glow-px { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 90px -28px var(--px-glow); }
.phone.glow-fh { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 90px -28px var(--fh-glow); }
.phone.glow-ds { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 90px -28px var(--ds-glow); }

/* ---------- Scroll cue ---------- */
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-faint);
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; }
.scroll-cue .bar { width: 1px; height: 50px; background: linear-gradient(180deg, transparent, var(--line-2), transparent);
  position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ''; position: absolute; top: -30%; left: 0; width: 100%; height: 30%;
  background: linear-gradient(180deg, transparent, var(--px-1), transparent); animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 0%{top:-30%} 100%{top:130%} }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Section heading ---------- */
.sec-head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,48px); }
.eyebrow { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--line-2); }
.sec-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 18px 0 0;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.sec-sub { color: var(--ink-dim); font-size: 18px; max-width: 600px; margin: 16px 0 0; text-wrap: pretty; }

/* ---------- Apps ---------- */
section.apps { padding: clamp(90px,12vw,150px) 0 40px; position: relative; }
.app-list { max-width: var(--maxw); margin: 64px auto 0; padding: 0 clamp(20px,5vw,48px);
  display: flex; flex-direction: column; gap: clamp(40px, 7vw, 96px); }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.app-row.flip .app-copy { order: 2; }
.app-row.flip .app-visual { order: 1; }

.app-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  position: relative; overflow: hidden; box-shadow: 0 12px 36px -12px rgba(0,0,0,0.6); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.fh { background: radial-gradient(120% 120% at 30% 20%, #bfe0ff, transparent 60%),
    linear-gradient(160deg, var(--fh-1), var(--fh-3)); }
.app-icon.fh .gl { font-size: 38px; font-style: italic; color: #07203f; transform: skewX(-7deg); }
.app-icon.ds { background: radial-gradient(120% 120% at 70% 90%, var(--ds-1), transparent 55%),
    linear-gradient(165deg, #1a1f4d, #06040a); }
.app-icon.ds .ring { width: 30px; height: 30px; border-radius: 50%;
    border: 2.5px solid var(--ds-1); box-shadow: 0 0 14px var(--ds-glow); position: relative; }
.app-icon.ds .ring::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%;
    background: #fff; top: -3px; right: 2px; box-shadow: 0 0 8px #fff; }

.app-tag { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; margin: 22px 0 0; }
.app-row.px .app-tag { color: var(--px-1); }
.app-row.fh .app-tag { color: var(--fh-1); }
.app-row.ds .app-tag { color: var(--ds-1); }
.app-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 10px 0 0;
  font-size: clamp(36px, 4.2vw, 58px); line-height: 0.98; letter-spacing: -0.03em; }
.app-line { font-size: clamp(18px,1.7vw,22px); font-weight: 600; margin: 12px 0 0; color: var(--ink); }
.app-blurb { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin: 14px 0 0; max-width: 46ch; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.025); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.app-row.px .chip:hover { border-color: var(--px-1); color: #fff; }
.app-row.fh .chip:hover { border-color: var(--fh-1); }
.app-row.ds .chip:hover { border-color: var(--ds-1); }

/* app → dedicated page CTA */
.app-actions { margin: 26px 0 0; }
.app-explore {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: 'Manrope'; font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  text-decoration: none; color: #0a0510; cursor: pointer; white-space: nowrap;
  transition: transform 200ms ease, box-shadow 200ms;
}
.app-explore span { transition: transform 200ms; }
.app-explore:hover { transform: translateY(-2px); }
.app-explore:hover span { transform: translateX(4px); }
.app-row.px .app-explore { background: linear-gradient(95deg, var(--px-1), var(--px-3));
  box-shadow: 0 12px 40px -14px var(--px-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.app-row.fh .app-explore { background: linear-gradient(95deg, var(--fh-1), var(--fh-3)); color: #04122c;
  box-shadow: 0 12px 40px -14px var(--fh-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.app-row.ds .app-explore { background: linear-gradient(95deg, var(--ds-1), var(--ds-2)); color: #2a1505;
  box-shadow: 0 12px 40px -14px var(--ds-glow), inset 0 1px 0 rgba(255,255,255,0.35); }

.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.store-label { display: block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); margin: 26px 0 0; }
.store {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px; border-radius: 13px;
  text-decoration: none; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  transition: transform 180ms, border-color 180ms, background 180ms;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); }
.store .glyph { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.store .txt { display: flex; flex-direction: column; line-height: 1.05; }
.store .txt small { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); }
.store .txt b { font-family: 'Manrope'; font-weight: 700; font-size: 14px; color: var(--ink); }
.store.primary { background: linear-gradient(95deg, var(--px-1), var(--px-3)); border: none; }
.store.primary .glyph, .store.primary .txt b { color: #0a0510; }
.store.primary .txt small { color: rgba(10,5,16,0.6); }
.app-row.fh .store.primary { background: linear-gradient(95deg, var(--fh-1), var(--fh-3)); }
.app-row.fh .store.primary .glyph, .app-row.fh .store.primary .txt b { color: #04122c; }
.app-row.fh .store.primary .txt small { color: rgba(4,18,44,0.6); }
.app-row.ds .store.primary { background: linear-gradient(95deg, var(--ds-1), var(--ds-2)); }
.app-row.ds .store.primary .glyph, .app-row.ds .store.primary .txt b { color: #2a1505; }
.app-row.ds .store.primary .txt small { color: rgba(42,21,5,0.6); }

/* app visual / phones cluster */
.app-visual { display: flex; justify-content: center; position: relative; min-height: 480px; align-items: center; }
.phone-cluster { position: relative; }
.phone-cluster .back { position: absolute; top: 32px; left: 100px; transform: rotate(6deg) scale(0.92);
  z-index: 1; opacity: 0.92; }
.app-row.flip .phone-cluster .back { left: auto; right: 100px; transform: rotate(-6deg) scale(0.92); }
.phone-cluster .front { position: relative; z-index: 2; }
.app-glow { position: absolute; inset: -10% -20%; z-index: 0; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.app-row.px .app-glow { background: radial-gradient(circle, var(--px-glow), transparent 65%); }
.app-row.fh .app-glow { background: radial-gradient(circle, var(--fh-glow), transparent 65%); }
.app-row.ds .app-glow { background: radial-gradient(circle, var(--ds-glow), transparent 65%); }

/* ---------- Privacy / values strip ---------- */
section.values { padding: clamp(80px,11vw,140px) 0; }
.values-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,48px); }
.values-quote { font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(28px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; margin: 22px 0 0; max-width: 18ch; }
.values-quote .hl { background: linear-gradient(95deg, var(--px-1), var(--ds-1));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 0; }
.principle { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; }
.principle i { width: 7px; height: 7px; border-radius: 50%; background: var(--px-1); box-shadow: 0 0 9px var(--px-1); }

/* ---------- Contact / CTA ---------- */
section.contact { padding: 20px clamp(20px,5vw,48px) clamp(90px,12vw,140px); }
.contact-card { max-width: var(--maxw); margin: 0 auto; position: relative; overflow: hidden;
  border-radius: 36px; padding: clamp(48px,7vw,90px) clamp(28px,5vw,72px); text-align: center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 90% at 12% 30%, rgba(255,46,154,0.18), transparent 65%),
    radial-gradient(60% 90% at 88% 70%, rgba(255,160,90,0.14), transparent 65%),
    linear-gradient(180deg, rgba(20,18,30,0.7), rgba(11,10,19,0.6));
}
.contact-card .icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 26px;
  box-shadow: 0 0 0 1px var(--line-2), 0 28px 70px -20px var(--px-glow); }
.contact-card h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.0; letter-spacing: -0.03em; }
.contact-card h2 .x { background: linear-gradient(120deg, var(--px-1), var(--px-3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-card p { color: var(--ink-dim); font-size: 18px; max-width: 520px; margin: 18px auto 34px; text-wrap: pretty; }
.contact-card .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px clamp(20px,5vw,48px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
footer a { color: var(--ink-dim); text-decoration: none; font-size: 13px; transition: color 180ms; }
footer a:hover { color: var(--ink); }
footer .copy { color: var(--ink-faint); font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-index, .hero-showcase { grid-template-columns: 1fr; }
  .hero-showcase .showcase-stage { display: none; }
  .hero-triptych { grid-template-columns: 1fr; }
  .tri-pane { min-height: auto; padding: 60px 26px; justify-content: flex-start; }
  .tri-pane:first-child { padding-top: 140px; }
  .tri-center { display: none; }
  .app-row, .app-row.flip { grid-template-columns: 1fr; }
  .app-row.flip .app-copy { order: 1; } .app-row.flip .app-visual { order: 2; }
  .app-visual { min-height: 420px; }
  .phone { width: 200px; }
}
@media (max-width: 520px) {
  .phone { width: 168px; }
  .phone-cluster .back { display: none; }
}
