/* -------------------------------------------------------------
   BrandBox LLC — landing page
   ElevenLabs-inspired: warm-white, light display type,
   multi-layer shadows, pill CTAs, airy rhythm.
   ------------------------------------------------------------- */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f5f5;
  --c-stone: #f5f2ef;
  --c-stone-soft: #faf8f5;
  --c-stone-deep: #edeae4;
  --c-stone-translucent: rgba(245, 242, 239, 0.8);
  --c-ink: #0a0a0a;
  --c-ink-2: #4e4e4e;
  --c-ink-3: #777169;
  --c-ink-4: #a8a29a;
  --c-border: #e5e5e5;
  --c-border-soft: rgba(0, 0, 0, 0.05);
  --c-warm: rgba(78, 50, 23, 0.04);
  --c-warm-2: rgba(78, 50, 23, 0.08);

  --shadow-inset: rgba(0, 0, 0, 0.075) 0 0 0 0.5px inset;
  --shadow-ring: rgba(0, 0, 0, 0.06) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 1px 2px,
    rgba(0, 0, 0, 0.04) 0 2px 4px;
  --shadow-card: rgba(0, 0, 0, 0.4) 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 4px 4px;
  --shadow-warm: rgba(78, 50, 23, 0.04) 0 6px 16px,
    rgba(78, 50, 23, 0.04) 0 2px 6px,
    rgba(0, 0, 0, 0.075) 0 0 0 0.5px inset;
  --shadow-lift: rgba(0, 0, 0, 0.06) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 10px 30px,
    rgba(78, 50, 23, 0.04) 0 4px 12px;

  --font-display: "Fraunces", "Inter", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 72px;
  --max-w: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 85% -5%, #f5f2ef 0%, transparent 55%),
    radial-gradient(900px 700px at -10% 25%, #f6f4f0 0%, transparent 50%),
    var(--c-bg);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #0a0a0a; color: #fff; }

/* ----------------------------- Grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ----------------------------- Typography primitives */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--c-ink);
}
.display--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--c-ink-3);
}

.heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.heading--italic { font-style: italic; color: var(--c-ink-3); }
.heading--center { text-align: center; }

.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.18px;
  color: var(--c-ink-2);
  max-width: 620px;
  margin: 0 0 40px;
}

.sub {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.16px;
  color: var(--c-ink-2);
  max-width: 640px;
  margin: 0 0 32px;
}
.sub--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: var(--shadow-ring);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14px;
  color: var(--c-ink-2);
  margin-bottom: 28px;
}
.eyebrow--center { margin-left: auto; margin-right: auto; }
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
  50% { box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.03); }
}

.muted { color: var(--c-ink-3); }

/* ----------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.15px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1),
    box-shadow 260ms ease, background 220ms ease, color 220ms ease;
  user-select: none;
  white-space: nowrap;
}

.btn--primary {
  background: #0a0a0a;
  color: #fff;
  padding: 11px 18px;
  border-radius: 9999px;
  box-shadow: var(--shadow-card);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: rgba(0, 0, 0, 0.5) 0 0 1px,
    rgba(0, 0, 0, 0.12) 0 10px 22px;
}

.btn--ghost {
  background: #fff;
  color: #0a0a0a;
  padding: 11px 18px;
  border-radius: 9999px;
  box-shadow: var(--shadow-card);
}
.btn--ghost:hover {
  transform: translateY(-1px);
  background: #fafafa;
}

.btn--stone {
  background: var(--c-stone-translucent);
  color: #0a0a0a;
  padding: 14px 22px 14px 18px;
  border-radius: 30px;
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--stone:hover {
  transform: translateY(-1px);
  background: rgba(245, 242, 239, 0.95);
  box-shadow: rgba(78, 50, 23, 0.10) 0 12px 28px,
    rgba(78, 50, 23, 0.06) 0 2px 6px,
    var(--shadow-inset);
}

.btn--lg {
  font-size: 17px;
  padding: 16px 26px 16px 22px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: greenPulse 2s ease-in-out infinite;
}
@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

/* ----------------------------- Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--c-border-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.16px;
}

.nav__mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  display: block;
}

.nav__dim { color: var(--c-ink-3); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15px;
  color: var(--c-ink-2);
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--c-ink); }

.nav__menu {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav__menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #0a0a0a;
  border-radius: 2px;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 24px;
  border-top: 1px solid var(--c-border-soft);
  background: rgba(255, 255, 255, 0.96);
}
.nav__mobile a {
  padding: 14px 4px;
  font-size: 17px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-border-soft);
}
.nav__mobile a.btn { align-self: flex-start; margin-top: 12px; border-bottom: 0; }

/* ----------------------------- Hero */
.hero {
  position: relative;
  padding: clamp(70px, 13vw, 160px) 28px clamp(60px, 10vw, 120px);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0; right: -5%;
  width: 80%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 60% at 0% 50%, #fff 40%, rgba(255,255,255,0) 75%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}

.hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border-soft);
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: var(--shadow-ring);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14px;
  color: var(--c-ink-2);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms ease, color 200ms ease;
}
.hero__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--c-stone);
}
.hero__brand:hover {
  transform: translateY(-2px);
  color: var(--c-ink);
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.06) 0 8px 22px,
    rgba(78, 50, 23, 0.04) 0 2px 6px;
}

/* ----------------------------- Marquee strip */
.hero__marquee {
  margin-top: clamp(48px, 8vw, 80px);
  padding: 18px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero__marquee::before,
.hero__marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}
.hero__marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, transparent 100%);
}
.hero__marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #fff 0%, transparent 100%);
}
.marquee__track {
  display: inline-flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink-3);
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee__track .sep { color: var(--c-ink-4); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------- Stats strip */
.stats {
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  background: rgba(250, 248, 245, 0.6);
}
.stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-ink);
}
.stat__lbl {
  font-size: 12.5px;
  color: var(--c-ink-3);
  letter-spacing: 0.14px;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 720px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 28px 20px; }
}

/* ----------------------------- Sections */
.section {
  padding: clamp(80px, 10vw, 140px) 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.section--stone {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  background:
    linear-gradient(180deg, transparent, rgba(245, 242, 239, 0.9) 10%, rgba(245, 242, 239, 0.9) 90%, transparent);
}
.section--stone > .company {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section__head { max-width: 780px; margin-bottom: 80px; }

/* ----------------------------- Products */
.products {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 960px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) and (min-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-ring);
  transition: transform 420ms cubic-bezier(.2,.7,.2,1),
    box-shadow 420ms ease;
  height: 100%;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product__bullets { flex: 1; }

.product--dark .product__visual {
  background:
    radial-gradient(500px 400px at 50% 50%, rgba(147, 112, 219, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, #15131a 0%, #0a0910 100%);
}
.product--dark .product__tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}

.product__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border-soft);
  background:
    radial-gradient(600px 400px at 70% 30%, #f5f2ef 0%, transparent 70%),
    linear-gradient(135deg, #fafafa 0%, #efeae2 100%);
}

.product__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.product--dark .product__canvas {
  opacity: 0.55;
  mix-blend-mode: screen;
}

.product__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  border-radius: 9999px;
  box-shadow: var(--shadow-inset);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.product__logo {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-card);
  z-index: 2;
}

/* Big centered logo treatment for the arcade card — its logo is a piece */
.product__hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  max-width: 280px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(255, 77, 122, 0.25))
    drop-shadow(0 4px 12px rgba(90, 156, 255, 0.18));
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.product:hover .product__hero-logo {
  transform: translate(-50%, -52%) scale(1.03);
}
.product__visual--arcade {
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(155, 92, 255, 0.22) 0%, transparent 70%),
    linear-gradient(135deg, #1a1525 0%, #08060f 100%) !important;
}
.product__visual--arcade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 70%, rgba(255, 77, 122, 0.8) 0%, transparent 50%),
    radial-gradient(1px 1px at 15% 80%, rgba(90, 156, 255, 0.8) 0%, transparent 50%),
    radial-gradient(1px 1px at 50% 90%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  animation: sparkle 4s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.product__body { padding: 32px 28px 32px; }

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill-sm {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 9999px;
  background: var(--c-stone-translucent);
  box-shadow: var(--shadow-inset);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--c-ink-2);
}
.pill-sm--mono {
  font-family: var(--font-mono);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.7);
}

.product__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.product__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.3;
  color: var(--c-ink-3);
  margin: 0 0 16px;
}
.product__desc {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.14px;
  color: var(--c-ink-2);
  margin: 0 0 20px;
}

.product__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.product__bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--c-ink-2);
  letter-spacing: 0.14px;
  line-height: 1.5;
}
.product__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--c-ink-3);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-ink-3);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
}
.link:hover {
  color: var(--c-ink-3);
  border-bottom-color: var(--c-ink);
  gap: 8px;
}

/* ----------------------------- Showcases (alternating feature blocks) */
.showcases {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 120px);
}

.showcase {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .showcase {
    grid-template-columns: 1.05fr 1fr;
  }
  .showcase--reverse .showcase__stage { order: 2; }
  .showcase--reverse .showcase__copy { order: 1; }
}

/* ─── stage (the big visual side) ─── */
.showcase__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-ring), rgba(78, 50, 23, 0.06) 0 20px 50px -20px;
  isolation: isolate;
}

.showcase__stage--ai {
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(90, 156, 255, 0.45) 0%, transparent 70%),
    radial-gradient(45% 40% at 80% 70%, rgba(155, 92, 255, 0.38) 0%, transparent 70%),
    linear-gradient(135deg, #18131f 0%, #08060f 100%);
}
.showcase__stage--deck {
  background:
    radial-gradient(40% 35% at 75% 30%, rgba(255, 120, 180, 0.45) 0%, transparent 70%),
    radial-gradient(45% 40% at 20% 75%, rgba(155, 92, 255, 0.38) 0%, transparent 70%),
    linear-gradient(135deg, #18131f 0%, #08060f 100%);
}
.showcase__stage--arcade {
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(155, 92, 255, 0.35) 0%, transparent 70%),
    linear-gradient(135deg, #18131f 0%, #08060f 100%);
}
.showcase__stage--ai::after,
.showcase__stage--deck::after,
.showcase__stage--arcade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(3px 3px at 15% 25%, rgba(255,255,255,0.95) 0%, transparent 60%),
    radial-gradient(2.5px 2.5px at 75% 18%, rgba(255,255,255,0.85) 0%, transparent 60%),
    radial-gradient(3px 3px at 88% 72%, rgba(255,77,122,1) 0%, transparent 60%),
    radial-gradient(2.5px 2.5px at 12% 82%, rgba(90,156,255,1) 0%, transparent 60%),
    radial-gradient(2px 2px at 55% 92%, rgba(255,255,255,0.8) 0%, transparent 60%),
    radial-gradient(2.5px 2.5px at 40% 8%, rgba(255,204,61,0.9) 0%, transparent 60%),
    radial-gradient(2px 2px at 62% 45%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(2.5px 2.5px at 28% 55%, rgba(180,120,255,0.9) 0%, transparent 60%),
    radial-gradient(2px 2px at 92% 38%, rgba(120,200,255,0.85) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: sparkle 5s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.showcase__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.showcase__stage--arcade .showcase__canvas {
  opacity: 0.6;
  mix-blend-mode: screen;
}

.showcase__logo-float {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  object-fit: contain;
}

.showcase__logo-arcade {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 62%;
  max-width: 320px;
  z-index: 3;
  filter: drop-shadow(0 12px 36px rgba(255, 77, 122, 0.3))
    drop-shadow(0 4px 14px rgba(90, 156, 255, 0.2));
  pointer-events: none;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.showcase:hover .showcase__logo-arcade {
  transform: translate(-50%, -57%) scale(1.04);
}

/* floating "chip" — live status badge */
.stage__chip {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  box-shadow: var(--shadow-inset), rgba(0, 0, 0, 0.06) 0 4px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  backdrop-filter: blur(10px);
  z-index: 3;
}
.stage__chip--dark {
  background: rgba(10, 8, 15, 0.85);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    rgba(0, 0, 0, 0.4) 0 4px 12px;
}

/* little floating feature pills inside the stage */
.stage__feature-pill {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: var(--shadow-inset), rgba(78, 50, 23, 0.06) 0 8px 20px;
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  letter-spacing: 0.12px;
  color: var(--c-ink-2);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
  animation: floatPill 5s ease-in-out infinite;
}
.stage__feature-pill strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.stage__feature-pill--tl { top: 22%; left: 8%; }
.stage__feature-pill--tr { top: 22%; right: 8%; animation-delay: -2s; }
.stage__feature-pill--bl { bottom: 14%; left: 8%; animation-delay: -1s; }
.stage__feature-pill--br { bottom: 14%; right: 8%; animation-delay: -3s; }

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* arcade game grid floating at bottom of stage */
.stage__game-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}
.stage__game-grid span {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

/* ─── copy (the text side) ─── */
.showcase__copy { padding: 8px 0; }

.showcase__index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border-soft);
}
.showcase__index > span:first-child {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-ink);
}
.showcase__index-lbl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
}

.showcase__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--c-ink);
}

.showcase__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink-2);
  margin: 0 0 20px;
  max-width: 28ch;
}
.showcase__tagline em {
  font-style: italic;
  color: var(--c-ink-3);
}

.showcase__desc {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.16px;
  color: var(--c-ink-2);
  margin: 0 0 24px;
  max-width: 52ch;
}

.showcase__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase__bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--c-ink-2);
  letter-spacing: 0.14px;
  line-height: 1.5;
}
.showcase__bullets li strong {
  color: var(--c-ink);
  font-weight: 500;
}
.showcase__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1px;
  background: var(--c-ink);
}

.showcase__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn--md {
  padding: 13px 20px;
  font-size: 15px;
}
.showcase__url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-ink-3);
  letter-spacing: 0.04em;
}

/* mobile: stage gets a cap */
@media (max-width: 640px) {
  .showcase__stage { aspect-ratio: 4 / 3; border-radius: 20px; }
  .stage__feature-pill {
    padding: 8px 10px;
    font-size: 11px;
  }
  .stage__feature-pill strong { font-size: 14px; }
  .stage__feature-pill--tl { top: 14%; left: 5%; }
  .stage__feature-pill--tr { top: 14%; right: 5%; }
  .stage__feature-pill--bl { bottom: 10%; left: 5%; }
  .stage__feature-pill--br { bottom: 10%; right: 5%; }
  .showcase__index > span:first-child { font-size: 36px; }
  .stage__game-grid { left: 12px; right: 12px; bottom: 12px; }
  .stage__game-grid span { font-size: 10px; padding: 5px 8px; }
}

/* ----------------------------- Company section */
.company {
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 960px) {
  .company {
    grid-template-columns: 1fr 1fr;
    gap: 88px;
  }
}

.values {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border-soft);
}
.value {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.value__num {
  flex: 0 0 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-ink-3);
  padding-top: 4px;
}
.value__body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--c-ink);
}
.value__body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
  margin: 0;
  letter-spacing: 0.14px;
}

/* Terminal card */
.company__card {
  background: #0b0b0c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0 30px 60px -20px,
    rgba(78, 50, 23, 0.08) 0 10px 30px,
    rgba(0, 0, 0, 0.4) 0 0 0 1px;
  position: relative;
}
.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141415;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal__chrome span {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: #333;
}
.terminal__chrome span:nth-child(1) { background: #ff5f57; }
.terminal__chrome span:nth-child(2) { background: #febc2e; }
.terminal__chrome span:nth-child(3) { background: #28c840; }
.terminal__chrome em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
}
.terminal__body {
  padding: 24px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}
.t-row { display: flex; gap: 10px; flex-wrap: wrap; }
.t-prompt { color: #82d9a6; }
.t-cmd { color: #fff; }
.t-out { color: rgba(255, 255, 255, 0.72); padding-left: 14px; display: block; }
.t-out strong { color: #fff; font-weight: 500; }
.t-out em { font-style: normal; color: rgba(255, 255, 255, 0.45); margin-left: 6px; }
.t-sep { color: rgba(255,255,255,0.3); }
.t-out.muted { color: rgba(255, 255, 255, 0.5); }
.cursor {
  display: inline-block;
  color: #82d9a6;
  margin-left: 4px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ----------------------------- Contact */
.section--contact {
  padding: clamp(100px, 14vw, 180px) 28px;
  position: relative;
}
.contact {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.contact__inner { position: relative; z-index: 2; }
.contact__cta { margin-top: 40px; display: flex; justify-content: center; }

/* ----------------------------- Footer */
.footer {
  border-top: 1px solid var(--c-border-soft);
  background: #fff;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-ink-3);
  letter-spacing: 0.14px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-weight: 500;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--c-ink-2); transition: color 200ms ease; }
.footer__links a:hover { color: var(--c-ink); }

/* ----------------------------- Mobile */
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav.is-open .nav__mobile { display: flex; }
  #hero-canvas { opacity: 0.5; width: 100%; right: 0; }
  .hero__vignette {
    background: radial-gradient(85% 70% at 50% 40%, #fff 30%, rgba(255,255,255,0) 75%);
  }
}

@media (max-width: 640px) {
  .nav__inner { padding: 12px 20px; }
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .hero__brands { gap: 8px; }
  .hero__brand { font-size: 13px; padding: 6px 12px 6px 8px; }
  .hero__brand img { width: 20px; height: 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .btn--lg { font-size: 14px; padding: 14px 20px; }
  .values { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
