/* =========================================================
   KryvexCore — global stylesheet
   Single file used by every page. Edit tokens in :root.
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --surface: #14161d;
  --surface-2: #1a1d26;
  --border: #262a36;
  --border-soft: #1e222c;

  --text: #f4f5f8;
  --text-muted: #9aa1b0;
  --text-faint: #6b7280;

  --brand: #7c6cff;
  --brand-2: #22d3ee;
  --brand-ink: #ffffff;
  --gradient: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --glow: 0 0 0 1px rgba(124, 108, 255, .35), 0 18px 50px -12px rgba(124, 108, 255, .45);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .7);

  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 10vw, 120px);
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --border: #e2e6ee;
  --border-soft: #eceff4;

  --text: #14161d;
  --text-muted: #55607a;
  --text-faint: #8a93a6;

  --glow: 0 0 0 1px rgba(124, 108, 255, .25), 0 18px 50px -12px rgba(124, 108, 255, .3);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 12px 30px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 30px 70px -30px rgba(16, 24, 40, .2);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }

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

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 7vw, 80px); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.section-head.center .eyebrow::before { display: none; }

.lead { font-size: 1.08rem; margin-top: 14px; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gradient);
  color: var(--brand-ink);
  box-shadow: 0 12px 30px -12px rgba(124, 108, 255, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 108, 255, .7); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--surface); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  color: var(--text);
}
.brand__word {
  font-family: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .06em;
  transform: skewX(-10deg);
  transform-origin: left center;
}
.brand__tag {
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .5rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: .12em;
}
.brand:hover .brand__word { color: var(--brand-2); transition: color .15s ease; }
@media (max-width: 520px) {
  .brand__word { font-size: 1.1rem; }
  .brand__tag { letter-spacing: .2em; font-size: .46rem; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger span { top: 50%; transform: translate(-50%, -50%); }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__actions .btn--primary { display: none; }
  .nav__links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav__cta-mobile { margin-top: 8px; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 150px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 30% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(124, 108, 255, .35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% 35%;
  height: 560px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; max-width: 560px; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: .9rem;
}
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-2);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }

.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  color: var(--text-muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}

/* ---------- Steps / process ---------- */
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.step__num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--brand-ink);
  background: var(--gradient);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .93rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats div { background: var(--surface); padding: 28px 22px; text-align: center; }
.stats b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stats span { font-size: .88rem; color: var(--text-faint); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

/* mock phone frame used on Work / Home */
.phone {
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  max-width: 260px;
  margin-inline: auto;
}
.phone__bar { height: 6px; width: 60px; border-radius: 3px; background: var(--border); margin-inline: auto; }
.phone__screen {
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
}
.phone__screen .dot {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient);
  margin-inline: auto;
}
.phone__screen small { color: var(--text-faint); }

/* ---------- Work cards ---------- */
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.work-card__cover {
  aspect-ratio: 16 / 10;
  background: var(--gradient);
  position: relative;
  display: grid;
  place-items: center;
}
.work-card__cover span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  mix-blend-mode: overlay;
  letter-spacing: .04em;
}
.work-card__body { padding: 22px; display: grid; gap: 8px; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(closest-side at 15% 0%, rgba(124, 108, 255, .25), transparent 60%),
    radial-gradient(closest-side at 90% 100%, rgba(34, 211, 238, .18), transparent 60%),
    var(--surface);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 520px; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field input,
.field textarea,
.field select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--text-faint); }
.form__status { font-size: .92rem; font-weight: 500; }
.form__status.is-ok { color: #34d399; }
.form__status.is-err { color: #f87171; }

.contact-methods { display: grid; gap: 14px; }
.contact-methods a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.contact-methods a:hover { border-color: var(--brand); transform: translateX(2px); }
.contact-methods .ic {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-2);
}
.contact-methods b { display: block; font-size: .95rem; }
.contact-methods span { font-size: .85rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding-block: clamp(44px, 7vw, 72px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.site-footer a { color: var(--text-muted); font-size: .92rem; }
.site-footer a:hover { color: var(--text); }
.site-footer li { margin-bottom: 8px; }
.footer-about .brand { color: var(--text); }
.footer-about .brand__word { font-size: 1.45rem; }
.footer-about p { font-size: .92rem; margin-top: 14px; max-width: 280px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-faint);
}

/* ---------- Reveal on scroll ----------
   Progressive enhancement: content is fully visible by default.
   Only when JS adds `.js` to <html> do elements start hidden and animate in,
   so a JS failure can never leave the page blank. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(56px, 9vw, 100px) clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -5%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(124, 108, 255, .22), transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 680px; }
.page-hero p { font-size: 1.08rem; margin-top: 14px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-soft); border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   V2 — product-studio identity
   Editorial section markers, status badges, product cards,
   a pure-CSS product mockup, and honest empty states.
   Every component defaults to the studio's purple/cyan accent
   via --accent/--accent-2, and a product can override those two
   variables to get its own visual identity (see .accent-statchase).
   ========================================================= */

.accent-statchase { --accent: #f2b705; --accent-2: #ffd873; }

/* numbered editorial eyebrow, e.g. "01 — Featured product" */
.eyebrow-index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.eyebrow-index b { color: var(--brand-2); font-weight: 700; }
.eyebrow-index::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.eyebrow-index.center { justify-content: center; }
.eyebrow-index.center::after { display: none; }

/* status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex: none; }
.status--live { color: #34d399; border-color: color-mix(in srgb, #34d399 40%, var(--border)); }
.status--live::before { background: #34d399; }
.status--dev { color: var(--accent, var(--brand-2)); border-color: color-mix(in srgb, var(--accent, var(--brand-2)) 40%, var(--border)); }
.status--dev::before { background: var(--accent, var(--brand-2)); }
.status--soon { color: var(--text-muted); }
.status--exp { color: #f59e0b; border-color: color-mix(in srgb, #f59e0b 40%, var(--border)); }
.status--exp::before { background: #f59e0b; }

/* ---------- Featured product ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.featured__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.featured__name {
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.featured__visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent, var(--brand)) 18%, transparent), transparent 55%),
    var(--surface);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  place-items: center;
}
.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
}
.featured__link svg { transition: transform .2s ease; }
.featured__link:hover svg { transform: translateX(4px); }

/* ---------- Editorial product cards ---------- */
.product-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover { border-color: color-mix(in srgb, var(--accent, var(--brand)) 45%, var(--border)); transform: translateY(-3px); }
.product-card__visual {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent, var(--brand)) 22%, transparent), transparent 60%),
    var(--bg-2);
}
.product-card__visual > * { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-card__visual > * { transform: scale(1.035); }
.product-card__body { padding: 26px; display: grid; gap: 12px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; }
.product-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-muted);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.product-card:hover .product-card__arrow {
  transform: translate(3px, -3px);
  border-color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 16%, transparent);
  color: var(--text);
}
.product-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.product-card__desc { font-size: .94rem; }

/* ---------- App mock (pure CSS product visual — no imagery needed) ---------- */
.app-mock {
  width: min(280px, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.app-mock__bar { width: 60px; height: 5px; border-radius: 3px; background: var(--border); margin-inline: auto; }
.app-mock__screen {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  gap: 4px;
  overflow: hidden;
}
.app-mock__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.app-mock__chip {
  background: color-mix(in srgb, var(--accent, var(--brand)) 20%, transparent);
  color: var(--accent, var(--brand-2));
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: .66rem;
}
.app-mock__prompt { font-size: .82rem; color: var(--text-muted); line-height: 1.4; margin-top: 14px; }
.app-mock__player { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.app-mock__num {
  margin-top: auto;
  text-align: center;
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent, var(--brand)), var(--accent-2, var(--brand-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-mock__actions { display: flex; gap: 10px; margin-top: 10px; }
.app-mock__btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-muted);
}
.app-mock__btn--accent {
  background: linear-gradient(135deg, var(--accent, var(--brand)), var(--accent-2, var(--brand-2)));
  color: #17110a;
  border-color: transparent;
}
.app-mock__streak { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-faint); margin-top: 12px; }

/* ---------- Honest empty state (Lab, Journal — no fabricated content) ---------- */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: var(--text-muted);
}
.empty-state svg { color: var(--text-faint); }
.empty-state h3 { color: var(--text); }

/* ---------- Numbered index rows (features, journal list, timeline) ---------- */
.index-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--border-soft);
}
.index-row:last-child { border-bottom: 1px solid var(--border-soft); }
.index-row__n { font-family: "Space Grotesk", sans-serif; color: var(--text-faint); font-weight: 600; }
@media (max-width: 560px) { .index-row { grid-template-columns: 32px 1fr; } }
