/* =========================================================
   Console Crew — Homepage (app showcase)
   Plain CSS, no build step. Tokens documented in DESIGN_SYSTEM.md
   ========================================================= */

:root {
  /* colour */
  --bg: #0B0F17;
  --bg-raised: #111724;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #E8EBF4;
  --muted: #95A0B8;
  --faint: #5F6A82;
  --violet: #8B5CF6;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, #8B5CF6 0%, #3B82F6 50%, #22D3EE 100%);

  /* type */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* shape + motion */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* horizontal overflow is clipped on <html>; 'hidden' here would make body a scroll container and break position:sticky */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anchor { display: block; position: relative; top: -88px; visibility: hidden; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; }
.glow.g1 { width: 620px; height: 620px; background: var(--violet); top: -260px; left: -180px; }
.glow.g2 { width: 520px; height: 520px; background: var(--blue); top: 80px; right: -220px; opacity: .3; }
.glow.g3 { width: 560px; height: 560px; background: var(--cyan); top: 1100px; left: 30%; opacity: .12; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: #fff; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 2.875rem); line-height: 1.12; font-weight: 750; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .8125rem; font-weight: 500; color: var(--muted);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }

.section { padding: var(--s10) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: var(--s4); font-size: 1.0625rem; }
.kicker { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--s3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .975rem; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn i { font-size: .95em; }
.btn-primary {
  color: #fff; background: var(--grad); background-size: 140% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -8px rgba(59, 130, 246, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-glass {
  color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 15, 23, .72); border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .9rem; box-shadow: 0 6px 20px -6px rgba(99,102,241,.8); }
.nav-links { display: flex; align-items: center; gap: var(--s1); }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: .9375rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--surface-hover); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }

@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s2);
    background: rgba(17, 23, 36, .96); border: 1px solid var(--border); border-radius: var(--r-lg);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 16px; border-radius: var(--r-md); }
}
.nav-links .mobile-only { display: none; }
@media (max-width: 900px) { .nav-links .mobile-only { display: block; } }

/* ---------- hero ---------- */
.hero { padding: calc(72px + var(--s8)) 0 var(--s7); position: relative; }
.marquee + .anchor + .section { padding-top: var(--s9); }

/* typewriter line under the headline */
.hero-copy h1 .reveal-words { display: block; }
.typed-wrap { display: block; min-height: 1.1em; white-space: nowrap; }
.typed { display: inline-block; padding-bottom: .06em; }
.typed::after {
  content: ''; display: inline-block; width: .07em; height: .9em; margin-left: .08em; vertical-align: -0.06em;
  background: var(--cyan); border-radius: 2px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* marquee band */
.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  border-block: 1px solid var(--border); background: rgba(255,255,255,.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; color: var(--muted);
  transition: color .2s;
}
.marquee-track span:hover { color: #fff; }
.marquee-track span::after { content: '\2726'; margin: 0 clamp(20px, 3vw, 40px); font-size: .8em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--s8); }
.hero-copy h1 { margin: var(--s5) 0; }
.hero-copy .lead { margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-proof { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s7); color: var(--muted); font-size: .9rem; }
.icon-stack { display: flex; }
.icon-stack img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--bg); margin-left: -10px; background: var(--bg-raised); }
.icon-stack img:first-child { margin-left: 0; }
.hero-proof strong { color: #fff; font-weight: 600; }

/* word-by-word headline reveal */
.reveal-words .w { display: inline-block; opacity: 0; transform: translateY(.4em); animation: wordIn .7s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* ---------- device mockup ---------- */
.device-stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
.device-halo { position: absolute; width: min(420px, 90vw); height: min(420px, 90vw); border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .35; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2a3142, #11151f 40%, #1c2230);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.05);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(139,92,246,.55), transparent 60%),
    radial-gradient(120% 70% at 100% 100%, rgba(34,211,238,.35), transparent 60%),
    #0d1220;
  padding: 14px 18px 18px; display: flex; flex-direction: column;
}
.phone-island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; z-index: 2; }
.status-bar { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 600; color: #fff; padding: 2px 6px 0; }
.status-bar span:last-child { display: flex; gap: 5px; align-items: center; }
.phone-clock { text-align: center; margin: 30px 0 22px; color: #fff; }
.phone-clock b { display: block; font-family: var(--font-display); font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.phone-clock span { font-size: .75rem; color: rgba(255,255,255,.7); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-tile img { width: 100%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); }
.app-tile span { font-size: .6rem; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-tile { opacity: 0; transform: scale(.6); animation: tileIn .55s var(--ease) forwards; animation-delay: calc(.6s + var(--i) * .07s); }
@keyframes tileIn { to { opacity: 1; transform: none; } }
.dock {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px;
  border-radius: 26px; background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.dock i { aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; font-size: .95rem; color: #fff; background: rgba(255,255,255,.14); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: var(--r-md);
  background: rgba(17, 23, 36, .7); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  font-size: .8rem; line-height: 1.3; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip img { width: 34px; height: 34px; border-radius: 9px; }
.float-chip b { display: block; color: #fff; font-weight: 600; }
.float-chip small { color: var(--muted); font-size: .72rem; }
.float-chip.c1 { top: 3%; left: -4%; }
.float-chip.c2 { top: 46%; right: -6%; animation-delay: -2s; }
.float-chip.c3 { bottom: 10%; left: 2%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- filters ---------- */
.apps-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.apps-toolbar .section-head { margin-bottom: 0; }
.filters { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); }
.filter {
  min-height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s;
}
.filter:hover { color: #fff; }
.filter[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.filter .count { margin-left: 6px; font-weight: 500; color: var(--faint); }

/* ---------- app cards ---------- */
.app-grid-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.app-card {
  --accent: #8B5CF6; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .3s;
  isolation: isolate;
}
/* glowing border that follows the pointer */
.app-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
/* soft inner wash in the app's colour */
.app-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.app-card:hover, .app-card:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px rgba(255,255,255,.04);
}
.app-card:hover::before, .app-card:hover::after, .app-card:focus-within::before, .app-card:focus-within::after { opacity: 1; }
.app-card[hidden] { display: none; }

.app-card-top { display: flex; align-items: center; gap: var(--s4); }
.app-icon {
  width: 72px; height: 72px; flex: none; border-radius: 22%;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .45s var(--ease);
}
.app-card:hover .app-icon { transform: scale(1.06) rotate(-3deg); }
.app-card h3 { margin-bottom: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.app-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.features { display: flex; flex-wrap: wrap; gap: 6px; }
.features li { font-size: .75rem; color: var(--muted); padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.04); border: 1px solid var(--border); }

.play-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 48px; padding: 0 8px 0 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  font-weight: 600; font-size: .9rem; color: #fff;
  transition: background-color .25s, border-color .25s;
}
.play-link span { display: inline-flex; align-items: center; gap: 10px; }
.play-link .fa-google-play { font-size: 1rem; color: color-mix(in srgb, var(--accent) 60%, #fff); }
.play-link .arrow {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); transition: transform .3s var(--ease), background-color .3s;
}
.play-link:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.play-link:hover .arrow { transform: translate(2px, -2px); background: var(--accent); color: #0B0F17; }

/* "more apps" card */
.app-card.more { align-items: flex-start; justify-content: center; text-align: left; background: linear-gradient(140deg, rgba(139,92,246,.16), rgba(34,211,238,.08)); --accent: #3B82F6; }
.app-card.more .more-ico { width: 72px; height: 72px; border-radius: 22%; display: grid; place-items: center; font-size: 1.6rem; background: var(--grad); color: #fff; }

/* ---------- studio principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.principle { padding: var(--s6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.principle .p-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s5); font-size: 1.1rem; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); }
.principle h3 { margin-bottom: var(--s2); }
.principle p { color: var(--muted); font-size: .95rem; }
.principle a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: linear-gradient(130deg, #1b1446 0%, #0f1f4a 50%, #08303d 100%);
  border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s6);
}
.cta-band::before { content: ''; position: absolute; width: 480px; height: 480px; right: -120px; top: -200px; border-radius: 50%; background: var(--grad); filter: blur(100px); opacity: .45; }
.cta-band > * { position: relative; }
.cta-band p { color: rgba(232,235,244,.75); margin-top: var(--s3); max-width: 32em; }

/* ---------- footer / developer hub ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s9) 0 var(--s6); margin-top: var(--s10); background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s7); }
.footer-about p { color: var(--muted); font-size: .925rem; margin: var(--s4) 0 var(--s5); max-width: 28em; }
.footer-col h4 { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--s4); }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: .925rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-line i { width: 16px; margin-top: 5px; color: var(--faint); font-size: .85rem; }
.socials { display: flex; gap: var(--s2); }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: color .2s, background-color .2s, transform .2s var(--ease); }
.socials a:hover { color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--border); color: var(--faint); font-size: .8125rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app-grid-main { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-chip.c2 { right: 0; }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(72px + var(--s8)); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .device-stage { min-height: 520px; }
  .principles { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .section { padding: var(--s9) 0; }
}
@media (max-width: 640px) {
  .app-grid-main { grid-template-columns: 1fr; }
  .apps-toolbar { flex-direction: column; align-items: stretch; }
  .filters { align-self: stretch; }
  .filter { flex: 1; padding: 0 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone { width: 250px; }
  .float-chip { font-size: .72rem; padding: 8px 12px 8px 8px; }
  .float-chip img { width: 28px; height: 28px; }
  .float-chip.c1 { left: 0; top: 2%; }
  .float-chip.c2 { display: none; }
  .float-chip.c3 { left: 0; bottom: 6%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .section { padding: var(--s8) 0; }
}
@media (max-width: 380px) {
  .float-chip small { display: none; }
}

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