/* ==========================================================================
   ENTHAP — Design System
   Premium tech-ecosystem brand. Dark-first, full light mode.
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data)
   ========================================================================== */

/* ----- Tokens (dark default) ----- */
:root {
  /* Brand */
  --blue:        #3a6ff7;
  --blue-bright: #6e9bff;
  --blue-deep:   #1b3fcc;
  --blue-glow:   rgba(58, 111, 247, 0.45);

  /* Dark surfaces */
  --bg:          #07080c;
  --bg-soft:     #0c0e14;
  --surface:     #101218;
  --surface-2:   #161922;
  --border:      rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:        #f4f6fb;
  --text-muted:  #a4abba;
  --text-faint:  #6a7283;

  /* Effects */
  --shadow:      0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm:   0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --ring:        0 0 0 3px rgba(58, 111, 247, 0.45);
  --grad-blue:   linear-gradient(135deg, #6e9bff 0%, #3a6ff7 45%, #1b3fcc 100%);
  --grad-text:   linear-gradient(120deg, #ffffff 0%, #b9ccff 60%, #6e9bff 100%);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --nav-h:     68px;
}

[data-theme="light"] {
  --bg:          #ffffff;
  --bg-soft:     #f6f8fc;
  --surface:     #ffffff;
  --surface-2:   #f3f5fa;
  --border:      rgba(10, 20, 40, 0.10);
  --border-strong: rgba(10, 20, 40, 0.18);

  --text:        #0b0e16;
  --text-muted:  #4a5365;
  --text-faint:  #8a93a6;

  --blue-glow:   rgba(58, 111, 247, 0.22);
  --shadow:      0 24px 60px -28px rgba(20, 40, 90, 0.30);
  --shadow-sm:   0 10px 30px -16px rgba(20, 40, 90, 0.22);
  --grad-text:   linear-gradient(120deg, #0b0e16 0%, #1b3fcc 70%, #3a6ff7 100%);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin-block: .85rem .9rem; }
.lead { color: var(--text-muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--blue-glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--blue-glow); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-bright); transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Navbar ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; color: var(--text-faint); font-weight: 500; align-self: flex-end; margin-bottom: 3px; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: 999px;
  font-size: .92rem; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
/* the accounts that do not exist yet: same circle, nothing to click.
   Give one an href and drop this class the day the handle is real. */
.icon-btn.is-soon { color: var(--text-faint); cursor: default; }
.icon-btn.is-soon:hover { color: var(--text-faint); border-color: var(--border); background: none; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

/* ----- Hero ----- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; max-width: 130vw;
  top: -340px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--blue-glow), transparent 62%);
  filter: blur(20px);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero .container { position: relative; z-index: 1; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem .4rem .5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .82rem; color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  margin-bottom: 1.8rem;
}
.pill .tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em;
  background: var(--grad-blue); color: #fff;
  padding: .18rem .5rem; border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.hero .lead { max-width: 600px; margin: 0 auto 2.3rem; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.platform-row {
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
  margin-top: 2.6rem; color: var(--text-faint);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em;
  flex-wrap: wrap;
}
.platform-row span { display: inline-flex; align-items: center; gap: .45rem; }
.platform-row svg { width: 15px; height: 15px; opacity: .85; }

/* ----- Logos / trust strip ----- */
.trust { border-block: 1px solid var(--border); }
.trust .container { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.trust p { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.trust-row { display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; justify-content: center; align-items: center; color: var(--text-muted); }
.trust-row b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; opacity: .75; }

/* ----- Product cards ----- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.product-card { display: flex; flex-direction: column; min-height: 320px; }
.product-card .app-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 1.1rem;
}
.product-card h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.product-card .kicker { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .7rem; }
.product-card p { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.1rem; }
.product-card .feat { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.product-card .feat span { font-size: .76rem; padding: .28rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.product-card .learn { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--blue-bright); }
.product-card .learn .arrow { transition: transform .2s; }
.product-card:hover .learn .arrow { transform: translateX(4px); }
.product-card .platforms { display: flex; gap: .5rem; margin-bottom: 1rem; color: var(--text-faint); }
.product-card .platforms svg { width: 15px; height: 15px; }

/* coming soon variant */
.card.soon { border-style: dashed; }
.card.soon .badge-soon {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-faint);
}

/* ----- Ecosystem (signature) ----- */
.eco { background: var(--bg-soft); border-block: 1px solid var(--border); }
.eco-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 460px;
  margin-top: 2.5rem;
  overflow: hidden;
}
.eco-ring {
  position: absolute; border: 1px solid var(--border); border-radius: 50%;
  inset: 50% auto auto 50%; translate: -50% -50%;
}
.eco-ring.r1 { width: 200px; height: 200px; }
.eco-ring.r2 { width: 340px; height: 340px; }
.eco-ring.r3 { width: 480px; height: 480px; border-style: dashed; opacity: .55; }
.eco-orbit { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 340px; height: 340px; animation: spin 40s linear infinite; }
.eco-orbit.slow { width: 480px; height: 480px; animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.eco-core {
  position: relative; z-index: 3;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--grad-blue); color: #fff;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--blue) 14%, transparent), 0 20px 50px -10px var(--blue-glow);
  font-family: var(--font-display);
}
.eco-core b { font-size: 1.05rem; display: block; }
.eco-core small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; opacity: .85; }

.eco-node {
  position: absolute; z-index: 4;
  width: 96px; height: 96px; margin: -48px;
  border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: grid; place-items: center; text-align: center; gap: .15rem;
  box-shadow: var(--shadow-sm);
  animation: counter-spin 40s linear infinite;
  transition: transform .25s ease, border-color .25s ease;
}
@keyframes counter-spin { to { transform: rotate(-360deg); } }
.eco-orbit.slow .eco-node { animation-duration: 70s; animation-direction: reverse; }
.eco-node:hover { border-color: var(--blue); transform: scale(1.08); }
.eco-node svg { width: 26px; height: 26px; color: var(--blue-bright); }
.eco-node b { font-size: .8rem; font-family: var(--font-display); }
/* positions on each orbit (top, right, bottom, left) */
.eco-orbit .n-top    { top: 0; left: 50%; }
.eco-orbit .n-right  { top: 50%; left: 100%; }
.eco-orbit .n-bottom { top: 100%; left: 50%; }
.eco-orbit .n-left   { top: 50%; left: 0; }


/* ----- Stats ----- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.03em; line-height: 1; }
.stat .num .gradient-text { display: inline; }
.stat .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-top: .7rem; }

/* ----- Future vision ----- */
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.future-card {
  padding: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative; overflow: hidden; min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s, border-color .25s;
}
.future-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.future-card .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--blue-bright); margin-bottom: 1.2rem; }
.future-card .fi svg { width: 22px; height: 22px; }
.future-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.future-card p { color: var(--text-muted); font-size: .9rem; }
.future-card .soon-tag { position: absolute; top: 1.1rem; right: 1.1rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* ----- Testimonials ----- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote {
  padding: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.quote .stars { color: var(--blue); letter-spacing: .15em; margin-bottom: .9rem; font-size: .9rem; }
.quote p { font-size: 1rem; margin-bottom: 1.3rem; }
.quote .who { display: flex; align-items: center; gap: .7rem; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); font-size: .9rem; }
.quote .who b { font-size: .9rem; display: block; }
.quote .who small { color: var(--text-faint); font-size: .8rem; }

/* ----- Big CTA ----- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-card p { color: var(--text-muted); max-width: 480px; margin: 0 auto 2rem; }
.cta-card .hero-cta { justify-content: center; }

/* ----- Footer ----- */
.footer { border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .9rem; padding: .3rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .82rem; }
.footer-bottom .socials { display: flex; gap: .6rem; }

/* ----- Page hero (sub pages) ----- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-block: 1rem; }
.page-hero .lead { max-width: 560px; margin-inline: auto; }

/* category section */
.cat { scroll-margin-top: calc(var(--nav-h) + 20px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cat-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cat-head .count { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }

/* category chips nav */
.chip-nav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.chip-nav a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .03em; transition: all .2s; }
.chip-nav a:hover { border-color: var(--blue); color: var(--blue-bright); }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ----- Mobile menu panel ----- */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 24px 2rem;
  display: none; flex-direction: column; gap: .2rem;
  overflow-y: auto;
  transform: translateY(-12px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu.open { display: flex; transform: none; opacity: 1; }
.mobile-menu a { padding: .85rem .4rem; font-size: 1.05rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .future-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .grid-3, .grid-2, .future-grid, .quote-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-stage { min-height: 360px; }
  .eco-ring.r3, .eco-orbit.slow { width: 300px; height: 300px; }
  .eco-ring.r2, .eco-orbit { width: 220px; height: 220px; }
  .eco-ring.r1 { width: 140px; height: 140px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding-block: clamp(3rem, 11vw, 5rem); }
  .container { padding-inline: 20px; }
  .nav { background: var(--bg); border-bottom: 1px solid var(--border); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .store-btn { width: 100%; justify-content: center; }
  .pdp-info h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .platform-row { gap: 1rem; }
  .container { padding-inline: 16px; }
  .shots img { height: 360px; }
  .btn-lg { padding: .85rem 1.3rem; font-size: .95rem; }
}

/* ----- A11y ----- */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

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

/* ==========================================================================
   Apps Marketplace
   ========================================================================== */
.search-wrap { max-width: 540px; margin: 1.8rem auto 0; position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: .95rem 1.1rem .95rem 2.9rem;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); outline: none; }

.filter-bar { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; margin-top: 1.3rem; }
.filter-bar button {
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; color: var(--text-muted);
  transition: all .2s;
}
.filter-bar button:hover { border-color: var(--blue); color: var(--blue-bright); }
.filter-bar button.active { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -10px var(--blue-glow); }

/* Three across when there are three, two across when there are two. The
   fixed three-column rule left the Store and Cloud pages with a third of
   the row empty, which read as a card that had failed to load. */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.app-card { display: flex; flex-direction: column; min-height: 296px; }
.app-card .app-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); margin-bottom: 1.05rem;
}
/* A photograph of a watch at 54px is a favicon of a watch. These are real
   product shots and they are only 256px square, so this is as large as they
   go while staying sharp — big enough to read as the thing itself. The
   high-resolution shots cannot be used here: they have their callout lines
   drawn onto the photograph, and a 16:10 crop lands halfway through them. */
.app-card .app-icon--product {
  width: 108px; height: 108px; border-radius: 22px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .9);
  margin-bottom: 1.25rem;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.app-card:hover .app-icon--product { transform: scale(1.04) rotate(-1deg); }
/* a wash of light behind it, so the card has a centre of gravity instead
   of a picture floating in an empty box */
.app-card:has(.app-icon--product)::before {
  content: ""; position: absolute; inset: -45% 45% 50% -30%;
  background: radial-gradient(60% 60% at 32% 42%, rgba(90, 130, 255, .17), transparent 70%);
  pointer-events: none;
}
.app-card .app-icon svg { width: 27px; height: 27px; }
img.app-icon { object-fit: cover; }

/* ----- Product detail page (Store) ----- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pdp-gallery { display: flex; gap: 1rem; }
.pdp-thumbs { display: flex; flex-direction: column; gap: .7rem; flex: none; }
.pdp-thumb { width: 66px; height: 66px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; background: var(--surface); padding: 0; cursor: pointer; transition: border-color .2s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--blue); }
.pdp-main { flex: 1; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.pdp-main img { width: 100%; display: block; }
.pdp-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4rem 0 .5rem; }
.pdp-price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--blue-bright); margin: 1.1rem 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pdp-price span { font-size: .65rem; color: var(--text-faint); border: 1px solid var(--border); padding: .25rem .6rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.pdp-specs { list-style: none; margin: 1.3rem 0; display: grid; gap: .7rem; }
.pdp-specs li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-muted); font-size: .95rem; }
.pdp-specs svg { width: 18px; height: 18px; color: var(--blue-bright); flex: none; margin-top: 2px; }
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pdp-gallery { flex-direction: column-reverse; } .pdp-thumbs { flex-direction: row; } .pdp-thumb { width: 58px; height: 58px; } }

/* ----- Notify modal ----- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1.2rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 2rem 1.8rem; max-width: 410px; width: 100%; position: relative; box-shadow: 0 30px 90px -20px rgba(0,0,0,.65); }
.modal h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.modal p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.3rem; }
.modal input { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: .95rem; margin-bottom: .9rem; font-family: inherit; }
.modal input:focus { outline: none; border-color: var(--blue); }
.modal .btn { width: 100%; justify-content: center; }
.modal-close { position: absolute; top: .9rem; right: 1.1rem; background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-ok { text-align: center; }

/* ----- Screenshots gallery (Play Store style) ----- */
.shots { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .2rem 1.2rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots img { height: 470px; width: auto; border-radius: 18px; border: 1px solid var(--border); flex: none; scroll-snap-align: center; box-shadow: var(--shadow-sm); }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
@media (max-width: 560px) { .shots img { height: 380px; } }
.app-card h3 { font-size: 1.18rem; margin-bottom: .15rem; }
.app-card .app-meta { display: flex; align-items: center; gap: .55rem; margin: .25rem 0 1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); flex-wrap: wrap; }
.app-card .app-meta .dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--text-faint); }
.app-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.1rem; }
.app-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .85rem; }

.market-empty { text-align: center; color: var(--text-muted); padding: 3.5rem 0; display: none; }
.market-empty.show { display: block; }
.market-empty b { font-family: var(--font-display); color: var(--text); display: block; font-size: 1.1rem; margin-bottom: .3rem; }

.android-badge { display: inline-flex; align-items: center; gap: .35rem; }
.android-badge svg { width: 13px; height: 13px; }

@media (max-width: 980px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .market-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hero device mockups + app UIs + marquee  (v2 premium upgrade)
   ========================================================================== */

/* Google-Play style download button */
.store-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .7rem 1.2rem; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); transition: transform .18s, border-color .2s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--blue); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn span small { font-size: .62rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
.store-btn span b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }

/* Device cluster */
.device-cluster {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  gap: -40px; margin-top: clamp(3rem, 7vw, 5rem);
  perspective: 1600px;
}
.phone {
  position: relative; flex: none;
  width: 236px; aspect-ratio: 9 / 19.3;
  border-radius: 36px; padding: 8px;
  background: linear-gradient(145deg, #1a1d26, #0a0c11);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 1px rgba(0,0,0,.4);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0b0e13; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 58px; height: 16px; background: #07080c; border-radius: 10px; z-index: 6; }
.phone--center { z-index: 3; transform: translateY(-22px); }
.phone--left   { z-index: 2; transform: translateX(60px) rotate(-9deg) scale(.9); transform-origin: bottom right; }
.phone--right  { z-index: 2; transform: translateX(-60px) rotate(9deg) scale(.9); transform-origin: bottom left; }
.device-cluster:hover .phone--center { transform: translateY(-30px); }
.device-cluster:hover .phone--left   { transform: translateX(50px) rotate(-11deg) scale(.9); }
.device-cluster:hover .phone--right  { transform: translateX(-50px) rotate(11deg) scale(.9); }

/* In-app UI */
.pscreen { position: absolute; inset: 0; display: flex; flex-direction: column; text-align: left; }
.app-top { padding: 30px 16px 16px; color: #fff; }
.app-eyebrow { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; opacity: .8; }
.app-h { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-top: 3px; letter-spacing: -.01em; }
.app-sub { font-size: 10px; opacity: .82; margin-top: 3px; }
.app-tabs { display: flex; gap: 6px; margin-top: 12px; }
.app-tabs span { font-size: 9px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.app-tabs span.on { background: #fff; color: #111; font-weight: 600; }
.app-prog { height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); margin-top: 12px; overflow: hidden; }
.app-prog i { display: block; height: 100%; background: #fff; border-radius: 999px; }
.app-body { flex: 1; background: #0b0e13; padding: 14px 13px; display: flex; flex-direction: column; gap: 9px; }

/* task rows (Plan) */
.task { display: flex; align-items: center; gap: 9px; background: #14171f; border: 1px solid rgba(255,255,255,.05); border-radius: 11px; padding: 9px 10px; }
.task .ck { width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid #3a4150; flex: none; position: relative; }
.task.done .ck { background: var(--accent); border-color: var(--accent); }
.task.done .ck::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.task .tx { font-size: 11px; color: #e7eaf0; }
.task.done .tx { color: #7d8494; text-decoration: line-through; }
.task .tx small { display: block; font-size: 8.5px; color: #6a7180; text-decoration: none; }

/* poster grid (Track) */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poster { aspect-ratio: 2/3; border-radius: 8px; position: relative; overflow: hidden; box-shadow: inset 0 -24px 30px -16px rgba(0,0,0,.7); }
.poster .rt { position: absolute; top: 4px; right: 4px; font-size: 7.5px; background: rgba(0,0,0,.6); color: #ffd54a; padding: 1px 4px; border-radius: 5px; font-weight: 600; }
.poster .pt { position: absolute; left: 5px; bottom: 4px; right: 5px; font-size: 7.5px; color: #fff; font-weight: 600; }

/* chapter rows (Study) */
.ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; background: conic-gradient(#fff var(--p,68%), rgba(255,255,255,.22) 0); }
.ring i { width: 42px; height: 42px; border-radius: 50%; background: #1b3fcc; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; }
.chap { background: #14171f; border: 1px solid rgba(255,255,255,.05); border-radius: 11px; padding: 9px 10px; }
.chap .ct { font-size: 11px; color: #e7eaf0; display: flex; justify-content: space-between; }
.chap .ct b { color: var(--accent); font-weight: 600; }
.chap .cb { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); margin-top: 7px; overflow: hidden; }
.chap .cb i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.app-card-mini { background: linear-gradient(135deg, rgba(58,111,247,.22), rgba(27,63,204,.1)); border: 1px solid rgba(110,155,255,.25); border-radius: 11px; padding: 10px; }
.app-card-mini b { font-size: 11px; color: #fff; font-family: var(--font-display); }
.app-card-mini p { font-size: 8.5px; color: #aeb6c6; margin-top: 2px; }

/* App marquee */
.appstrip { border-block: 1px solid var(--border); background: var(--bg-soft); padding-block: 1.6rem; }
.appstrip .lbl { text-align: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.3rem; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; gap: 2.4rem; width: max-content; animation: mq 42s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-app { display: flex; align-items: center; gap: .65rem; white-space: nowrap; color: var(--text-muted); font-weight: 500; font-size: .98rem; }
.mq-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.mq-ic svg { width: 21px; height: 21px; }
@keyframes mq { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .phone--left, .phone--right { display: none; }
  .phone--center { transform: none; }
  .device-cluster:hover .phone--center { transform: translateY(-6px); }
}
@media (max-width: 420px) {
  .phone { width: 210px; }
}


/* ---------------------------------------------------------------
   Pre-launch
   The apps are in Play Store review, so the pages that used to list
   them say so instead. `.is-soon` is the store button with the link
   taken out — it still reads as the Play button, but it does not
   pretend to go anywhere.
   --------------------------------------------------------------- */
.soon-note{
  max-width:720px;margin:0 auto;
  padding:28px 30px;border-radius:18px;
  background:var(--bg-soft);border:1px solid var(--border);
}
.soon-note h2{font-size:1.35rem;margin:0 0 12px}
.soon-note p{color:var(--text-muted);line-height:1.75;margin:0 0 12px}
.soon-note p:last-child{margin-bottom:0}
.soon-note a{color:var(--text);text-decoration:underline;text-underline-offset:2px}

.store-btn.is-soon{
  opacity:.62;cursor:default;
}
.store-btn.is-soon:hover{transform:none;border-color:var(--border)}


/* --------------------------------------------------------------------------
   The closing mark
   The one looping animation on this site. It is paused whenever it is off
   screen -- see js/main.js -- so it costs nothing while you are reading
   anything else, which is the whole reason the rest of the page has no
   loops in it. Nothing here blurs or filters; the motion is transform and
   opacity on four small groups.
   -------------------------------------------------------------------------- */
.orbitstage {
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
}
.orbitstage .orbit {
  width: clamp(190px, 30vw, 300px);
  height: auto;
  display: block;
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  /* the mark stays, the travelling stops; main.js pauses the clock */
  .orbitstage .orbit { opacity: .92; }
}


/* ==========================================================================
   The company site
   Everything below is for the pages added when Enthap stopped being one
   app's landing page and became the hub for both divisions. It builds on
   the tokens and the card above rather than replacing them.
   ========================================================================== */

/* ----- a wider navigation ----- */
/* nine links do not fit beside a logo on a laptop, so the bar collapses
   to the menu earlier than the rest of the layout does */
.nav-links--wide { gap: .15rem; }
.nav-links--wide a { padding: .45rem .6rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-links--wide { display: none; }
  .nav-toggle { display: grid; }
}

/* ----- status ----- */
.status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .26rem .6rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-faint);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.is-live { color: #34D399; border-color: rgba(52,211,153,.45); }
.status.is-testing { color: #6E9BFF; border-color: rgba(110,155,255,.45); }
.status.is-dev { color: var(--text-faint); }
.status.is-plain { color: var(--text-muted); }
.status.is-plain::before { display: none; }
.product-card .status, .game-card .status { align-self: flex-start; margin-bottom: .9rem; }

/* ----- divisions ----- */
.division { display: block; text-decoration: none; }
.division__tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
}
.division h3 { font-size: 1.6rem; margin: .5rem 0 .6rem; }
.division p { color: var(--text-muted); margin-bottom: 1.1rem; }
.division .learn { color: var(--blue-bright); font-weight: 600; display: inline-flex; gap: .4rem; }
.division:hover .arrow { transform: translateX(4px); }

/* ----- games ----- */
.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game-art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.game-art__n {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.game-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
/* The product-card rules are scoped to .product-card, so a game card got
   none of them and its heading, kicker, text and chips ran together as
   one block. They are repeated here rather than widened, because the two
   cards are not the same shape and should not share a selector. */
.game-body h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.game-body .kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: .7rem;
}
.game-body > p { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.1rem; }
.game-body .feat { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.game-body .feat span {
  font-size: .76rem; padding: .28rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.game-body .learn {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; color: var(--blue-bright);
}
.game-body .learn .arrow { transition: transform .2s; }
.game-card:hover .learn .arrow { transform: translateX(4px); }
.gamehero h1 { margin-bottom: .8rem; }
.gameart {
  aspect-ratio: 16 / 7; border-radius: var(--radius); display: grid; place-items: center;
  max-width: 900px; margin-inline: auto;
}
.gameart__n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.4rem); color: #fff;
  text-shadow: 0 3px 22px rgba(0,0,0,.5);
}
.artnote {
  margin: 1rem auto 0; max-width: 66ch; text-align: center;
  font-size: .88rem; color: var(--text-faint);
}

/* ----- product detail blocks ----- */
.prodlist { display: grid; gap: 1.2rem; }
.prod { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.prod__head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.prod__head h3 { font-size: 1.35rem; }
.prod__head .status { margin-left: auto; }
.prod__long { color: var(--text-muted); margin: 1rem 0; line-height: 1.75; }
.prod .feat { display: flex; flex-wrap: wrap; gap: .4rem; }
.prod .feat span {
  font-size: .76rem; padding: .28rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.icon-xl {
  width: 72px; height: 72px; border-radius: 19px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: #fff;
  box-shadow: var(--shadow-sm);
}
.prodhero { display: flex; align-items: center; gap: 1.6rem; text-align: left; max-width: 820px; margin-inline: auto; flex-wrap: wrap; }
.prodhero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .4rem 0 .7rem; }
.prodhero .lead { margin: 0 0 1rem; }
.prodhero__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.renamed { margin-top: .9rem; font-size: .9rem; color: var(--text-faint); }

/* ----- Playfellas card ----- */
.playcard { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; padding: 2rem; }
.playcard > div:first-child { flex: 1 1 320px; }
.playcard h2 { margin: .4rem 0 .7rem; }
.playcard__side { flex: none; text-align: right; }
.playcard__side .mono { font-family: var(--font-mono); font-size: .8rem; color: var(--text-faint); margin-top: .8rem; line-height: 1.9; }

/* ----- the ecosystem tree ----- */
.ecotree { margin-top: 2.2rem; }
.ecotree__root {
  margin-inline: auto; width: max-content;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: .1em; padding: .7rem 1.6rem; border-radius: 999px;
  color: #fff; background: var(--grad-blue); box-shadow: var(--shadow-sm);
}
.ecotree__branches {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: 2.2rem; position: relative;
}
.ecotree__branches::before {
  content: ""; position: absolute; top: -1.3rem; left: 16.6%; right: 16.6%;
  height: 1px; background: var(--border-strong);
}
.ecotree__branch {
  position: relative; padding: 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.ecotree__branch::before {
  content: ""; position: absolute; top: -1.3rem; left: 50%; width: 1px; height: 1.3rem;
  background: var(--border-strong);
}
.ecotree__head { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.ecotree__sub { font-size: .82rem; color: var(--text-faint); margin: .2rem 0 .9rem; }
.ecotree__leaves { display: flex; flex-wrap: wrap; gap: .4rem; }
.eco-leaf {
  font-size: .8rem; padding: .3rem .65rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
}
a.eco-leaf:hover { color: var(--text); border-color: var(--border-strong); }
.eco-leaf.is-live { color: #34D399; border-color: rgba(52,211,153,.4); }
.ecotree__foot { margin-top: 1.4rem; text-align: center; font-size: .86rem; color: var(--text-faint); }
@media (max-width: 860px) {
  .ecotree__branches { grid-template-columns: 1fr; }
  .ecotree__branches::before { display: none; }
  .ecotree__branch::before { display: none; }
}

/* ----- the ambition, in gold ----- */
.goldband { background: var(--bg-soft); border-block: 1px solid var(--border); }
.goldcard { max-width: 78ch; margin-inline: auto; text-align: center; }
.goldline {
  margin-top: .8rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem); line-height: 1.32; letter-spacing: -.02em;
  background: linear-gradient(100deg, #a67c00, #f5d67a 45%, #d4af37);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.goldnote { margin-top: 1rem; color: var(--text-muted); font-size: .95rem; }

/* ----- availability, notices, tables ----- */
.availgrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; max-width: 820px; margin-inline: auto;
}
.availgrid > div { background: var(--surface); padding: 1rem 1.2rem; }
.availgrid__k { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.availgrid__v { display: block; margin-top: .3rem; color: var(--text); }
@media (max-width: 560px) { .availgrid { grid-template-columns: 1fr; } }

.notice {
  max-width: 820px; margin-inline: auto; padding: 1.4rem 1.6rem;
  border: 1px solid var(--border-strong); border-left: 3px solid var(--blue);
  border-radius: var(--radius); background: var(--surface);
}
.notice h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.notice p { color: var(--text-muted); }
.notice p + p { margin-top: .7rem; }
.notice--plain { border-left-color: var(--border-strong); }

.dltable { max-width: 980px; margin-inline: auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.dltable table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.dltable th, .dltable td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.dltable thead th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); background: var(--bg-soft); }
.dltable tbody tr:last-child th, .dltable tbody tr:last-child td { border-bottom: 0; }
.dltable tbody th { font-weight: 600; color: var(--text); }
.dltable a { color: var(--blue-bright); }
.avail { font-family: var(--font-mono); font-size: .72rem; white-space: nowrap; }
.avail.is-yes { color: #34D399; }
.avail.is-soon { color: #6E9BFF; }
.avail.is-no { color: var(--text-faint); }

.chiprow { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 740px; margin-inline: auto; }
.chip { font-size: .86rem; padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }

.vhist { max-width: 820px; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.vhist__row { display: flex; gap: 1.2rem; padding: 1rem 1.2rem; background: var(--surface); }
.vhist__row + .vhist__row { border-top: 1px solid var(--border); }
.vhist__v { font-family: var(--font-mono); font-size: .86rem; color: var(--blue-bright); flex: none; width: 4rem; }
.vhist__t { color: var(--text-muted); }

.legal { max-width: 72ch; margin-inline: auto; }
.legal h3 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.legal h3:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); line-height: 1.8; }
.legal p + p { margin-top: .7rem; }
.legal a { color: var(--blue-bright); }


/* ----- Cinetaire, working on its own page ----- */
.cine { max-width: 1060px; margin-inline: auto; }
.cine-bar2 {
  display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.cine-add { display: flex; gap: .5rem; flex-wrap: wrap; }
.cine-add input, .cine-add select, .cine-search {
  padding: .6rem .8rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .9rem;
}
.cine-add input[name="title"] { min-width: 15rem; }
.cine-add input[name="total"] { width: 7.5rem; }
.cine-add input:focus, .cine-add select:focus, .cine-search:focus {
  outline: none; border-color: var(--blue);
}
.cine-tools { display: flex; gap: .5rem; align-items: center; }
.cine-search { min-width: 11rem; }
.cine-reset {
  padding: .6rem .8rem; border-radius: 10px; font-size: .82rem;
  background: none; border: 1px solid var(--border); color: var(--text-faint);
}
.cine-reset:hover { color: var(--text); border-color: var(--border-strong); }

.cine-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cine-chip {
  padding: .35rem .75rem; border-radius: 999px; font-size: .8rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.cine-chip:hover { color: var(--text); }
.cine-chip.on { background: var(--grad-blue); border-color: transparent; color: #fff; }

.cine-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cine-col {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.cine-col header { display: flex; align-items: baseline; justify-content: space-between; }
.cine-col h3 { font-size: 1.05rem; }
.cine-col header span { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.cine-colsub { font-size: .76rem; color: var(--text-faint); margin: .15rem 0 .8rem; }
.cine-stack { list-style: none; display: grid; gap: .6rem; }
.cine-empty { font-size: .84rem; color: var(--text-faint); padding: .6rem 0; }

.cine-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem .85rem;
}
.cine-card.is-seed { border-style: dashed; }
.cine-card__top { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; }
.cine-kind {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}
.cine-seedtag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 999px; padding: .1rem .4rem;
}
.cine-x { margin-left: auto; color: var(--text-faint); font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.cine-x:hover { color: #FB7185; }
.cine-card h4 { font-size: .98rem; margin-bottom: .2rem; }
.cine-prog { font-size: .8rem; color: var(--text-muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.cine-again { color: var(--blue-bright); }
.cine-bar { height: 4px; border-radius: 99px; background: var(--surface-2); margin-top: .5rem; overflow: hidden; }
.cine-bar i { display: block; height: 100%; background: var(--grad-blue); }
.cine-acts { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }
.cine-mini {
  font-size: .72rem; padding: .25rem .55rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.cine-mini:hover { color: var(--text); border-color: var(--border-strong); }
.cine-foot { margin-top: 1.1rem; text-align: center; font-size: .84rem; color: var(--text-faint); }

@media (max-width: 860px) { .cine-board { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cine-add input[name="title"] { min-width: 100%; }
  .cine-bar2, .cine-add, .cine-tools { width: 100%; }
  .cine-search { flex: 1; min-width: 0; }
}


/* ----- interface screens, drawn rather than photographed ----- */
.scrset {
  display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center;
  /* without this a flex row stretches every phone to the tallest one, and
     the shorter screens end in a long empty slab. The class is .scr and
     not .phone because .phone is already the store pages' device
     cluster, which has a fixed size -- these were inheriting it. */
  align-items: flex-start;
  margin-top: 1.4rem;
}
.scr { margin: 0; width: 212px; }
.scr__frame {
  position: relative; border-radius: 26px; padding: 8px;
  background: #0A0C12; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.scr__notch {
  position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 54px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.14);
}
.scr__screen {
  border-radius: 19px; background: var(--bg-soft);
  border: 1px solid var(--border); overflow: hidden; min-height: 268px;
  display: flex; flex-direction: column;
}
.pm-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 12px 9px; border-bottom: 1px solid var(--border);
}
.pm-top b { font-family: var(--font-display); font-size: .86rem; }
.pm-chip {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .08em;
  text-transform: uppercase; color: #061018;
  padding: .14rem .4rem; border-radius: 999px;
}
.pm-body { padding: 9px 10px; display: grid; gap: 7px; align-content: start; flex: 1; }

.pm-row {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 8px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .68rem; color: var(--text);
}
.pm-row.is-done { opacity: .55; }
.pm-tick {
  width: 11px; height: 11px; border-radius: 4px; flex: none;
  border: 1px solid var(--border-strong);
}
.pm-tick.is-on { background: var(--blue); border-color: transparent; }
.pm-main { display: grid; line-height: 1.25; min-width: 0; }
.pm-sub { font-size: .58rem; color: var(--text-faint); }
.pm-right { margin-left: auto; font-family: var(--font-mono); font-size: .58rem; color: var(--text-faint); }

.pm-bar { display: grid; gap: 4px; }
.pm-bar__t { display: flex; justify-content: space-between; font-size: .64rem; color: var(--text-muted); }
.pm-bar__t b { font-family: var(--font-mono); font-size: .58rem; color: var(--text-faint); font-weight: 400; }
.pm-bar__r { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pm-bar__r i { display: block; height: 100%; background: var(--grad-blue); }

.pm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pm-tile { border-radius: 8px; padding: 14px 8px; font-size: .62rem; color: #fff; }

.pm-chat { display: grid; gap: 6px; }
.pm-msg {
  justify-self: start; max-width: 85%; padding: 6px 9px; border-radius: 11px;
  font-size: .66rem; background: var(--surface); border: 1px solid var(--border);
}
.pm-msg.is-me { justify-self: end; background: var(--blue-deep); border-color: transparent; color: #fff; }

.pm-player { display: grid; gap: 6px; justify-items: center; text-align: center; }
.pm-art { width: 86px; height: 86px; border-radius: 12px; }
.pm-player b { font-size: .74rem; }
.pm-player .pm-bar__r { width: 100%; }
.pm-time { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-mono); font-size: .56rem; color: var(--text-faint); }
.pm-keys { display: flex; gap: 14px; align-items: center; color: var(--text-muted); font-size: .64rem; margin-top: 2px; }
.pm-keys .is-play { font-size: .9rem; color: var(--text); }

.pm-note {
  padding: 7px 8px; border-radius: 9px; font-size: .64rem; line-height: 1.5;
  background: var(--surface); border: 1px dashed var(--border-strong); color: var(--text-muted);
}

.scr figcaption { margin-top: .55rem; text-align: center; font-size: .72rem; color: var(--text-faint); }
.shotnote { margin: 1rem auto 0; max-width: 68ch; text-align: center; font-size: .84rem; color: var(--text-faint); }
.prod .scrset { margin-top: 1.6rem; }

/* ----- concept panels for the games ----- */
.keyart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin-inline: auto; }
.kacard { margin: 0; }
.kacard__art { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.kacard figcaption { margin-top: .5rem; text-align: center; font-size: .82rem; color: var(--text-faint); }
@media (max-width: 700px) { .keyart { grid-template-columns: 1fr; } }


/* ----- the hero's three screens ----- */
/* The old hero had a cluster like this showing products that did not
   exist. These three do. It is decorative, so it is aria-hidden and the
   screens are repeated in full further down the site. */
.scrcluster {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0; margin-top: 3rem; perspective: 1200px;
}
.scrcluster .scr { width: 196px; }
.scrcluster .scr figcaption { display: none; }
.scrcluster .scr:nth-child(1) {
  transform: translateX(42px) rotate(-7deg) scale(.9); transform-origin: bottom right; z-index: 1;
}
.scrcluster .scr:nth-child(2) { transform: translateY(-20px); z-index: 3; }
.scrcluster .scr:nth-child(3) {
  transform: translateX(-42px) rotate(7deg) scale(.9); transform-origin: bottom left; z-index: 1;
}
.scrcluster .scr__frame { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.scrcluster:hover .scr:nth-child(2) .scr__frame { transform: translateY(-8px); }
@media (max-width: 760px) {
  .scrcluster .scr:nth-child(1), .scrcluster .scr:nth-child(3) { display: none; }
  .scrcluster .scr:nth-child(2) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scrcluster .scr__frame { transition: none; }
}
