/* ==========================================================================
   Paruto Apps — design tokens
   Dark, editorial base + Apple HIG refinements: Liquid Glass controls that
   float above content, SF typography, layered app icons, concentric radii.
   ========================================================================== */
:root {
  --bg: #060608;
  --bg-2: #0d0d10;
  --bg-3: #15151a;
  --panel: #0b0b0e;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --hi: rgba(255, 255, 255, 0.07);           /* top-edge highlight on panels */
  --spot: rgba(255, 255, 255, 0.055);        /* cursor spotlight */
  --text: #f5f5f7;
  --muted: #98989f;
  --faint: #5a5a62;
  --shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9);

  /* Liquid Glass */
  --glass-fill: rgba(30, 30, 34, 0.42);
  --glass-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  --glass-rim: rgba(255, 255, 255, 0.10);
  --glass-spec: rgba(255, 255, 255, 0.55);   /* specular edge */
  --glass-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);

  /* Apple system colours (dark) */
  --s-live: #30d158;
  --s-beta: #ffd60a;
  --s-dev: #0a84ff;
  --s-soon: #bf5af2;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Geist Mono", SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: clamp(24px, 2.6vw, 34px);        /* panels; inner radii are derived from this */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* fluid, slightly bouncy (HIG motion) */
  color-scheme: dark;
}
/* Light theme is opt-in via the nav toggle; dark is the default for everyone */
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --bg-3: #ececf0;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.13);
  --hi: rgba(255, 255, 255, 1);
  --spot: rgba(0, 0, 30, 0.035);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --shadow: 0 50px 100px -50px rgba(20, 20, 50, 0.35);
  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
  --glass-rim: rgba(0, 0, 0, 0.06);
  --glass-spec: rgba(255, 255, 255, 1);
  --glass-shadow: 0 10px 40px -14px rgba(0, 0, 40, 0.25);
  --s-live: #34c759;
  --s-beta: #ff9f0a;
  --s-dev: #007aff;
  --s-soon: #af52de;
  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;                 /* HIG body size */
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--s-dev); color: #fff; }
:focus-visible { outline: 2px solid var(--s-dev); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.label { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Liquid Glass material
   Translucent fill that blurs + saturates what's behind it, a soft tint,
   a hairline rim and a specular highlight that catches the top-left edge.
   ========================================================================== */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-tint), var(--glass-fill);
  backdrop-filter: blur(22px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.06);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 1px 1px -0.5px var(--glass-spec), var(--glass-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--glass-spec), transparent 32%, transparent 68%, color-mix(in srgb, var(--glass-spec) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--bg-3); }
}

/* Buttons — capsules (HIG) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .25s, opacity .25s, scale .35s var(--spring), box-shadow .4s var(--ease);
}
.btn:hover { scale: 1.03; }
.btn:active { scale: .97; }
.btn.primary {
  color: var(--bg); background: var(--text);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--text) 45%, transparent);
}
.btn.ghost { color: var(--text); }
.btn svg { width: 14px; height: 14px; }

/* ==========================================================================
   Nav — floating glass capsule that compacts on scroll
   ========================================================================== */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  padding: 6px 6px 6px 16px; border-radius: 999px;
  transition: gap .5s var(--spring), padding .5s var(--spring), translate .6s var(--ease);
  animation: drop .9s .1s var(--ease) both;
}
@keyframes drop { from { opacity: 0; translate: -50% -16px; } }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.brand .dim { color: var(--muted); font-weight: 400; }
.mark { position: relative; width: 16px; height: 18px; border-radius: 5px; background: var(--text); flex: none; }
.mark::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); top: 4px; right: 3.5px; }
.nav-links {
  display: flex; gap: 2px; font-size: 14px; overflow: hidden; max-width: 260px;
  transition: max-width .55s var(--spring), opacity .3s;
}
.nav-links a { padding: 7px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--line); }
.nav-cta { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--text); color: var(--bg); transition: opacity .2s, scale .35s var(--spring); white-space: nowrap; }
.nav-cta:hover { scale: 1.04; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted);
  transition: color .2s, background-color .2s, rotate .6s var(--spring);
}
.theme-toggle:hover { color: var(--text); background: var(--line); }
.theme-toggle:active { rotate: 30deg; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav.compact { gap: 12px; }
.nav.compact .nav-links { max-width: 0; opacity: 0; }
@media (max-width: 560px) {
  .nav { width: calc(100% - 2 * var(--gutter)); justify-content: space-between; }
  .nav-links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(128px, 16vw, 196px); text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -320px; width: min(1200px, 140vw); height: 760px; translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 10%, transparent), transparent);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.chip-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 32px;
  border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: color .2s, scale .35s var(--spring);
  animation: rise 1s var(--ease) both;
}
.chip-link:hover { color: var(--text); scale: 1.03; }
.chip-link .mono { font-size: 12px; }
.chip-sep { width: 1px; height: 12px; background: var(--line-2); }
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--s-live); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--s-live); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { opacity: .9; scale: .6; } to { opacity: 0; scale: 1.9; } }

h1 {
  margin: 0; max-width: 14ch;
  font-size: clamp(52px, 9.6vw, 140px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 .w {
  display: inline-block; padding: 0 0.02em 0.08em;
  background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 50%, var(--bg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s var(--ease) both;
}
h1 .w.serif { font-weight: 400; font-size: 1.1em; line-height: 0.8; letter-spacing: -0.02em; padding-right: 0.06em; }
@keyframes rise { from { opacity: 0; translate: 0 0.4em; filter: blur(10px); } }

.sub { margin: 28px 0 0; max-width: 46ch; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: var(--muted); text-wrap: pretty; animation: rise 1.1s .35s var(--ease) both; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 36px; animation: rise 1.1s .45s var(--ease) both; }

/* Tilted wall of screenshots */
.wall {
  position: relative; z-index: -1; height: clamp(300px, 46vw, 600px); margin-top: clamp(-24px, -2vw, 0px);
  perspective: 1600px; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect; -webkit-mask-composite: source-in;
  animation: fade 1.6s .5s var(--ease) both;
}
.wall-plane {
  position: absolute; left: 50%; top: 4%; width: 200%; translate: -50% 0;
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  transform: rotateX(46deg) rotateZ(-10deg); transform-origin: 50% 0;
}
.wall-track { display: flex; width: max-content; animation: marquee var(--dur, 80s) linear infinite; }
.wall-row:nth-child(even) .wall-track { animation-direction: reverse; }
@keyframes marquee { to { translate: -50% 0; } }
.tile {
  flex: none; width: clamp(220px, 24vw, 360px); aspect-ratio: 16 / 10; margin-right: clamp(12px, 1.4vw, 20px);
  border-radius: 16px; overflow: hidden; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile.poster { display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%), var(--bg-2); }
.tile.poster .app-icon { --s: clamp(52px, 5vw, 72px); }
.tile.poster .nm { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Stats bar */
.statsbar { margin-top: clamp(8px, 2vw, 24px); }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 22px clamp(12px, 2vw, 24px); border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.stats dd { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
@keyframes fade { from { opacity: 0; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { margin-top: clamp(96px, 12vw, 168px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.section-head h2 em { font-size: 1.08em; }

/* Segmented control with a sliding glass thumb (HIG) */
.filters {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.filters::-webkit-scrollbar { display: none; }
.seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: inset 0 1px 0.5px var(--glass-spec), inset 0 0 0 1px var(--glass-rim), 0 4px 12px -4px rgba(0,0,0,.35);
  transition: translate .55s var(--spring), width .55s var(--spring);
}
.filter {
  position: relative; z-index: 1; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; transition: color .25s;
}
.filter sup { font-family: var(--mono); color: var(--faint); margin-left: 4px; font-size: 10px; }
.filter:hover, .filter[aria-selected="true"] { color: var(--text); }

/* ==========================================================================
   Layered app icon (Liquid Glass-style)
   ========================================================================== */
.app-icon {
  --s: 36px;
  position: relative; display: grid; place-items: center; flex: none; width: var(--s); aspect-ratio: 1;
  border-radius: 23%; font-size: calc(var(--s) * .52); line-height: 1;
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, .42), transparent 55%),
    linear-gradient(155deg, color-mix(in srgb, var(--a) 88%, #fff), color-mix(in srgb, var(--b) 88%, #000));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -2px 6px rgba(0, 0, 0, .2),
    inset 0 0 0 .5px rgba(255, 255, 255, .3),
    0 calc(var(--s) * .14) calc(var(--s) * .4) calc(var(--s) * -.16) color-mix(in srgb, var(--a) 70%, transparent);
}
.app-icon > span { filter: drop-shadow(0 calc(var(--s) * .04) calc(var(--s) * .06) rgba(0, 0, 0, .3)); }

/* ==========================================================================
   Index list
   ========================================================================== */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; align-items: center; gap: 24px; isolation: isolate;
  grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, .8fr) 150px 28px;
  padding: 22px 14px; border-bottom: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: 18px; opacity: 0; scale: .985;
  transition: opacity .45s var(--ease), scale .45s var(--spring);
  background: linear-gradient(90deg, color-mix(in srgb, var(--a) 14%, transparent), color-mix(in srgb, var(--a) 3%, transparent) 70%);
}
.row:hover::before, .row:focus-visible::before { opacity: 1; scale: 1; }
.row-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.row-name { display: flex; align-items: center; gap: 14px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.03em; transition: translate .5s var(--spring); }
.row-name .app-icon { --s: 40px; }
.row:hover .row-name { translate: 6px 0; }
.row-tag { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-cat { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-arrow {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--faint);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background-color .3s, scale .4s var(--spring);
}
.row-arrow svg { width: 13px; height: 13px; rotate: -45deg; transition: rotate .5s var(--spring); }
.row:hover .row-arrow { color: var(--bg); background: var(--text); scale: 1.1; }
.row:hover .row-arrow svg { rotate: 0deg; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 13px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, transparent) 22%, transparent); }
.s-live { --c: var(--s-live); }
.s-beta { --c: var(--s-beta); }
.s-in-development { --c: var(--s-dev); }
.s-coming-soon { --c: var(--s-soon); }

@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr) auto 28px; gap: 12px; padding: 16px 6px; }
  .row-num, .row-tag, .row-cat { display: none; }
  .row-name .app-icon { --s: 36px; }
}
@media (max-width: 400px) { .row .status { font-size: 0; gap: 0; } }

/* Cursor-following preview (glass) */
.peek {
  position: fixed; top: 0; left: 0; z-index: 50; width: 320px; aspect-ratio: 16 / 10;
  border-radius: 20px; pointer-events: none; padding: 5px;
  opacity: 0; scale: .88; rotate: -3deg; transition: opacity .3s var(--ease), scale .5s var(--spring), rotate .5s var(--spring);
}
.peek.on { opacity: 1; scale: 1; rotate: 0deg; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; } /* concentric: 20 − 5 */
.peek .poster-mini { width: 100%; height: 100%; border-radius: 15px; display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--a) 45%, transparent), transparent), var(--bg-2); }
.peek .poster-mini .app-icon { --s: 72px; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* ==========================================================================
   Showcase panels
   ========================================================================== */
.apps { display: grid; gap: clamp(16px, 2vw, 24px); }
.panel {
  position: relative; border-radius: var(--radius);
  background:
    radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 45%),
    var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi);
}
.app {
  padding: clamp(24px, 4.5vw, 64px); scroll-margin-top: 96px; overflow: hidden;
  background:
    radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 45%),
    radial-gradient(70% 70% at var(--gx, 85%) 0%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%),
    radial-gradient(50% 60% at var(--gx2, 100%) 100%, color-mix(in srgb, var(--b) 9%, transparent), transparent 70%),
    var(--panel);
}
.app:nth-child(even) { --gx: 15%; --gx2: 0%; }
.app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .55;
  mask-image: radial-gradient(60% 70% at var(--gx, 85%) 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at var(--gx, 85%) 30%, #000, transparent 75%);
}
.app-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.app:nth-child(even) .app-info { order: 2; }

.app-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.app-top .app-icon { --s: 60px; }
.app-num { font-size: 12px; color: var(--faint); }
.app h3 { margin: 0; font-size: clamp(38px, 4.8vw, 64px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.app-tagline { margin: 16px 0 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.38; color: var(--muted); letter-spacing: -0.02em; max-width: 32ch; text-wrap: pretty; }
.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
  background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line);
}
.app-desc { margin: 24px 0 0; color: color-mix(in srgb, var(--text) 78%, var(--muted)); max-width: 52ch; text-wrap: pretty; }
.app-hl { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.app-hl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.app-hl li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 11px no-repeat,
              linear-gradient(155deg, var(--a), var(--b));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 4px 10px -4px color-mix(in srgb, var(--a) 70%, transparent);
}
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Visual composition with 3D tilt */
.app-visual { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.app-visual.has-phone .tilt { padding: 0 clamp(14px, 4%, 40px) clamp(36px, 8%, 72px) 0; }
.glow {
  position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 45%, transparent), color-mix(in srgb, var(--b) 12%, transparent) 60%, transparent);
  filter: blur(48px);
}
.frame { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.browser {
  border-radius: 16px; overflow: hidden; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.bar { position: relative; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: color-mix(in srgb, var(--bg-3) 85%, transparent); border-bottom: 1px solid var(--line); }
.bar i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.bar i:nth-child(1) { background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.bar .url { position: absolute; left: 50%; translate: -50% 0; max-width: 55%; padding: 3px 12px; border-radius: 7px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 25%; min-width: 112px; padding: 5px;
  border-radius: clamp(22px, 3.2vw, 38px); background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #3a3a3c, 0 0 0 3px #1c1c1e, inset 0 1px 0 rgba(255,255,255,.12), 0 40px 80px -24px rgba(0, 0, 0, .85);
  transform: translateZ(60px);
}
.phone::before { content: ""; position: absolute; z-index: 2; top: 3.4%; left: 50%; translate: -50% 0; width: 30%; aspect-ratio: 3.4; border-radius: 99px; background: #000; }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: clamp(17px, 2.8vw, 33px); } /* concentric with bezel */
.app-visual.phone-only .phone { position: relative; width: min(300px, 62%); margin: 0 auto; transform: none; }

.poster { cursor: default; }
.poster .stage {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; align-content: center; gap: 20px; overflow: hidden;
  background: radial-gradient(70% 80% at 50% 115%, color-mix(in srgb, var(--a) 40%, transparent), transparent 70%), var(--bg-2);
}
.poster .stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
}
.poster .app-icon { --s: clamp(96px, 11vw, 132px); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.poster .soon { position: relative; font-size: 12px; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 999px; }

/* Gallery strip */
.strip { position: relative; margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); }
.strip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.strip-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.strip-row::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: none; height: clamp(88px, 10vw, 124px); scroll-snap-align: start; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in;
  transition: scale .45s var(--spring), box-shadow .45s var(--ease);
}
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.thumb:hover { scale: 1.04; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.thumb img, .thumb video { height: 100%; width: auto; max-width: none; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app:nth-child(even) .app-info { order: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: clamp(96px, 12vw, 168px); }
.cta {
  padding: clamp(32px, 6vw, 88px); text-align: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 45%),
    radial-gradient(60% 90% at 50% 120%, color-mix(in srgb, var(--s-dev) 18%, transparent), transparent 70%),
    var(--panel);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%);
}
.cta h2 { margin: 16px 0 0; font-size: clamp(34px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.cta h2 em { font-size: 1.08em; }
.footer-email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 500; color: var(--bg); background: var(--text);
  box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--text) 50%, transparent);
  transition: scale .4s var(--spring);
}
.footer-email:hover { scale: 1.04; }
.footer-email svg { width: 16px; height: 16px; transition: translate .4s var(--spring); }
.footer-email:hover svg { translate: 3px 0; }
.wordmark {
  margin-top: clamp(48px, 8vw, 112px); font-size: clamp(88px, 24vw, 360px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.76;
  white-space: nowrap; user-select: none; text-align: center; overflow: hidden; padding-bottom: 0.04em;
  background: linear-gradient(180deg, var(--line-2), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 72px;
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  animation: fade .3s var(--ease) both;
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: zoom .5s var(--spring) both; }
.lightbox img, .lightbox video { max-width: min(1400px, 100%); max-height: calc(100dvh - 160px); width: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px -30px #000; }
.lightbox figcaption { font-size: 14px; color: #a1a1a6; }
@keyframes zoom { from { opacity: 0; scale: .94; } }
.lb-btn { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: scale .35s var(--spring); }
.lb-btn:hover { scale: 1.08; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 30px; left: 24px; margin: 0; font-size: 12px; color: #a1a1a6; }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 54px); } .lb-next { right: calc(50% - 54px); }
}

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; translate: 0 32px; filter: blur(6px); transition: opacity 1s var(--ease), translate 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--bg-3); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
