/* ===== Tokens ===== */
:root {
  --bg: #0a0a0c;
  --elevated: #141418;
  --text: #f5f5f7;
  --muted: #8a8a94;
  --hairline: rgba(255, 255, 255, 0.08);
  --neon-a: #ff2d9b;
  --neon-b: #19e3ff;
  --maxw: 1100px;
  --pad: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===== Base ===== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 12vh, 140px); }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.neon-text {
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Hero ===== */
.hero { padding-top: clamp(64px, 14vh, 150px); }
.brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.brand-logo {
  width: clamp(52px, 10vw, 80px); height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 45, 155, 0.35));
}
.brand-word {
  font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 0.92;
  max-width: 14ch;
}
.hero-shot { margin-top: clamp(48px, 9vh, 96px); }

/* ===== Mac device housing ===== */
.device-mac { max-width: 920px; margin-inline: auto; }
.device-mac-screen {
  background: #0b0b0d;
  border: 12px solid #17171b;
  border-radius: 18px 18px 6px 6px;
  overflow: hidden;
  /* neon-a (#ff2d9b) @ 30% opacity, neon-b (#19e3ff) @ 22% opacity */
  box-shadow: 0 40px 90px -45px rgba(255, 45, 155, 0.30),
              0 24px 70px -35px rgba(25, 227, 255, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.device-mac-screen img { display: block; width: 100%; }
.device-mac-base {
  position: relative;
  width: 116%; margin-left: -8%;
  height: 16px;
  background: linear-gradient(#26262c, #0d0d10);
  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.06);
}
.device-mac-base::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 7px; background: #08080a;
  border-radius: 0 0 8px 8px;
}

/* ===== Statement ===== */
.statement-lead {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}

/* ===== Capabilities ===== */
.capabilities .eyebrow { margin-bottom: 1.5rem; }
.cap-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--hairline);
}
.cap-list li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 500;
}
@media (min-width: 700px) {
  .cap-list { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 6vw, 80px); }
}

/* ===== Gallery ===== */
.gallery .eyebrow { margin-bottom: 2rem; }

/* ===== Showcase (Live mode) ===== */
.showcase .eyebrow { margin-bottom: 1rem; }
.showcase-lead { margin: 0 0 2.5rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }

/* ===== Companion phones ===== */
.gallery-lead { margin: 0.75rem 0 2.5rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }
.phone-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 8vw, 72px); justify-items: center; }
@media (min-width: 700px) { .phone-grid { grid-template-columns: 1fr 1fr; } }
.phone { max-width: 300px; }
.device-phone {
  background: #1a1a1e;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.9),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.device-phone img { display: block; width: 100%; border-radius: 36px; background: #000; }
.phone figcaption { margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 9vh, 96px);
}
.foot-mark { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.foot-meta {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  color: var(--muted); font-size: 0.9rem;
}
.foot-meta a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.foot-meta a:hover, .foot-meta a:focus-visible { color: var(--text); border-color: var(--neon-b); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--neon-b); outline-offset: 3px; border-radius: 2px; }

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