/* ============================================================
   Friends & Robots — Marketing site
   Layered on css/tokens.css (tokens + Quicksand)
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/38bce201.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/76967beb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/8fff5075.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/99396d02.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/a74d92bf.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/4c721c37.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/108d3685.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/38bce201.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/76967beb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/8fff5075.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/99396d02.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/a74d92bf.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/4c721c37.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/108d3685.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/38bce201.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/76967beb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/8fff5075.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/99396d02.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/a74d92bf.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/4c721c37.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/108d3685.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/38bce201.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/76967beb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/8fff5075.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/99396d02.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/a74d92bf.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/4c721c37.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/108d3685.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cf7a8f42.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/f586a7f3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/349a9ac1.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bfefbb2c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/316d7575.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/743fbd01.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cf7a8f42.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/f586a7f3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/349a9ac1.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bfefbb2c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/316d7575.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/743fbd01.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/cf7a8f42.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/f586a7f3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/349a9ac1.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/bfefbb2c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/316d7575.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/743fbd01.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* Marketing keeps the brand tokens but maps display→Quicksand, body→Inter */
  --font-display: "Quicksand", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ink: #0C1015;            /* deepest bg */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* accents pulled straight from the DS */
  --o: #F97316;              /* orange */
  --o-soft: rgba(249,115,22,0.10);
  --t: #6FBCD9;              /* teal/blue */
  --t-soft: rgba(111,188,217,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--fg-1); }
p { margin: 0; color: var(--fg-2); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--o); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              backdrop-filter var(--dur-base) var(--ease-standard);
}
.nav.scrolled {
  background: rgba(12,16,21,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-1);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; width: 100%; }

.brandmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brandmark .brand-logo { height: 22px; width: auto; display: block; }
.footer-brand .brandmark .brand-logo { height: 26px; }

/* .nav-links are styled in the shared css/header.css. The @640 hide stays below. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.btn-primary {
  background: var(--o);
  color: #fff;
  padding: 11px 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-glow-orange);
}
.btn-primary:hover { background: var(--accent-pressed); color: #fff; }
.btn-ghost-lg {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
  padding: 11px 18px;
}
.btn-ghost-lg:hover { background: rgba(255,255,255,0.08); border-color: var(--border-active); }
.nav .btn-primary { padding: 9px 16px; font-size: 14px; }
.nav-cta { flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 80px;
  overflow: hidden;
}
/* ambient blooms */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 620px; height: 620px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(249,115,22,0.22), transparent 68%);
}
.hero::after {
  width: 680px; height: 680px;
  top: -60px; right: -200px;
  background: radial-gradient(circle, rgba(111,188,217,0.16), transparent 68%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.hero-inner { max-width: 580px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* hero video frame */
.hero-media {
  position: relative;
  margin-top: 0;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #12161d;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.03) inset;
}
.hero-media { min-width: 0; max-width: 100%; }
.hero-media .hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--fg-3);
  text-align: center;
}
.hero-media-ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  transition: opacity .45s ease;
}
.hero-media-ph.is-loaded {
  opacity: 0;
  pointer-events: none;
}
.hero-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--t);
  animation: hero-spin 0.8s linear infinite;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-spinner { animation-duration: 1.6s; }
}
.hero .lede {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero .lede .soon { color: var(--fg-1); font-weight: 500; }

/* download — grid so the meta centers to the button row while the credits
   line sits centered under the button (its own column). */
.download {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "btn  meta"
    "note .";
  align-items: center;
  column-gap: 18px;
  row-gap: 9px;
}
.btn-download {
  grid-area: btn;
  padding: 15px 30px;
  font-size: 16.5px;
  white-space: nowrap;
}
.btn-download svg { flex-shrink: 0; }
.download-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
/* The version label starts empty; site-header.js fills it from the
   release manifest and adds .is-visible, fading it in with a slight
   rise. The · separator sits inside the wrapper so no lone dot shows
   before the version arrives. */
.app-version-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.app-version-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.download-credits {
  grid-area: note;
  font-size: 14px;
  color: var(--fg-3);
  text-align: center;
}

/* hero product visual */
.hero-stage {
  position: relative;
  z-index: 1;
  margin-top: 72px;
}
.window {
  border: 1px solid var(--border-1);
  border-radius: 16px;
  background: linear-gradient(180deg, #0e1217 0%, #12161D 100%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.03) inset;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-1);
  background: rgba(10,13,17,0.6);
}
.window-bar .dots { display: flex; gap: 8px; }
.window-bar .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window-bar .dots i:nth-child(1) { background: #ff5f57; }
.window-bar .dots i:nth-child(2) { background: #febc2e; }
.window-bar .dots i:nth-child(3) { background: #28c840; }
.window-bar .addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 7px;
}
.window-bar .addr .lock { color: var(--t); }

.window-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 420px;
}
.window-chat {
  padding: 26px 28px;
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.window-gallery {
  padding: 18px;
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  align-content: start;
}

/* ============================================================
   CHAT primitives (used in hero + conversation section)
   ============================================================ */
.chat-msg { display: flex; gap: 12px; align-items: flex-start; }
.chat-msg .avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.chat-msg .avatar.user { background: var(--bg-3); color: var(--fg-2); border: 1px solid var(--border-1); }
.chat-msg .avatar.bot { background: var(--o-soft); }
.chat-msg .avatar.bot svg { width: 16px; height: auto; }
.chat-msg .bubble {
  font-size: 15px; line-height: 1.55; color: var(--fg-1);
  padding-top: 4px;
}
.chat-msg.user .bubble {
  color: var(--fg-2);
  border-left: 2px solid var(--o);
  padding: 2px 0 2px 12px;
}
.chat-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--o);
  font-family: var(--font-body);
}
.chat-status .ell { display: inline-flex; gap: 3px; }
.chat-status .ell i { width: 3px; height: 3px; border-radius: 50%; background: var(--o); animation: dotb 1.2s var(--ease-standard) infinite; }
.chat-status .ell i:nth-child(2) { animation-delay: .15s; }
.chat-status .ell i:nth-child(3) { animation-delay: .3s; }
@keyframes dotb { 0%,80%,100% { opacity:.3; transform: translateY(0);} 40% { opacity:1; transform: translateY(-2px);} }

/* small mono toolchip used in conversation demo */
.toolchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}
.toolchip .ok { color: var(--status-success); }
.toolchip svg { color: var(--t); }

/* ============================================================
   PLACEHOLDER MEDIA FRAMES
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.022) 0 10px,
      rgba(255,255,255,0) 10px 20px),
    var(--bg-3);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.ph .ph-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 8px;
  text-align: center;
  line-height: 1.4;
}
.ph .badge-tl, .ph .badge-tr {
  position: absolute; top: 8px;
  padding: 4px 7px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-1);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.ph .badge-tl { left: 8px; }
.ph .badge-tr { right: 8px; color: var(--fg-2); }
.ph .badge-tl .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--o); }
.ph.teal .badge-tl .pip { background: var(--t); }
.ph .play {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ph.r1610 { aspect-ratio: 16/10; }
.ph.r169  { aspect-ratio: 16/9; }
.ph.r11   { aspect-ratio: 1/1; }
.ph.r45   { aspect-ratio: 4/5; }
.ph.r34   { aspect-ratio: 3/4; }

/* transparent checkerboard for cutout/vector demos */
.ph.checker {
  background:
    conic-gradient(from 0deg, #14181f 0 25%, #191E28 0 50%, #14181f 0 75%, #191E28 0) 0 0 / 18px 18px;
}

/* waveform */
.wave {
  display: flex; align-items: center; gap: 3px;
  width: 100%; height: 100%; padding: 0 18px;
}
.wave i {
  flex: 1;
  background: var(--t);
  border-radius: 2px;
  opacity: 0.55;
  min-height: 3px;
}
.wave i.hot { background: var(--o); opacity: 1; }

/* ============================================================
   SECTION scaffolding + reveal
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 132px); }

/* Progressive enhancement: content is visible by default. JS adds
   .anim-ready to <html>, which arms the hidden state only for elements
   that have NOT yet revealed (:not(.in)). Once .in is set the hidden
   rule stops matching, so it can never lose a specificity battle. */
.reveal {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.anim-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal { transition: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  white-space: nowrap;
}
.eyebrow .num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--o);
  letter-spacing: 0.04em;
}
.eyebrow .lbl {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow .rule { width: 28px; height: 1px; background: var(--border-1); }

/* ============================================================
   CONVERSATION SECTION
   ============================================================ */
.convo { border-top: 1px solid var(--border-1); }
.convo-head { max-width: 760px; }
.convo-head h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.convo-head p { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-2); max-width: 600px; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps { border-top: 1px solid var(--border-1); padding-block: clamp(56px, 9vw, 96px); }
.caps-head { max-width: 760px; margin-bottom: 48px; }
.caps-head h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.caps-head p { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-2); max-width: 600px; }

.caps-board { display: flex; flex-direction: column; gap: 20px; }

.caps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.caps-tab {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--fg-2);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.caps-tab:hover { border-color: var(--border-active); }
.caps-tab .ct-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--fg-3);
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.caps-tab .ct-txt { display: flex; flex-direction: column; gap: 3px; }
.caps-tab .ct-name { font-size: 16px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; }
.caps-tab .ct-meta { font-size: 10.5px; }
.caps-tab.is-active { border-color: var(--o); background: linear-gradient(180deg, var(--o-soft), transparent); }
.caps-tab.is-active .ct-ic { background: var(--o-soft); color: var(--o); }

.caps-matrix {
  display: none;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  background: #0a0d12;
  overflow: hidden;
}
.caps-matrix.is-active { display: block; }

.cap-thead, .cap-trow {
  display: grid;
  grid-template-columns: 132px 1fr 1fr 1.15fr;
  gap: 24px;
  padding: 0 24px;
}
.cap-thead { padding-block: 14px; border-bottom: 1px solid var(--border-1); background: rgba(255,255,255,0.015); align-items: center; }
.cap-thead .cth-cell { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.cap-trow { padding-block: 18px; border-bottom: 1px solid var(--border-1); align-items: start; transition: background var(--dur-fast) var(--ease-standard); }
.cap-trow:last-child { border-bottom: 0; }
.cap-trow:hover { background: rgba(255,255,255,0.02); }

.ctr-name { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; padding-top: 1px; }
.ctr-name .ctr-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--o); box-shadow: 0 0 0 4px var(--o-soft); flex-shrink: 0; margin-top: 6px; }

.ctr-bul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ctr-bul li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--fg-2); line-height: 1.4; letter-spacing: -0.01em; }
.ctr-bul li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 4px; height: 4px; border-radius: 50%; background: var(--border-active); }
.ctr-bul .b-by { font-size: 9.5px; color: var(--t); letter-spacing: 0.08em; margin-right: 4px; }
/* nested sub-bullets: a parent option with its discrete variants below it.
   Sub-items use a dash marker and lighter/smaller type so the hierarchy
   reads at a glance against the parent's dot. */
.ctr-bul .ctr-sub { list-style: none; margin: 6px 0 0; padding-left: 2px; display: flex; flex-direction: column; gap: 5px; }
.ctr-bul .ctr-sub li { padding-left: 14px; font-size: 13px; color: var(--fg-3); line-height: 1.35; }
.ctr-bul .ctr-sub li::before { top: 0.62em; width: 6px; height: 1.5px; border-radius: 1px; }

@media (max-width: 760px) {
  .caps-tabs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .caps-tab { gap: 10px; padding: 12px 14px; }
  .caps-tab .ct-ic { width: 32px; height: 32px; }
  .caps-tab .ct-name { font-size: 15px; }
  .caps-tab .ct-meta { display: none; }

  .cap-thead { display: none; }
  .cap-trow { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; }

  /* The column header row is hidden on mobile, so each stacked list
     carries its own label, styled like the desktop header cells. */
  .cap-trow .ctr-bul::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .cap-trow .ctr-bul:nth-of-type(1)::before { content: "What you can make"; }
  .cap-trow .ctr-bul:nth-of-type(2)::before { content: "Operations"; }
  .cap-trow .ctr-bul:nth-of-type(3)::before { content: "Models & engines"; }
}

/* ============================================================
   APP SHOWCASE
   ============================================================ */
.app { border-top: 1px solid var(--border-1); }

/* same section-head treatment as .caps-head */
.app-head { max-width: 760px; margin-bottom: 48px; }
.app-head h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.app-head p { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-2); max-width: 600px; }

/* the screenshot carries its own window chrome, so the frame stays a plain
   card — border + heavy drop shadow, no extra bar */
.app-shot {
  margin: 0;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0d12;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.03) inset;
}
.app-shot img { display: block; width: 100%; height: auto; }

/* Three same-size captures share the frame and cross-fade in place. */
.app-shot { position: relative; }
.app-slides {
  position: relative;
  width: 100%;
  /* all three captures share this ratio, so the frame never changes size */
  aspect-ratio: 3560 / 2380;
}
.app-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.45s var(--ease-standard);
}
.app-slide.is-active { opacity: 1; }

.app-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-1);
  border-radius: 50%;
  background: rgba(10,13,18,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* literal: dark glass over the app screenshot in both themes */
  color: #A5B4C3;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.app-nav:hover { color: #FFFFFF; background: rgba(10,13,18,0.85); }
.app-nav.prev { left: 14px; }
.app-nav.next { right: 14px; }

/* dots pad out to a comfortable hit target; only the content box is painted */
.app-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.app-dot {
  width: 7px; height: 7px;
  padding: 5px;
  box-sizing: content-box;
  background-clip: content-box;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.app-dot:hover { background-color: rgba(255,255,255,0.4); }
.app-dot.is-active { background-color: var(--o); }

/* one note per app panel, color-coded left markers */
.app-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.app-note { position: relative; padding-left: 19px; }
.app-note .an-mark {
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--o);
  box-shadow: 0 0 0 4px var(--o-soft);
}
.app-note.teal .an-mark { background: var(--t); box-shadow: 0 0 0 4px var(--t-soft); }
.app-note.lite .an-mark { background: var(--fg-1); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.app-note h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.app-note p { font-size: 14.5px; color: var(--fg-3); line-height: 1.5; }
@media (max-width: 760px) {
  .app-notes { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   FEATURE BANDS
   ============================================================ */
.feature {
  border-top: 1px solid var(--border-1);
}
.feature .feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }

.feature-copy { max-width: 520px; }
.feature h3 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.feature .intro {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 26px;
}

/* expandable disclosure */
.disclosure { border-top: 1px solid var(--border-1); }
.disclosure-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0 16px;
  background: transparent; border: 0;
  cursor: pointer;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-standard);
}
.disclosure-toggle:hover { color: var(--fg-1); }
.disclosure-toggle .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--o);
  background: var(--o-soft);
  padding: 3px 7px; border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.disclosure-toggle .chev {
  margin-left: auto;
  color: var(--fg-3);
  transition: transform var(--dur-base) var(--ease-standard);
}
.disclosure.open .disclosure-toggle .chev { transform: rotate(180deg); }
.disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.disclosure.open .disclosure-panel { grid-template-rows: 1fr; }
.disclosure-panel > .inner { overflow: hidden; }

.cap-list { display: flex; flex-direction: column; padding-bottom: 8px; }
.cap-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 14px 0 8px;
}
.cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-3);
  align-items: baseline;
}
.cap:last-child { border-bottom: 0; }
.cap .cap-name {
  font-size: 14.5px; font-weight: 600; color: var(--fg-1);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cap .cap-desc { font-size: 14px; color: var(--fg-3); line-height: 1.45; }
.cap .cap-name .marker {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--o); margin-right: 9px; vertical-align: middle;
  position: relative; top: -2px;
}
.cap.teal .cap-name .marker { background: var(--t); }

/* feature visual cluster */
.feature-visual { position: relative; }
.visual-card {
  border: 1px solid var(--border-1);
  border-radius: 16px;
  background: var(--bg-2);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.visual-card .vc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 14px;
}
.visual-card .vc-head .vc-title {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
  white-space: nowrap;
}
.visual-card .vc-head .vc-spacer { flex: 1; }
.visual-card .vc-head .vc-act {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--border-1); color: var(--fg-3);
  display: flex; align-items: center; justify-content: center;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.span2 { grid-column: span 2; }

/* model engine chips (Platform) */
.engines { display: flex; flex-wrap: wrap; gap: 8px; }
.engine {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border-1);
  border-radius: 10px;
  background: var(--bg-3);
  font-size: 13.5px; font-weight: 500; color: var(--fg-1);
}
.engine .swatch { width: 9px; height: 9px; border-radius: 3px; }

/* timeline tracks (Production) */
.tracks { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.track { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.track .t-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3); text-align: right;
}
.track .t-lane {
  height: 30px; border-radius: 6px; position: relative;
  background: var(--bg-1); border: 1px solid var(--border-1);
  overflow: hidden;
}
.track .clip {
  position: absolute; top: 4px; bottom: 4px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.track .clip.o { background: linear-gradient(180deg, rgba(249,115,22,0.5), rgba(249,115,22,0.25)); }
.track .clip.t { background: linear-gradient(180deg, rgba(111,188,217,0.45), rgba(111,188,217,0.2)); }
.track .clip.g { background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--o); left: 38%; z-index: 3; box-shadow: 0 0 8px rgba(249,115,22,0.6); }

/* ============================================================
   PIPELINES — session replays: prompt → models → shipped file
   ============================================================ */
.pipes { border-top: 1px solid var(--border-1); }
.pipes-head { max-width: 760px; margin-bottom: 40px; }
.pipes-head h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.pipes-head p { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-2); max-width: 640px; }

/* client plate — the one brand every pipeline below builds */
.pipes-client {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: 22px clamp(20px, 3vw, 32px);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(220,34,45,0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-2), rgba(25,30,40,0.4));
  margin-bottom: clamp(40px, 6vw, 64px);
}
.pipes-client .pc-logo { height: 58px; width: auto; flex-shrink: 0; }
/* The client plate carries both Phase Object logos — reversed (white)
   for dark, primary (ink) for light — and the inactive one is hidden.
   :root prefixes mirror the brand-logo swap in header.css. */
:root:not([data-theme="light"]) .pc-logo-light { display: none; }
:root[data-theme="light"] .pc-logo-dark { display: none; }
.pipes-client .pc-copy { border-left: 1px solid var(--border-1); padding-left: clamp(20px, 3vw, 36px); }
.pipes-client .pc-line { font-size: 15.5px; color: var(--fg-2); line-height: 1.5; margin-bottom: 7px; }
.pipes-client .pc-meta { font-size: 10.5px; letter-spacing: 0.1em; line-height: 1.6; }

/* row scaffolding */
.pipe { border-top: 1px solid var(--border-3); padding-top: 36px; }
.pipe + .pipe { margin-top: 56px; }
.pipe-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
}
.pipe-num { font-size: 13px; font-weight: 600; color: var(--o); letter-spacing: 0.04em; }
.pipe-title h3 { font-size: clamp(21px, 2.3vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 7px; }
.pipe-title p { font-size: 14.5px; color: var(--fg-3); line-height: 1.55; max-width: 560px; }
.pipe-tally { margin-left: auto; font-size: 11px; color: var(--fg-3); white-space: nowrap; }

/* the chain: [card] → [card] → [card] */
.pipe-chain {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: stretch;
}
/* forked chain: [input card] → [take | take] */
.pipe-chain.is-fork { grid-template-columns: 1fr 44px 2.12fr; }
/* two-stage chain: [card] → [card] */
.pipe-chain.is-duo { grid-template-columns: 1fr 44px 1fr; }
/* merge chain: [input stack] → [output]; the output card keeps its
   natural height and centers against the taller input column */
.pipe-chain.is-merge { grid-template-columns: 1fr 44px 1fr; }
.pipe-chain.is-merge > .pstage { align-self: center; width: 100%; }
.pipe-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}
/* vertical flow row: prompt → ingredient shelf → drop → deliverable */
.pipe-flow { display: flex; flex-direction: column; }
.pipe-flow > .pstage-prompt { margin: 0 0 16px; }
.pipe-ingredients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
/* mini ingredient box — same anatomy as a stage, scaled down */
.pstage.pmini .pstage-media { aspect-ratio: 4 / 3; flex: initial; }
.pstage.pmini .pstage-file { padding: 9px 12px; }
.pstage.pmini .pf-name { font-size: 10.5px; }
.pstage.pmini .pf-size { display: none; }
.pstage.pmini .pstage-media.is-logo { background: #fdfbfa; }
.pstage.pmini .pstage-media.is-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13%;
  display: block;
}
.pstage.pmini .pcode { padding: 12px 14px; font-size: 9px; line-height: 1.7; }
.pstage.pmini .pstage-media.is-audio { height: auto; }
.pstage.pmini .paud { padding: 20px 14px; }
/* the play control floats centered over the waveform, like the film card */
.pstage.pmini .paud-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 34px; height: 34px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.pstage.pmini .paud-play svg { width: 13px; height: 13px; }
.pstage.pmini .paud-time { display: none; }
.pipe-takes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}

.pstage {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  min-width: 0;
}
.pstage-prompt {
  margin: 16px 18px 14px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--o);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
/* aspect-ratio is each media's natural size; flex lets it grow to absorb
   the height difference against a taller sibling card, cropping via cover */
.pstage-media {
  position: relative;
  margin: 0;
  flex: 1;
  aspect-ratio: 2432 / 1792;
  background: #fdfbfa;
  overflow: hidden;
}
.pstage-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* light checkerboard so the alpha cutout reads as transparency */
.pstage-media.is-alpha {
  background:
    conic-gradient(from 0deg, #fdfbfa 0 25%, #e4e6ea 0 50%, #fdfbfa 0 75%, #e4e6ea 0)
    0 0 / 20px 20px;
}

/* video take — the <video> fills whatever height the row gives the card */
.pstage-media.is-video {
  aspect-ratio: 1108 / 832;
  background: #fdfbfa;
}
.pstage-media.is-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* artifact pager — one item of a batch at a time, controls shared with
   the pdf book; the file bar below follows the visible item */
.pstage-media.is-pager .pg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.pstage-media.is-pager .pg-item.is-active { opacity: 1; }
/* portrait row — every media box takes the finished posts' exact ratio,
   so the posts fill edge to edge and the visuals crop to portrait */
.pipe-chain.is-portrait .pstage-media { aspect-ratio: 1080 / 1350; }
/* with the pager active, only the visible item's file bar shows;
   without JS every bar renders and all files stay reachable */
.pgal-on .pg-file { display: none; }
.pgal-on .pg-file.is-active { display: flex; }

/* authored-source view — the agent's HTML, shown as code with live swatches.
   flex lets it absorb height differences next to taller cards; the extra
   space is just more padding under the code. */
.pstage-media.is-code {
  aspect-ratio: 1600 / 1131;
  background: #0a0d12;
}
.pcode {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 18px 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.05vw, 12.5px);
  line-height: 1.75;
  /* literals, not --fg vars: the code panel keeps its dark
     background in both themes */
  color: #A5B4C3;
}
.pcode .c-tag  { color: #D9D9D9; }
.pcode .c-attr { color: #A5B4C3; }
.pcode .c-str  { color: var(--t); }
.pcode .c-sel  { color: var(--o); }
.pcode .c-prop { color: #D9D9D9; }
.pcode .c-val  { color: var(--t); }
.pcode .chip {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.18);
  vertical-align: middle;
  margin-left: 2px;
}

/* pdf flipbook — real page renders, one at a time */
.pstage-media.is-book {
  aspect-ratio: 1600 / 1131;
  background: #fdfbfa;
}
.pbook { position: absolute; inset: 0; }
.pbook .pbook-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pbook-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(10,13,18,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* literal: dark glass over media in both themes */
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard);
}
.pbook-nav:hover { background: rgba(10,13,18,0.95); }
.pbook-nav.prev { left: 10px; }
.pbook-nav.next { right: 10px; }
.pbook-nav[disabled] { opacity: 0.25; cursor: default; }
.pbook-count {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(10,13,18,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 10px;
  letter-spacing: 0.08em;
  /* literal: dark glass over media in both themes */
  color: #FFFFFF;
}

/* filename bar — the artifact itself, opens in a new tab */
.pstage-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-1);
  background: rgba(10,13,18,0.55);
  transition: background var(--dur-fast) var(--ease-standard);
  /* bottom-anchors the bar group in cards whose media flexes */
  margin-top: auto;
}
.pstage-file + .pstage-file { margin-top: 0; }
.pstage-file:hover { background: rgba(255,255,255,0.05); }
.pstage-file .pf-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.pstage-file:hover .pf-name { color: var(--o); }
.pstage-file .pf-size { margin-left: auto; font-size: 10px; white-space: nowrap; }
.pstage-file .pf-open { color: var(--fg-3); flex-shrink: 0; }

/* connector arrow between stages */
.pipe-link {
  display: flex;
  align-items: center;
  color: var(--fg-3);
  padding: 0 7px;
}
.pipe-link .pl-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--fg-3) 0 4px, transparent 4px 9px);
  opacity: 0.45;
  animation: pl-flow 1.6s linear infinite;
}
.pipe-link svg { flex-shrink: 0; margin-left: -1px; opacity: 0.7; }
@keyframes pl-flow { to { background-position: 9px 0; } }
@keyframes pl-flow-v { to { background-position: 0 9px; } }
/* downward connector — a full-width row inside the chain grid */
.pipe-link.drop {
  grid-column: 1 / -1;
  flex-direction: column;
  height: 40px;
  width: 100%;
  padding: 5px 0;
  justify-content: center;
}
.pipe-link.drop .pl-line {
  width: 1px;
  height: 100%;
  flex: 1;
  background: repeating-linear-gradient(180deg, var(--fg-3) 0 4px, transparent 4px 9px);
  animation: pl-flow-v 1.6s linear infinite;
}
.pipe-link.drop svg { margin: -1px 0 0; transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .pipe-link .pl-line { animation: none; }
}

/* widescreen media — video-frame comparisons */
.pstage-media.r169 { aspect-ratio: 1920 / 1080; }

/* full-width finale card + click-to-play film with sound */
.pstage.is-wide { grid-column: 1 / -1; }
.pstage-media.is-film {
  aspect-ratio: 1920 / 1080;
  background: #0a0d12;
}
.pstage-media.is-film .pfilm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pfilm-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transition: background var(--dur-fast) var(--ease-standard);
}
.pfilm-play:hover { background: var(--accent-pressed); }
.pfilm-play svg { margin-left: 4px; }
.pstage-media.is-film.is-playing .pfilm-play { display: none; }

/* audio player — real waveform on canvas, play/seek, one at a time */
.pstage-media.is-audio {
  aspect-ratio: auto;
  height: 148px;
  flex: 0 0 auto;
  background: #0a0d12;
}
.paud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 16px;
}
.paud-play {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.paud-play:hover { background: var(--accent-pressed); }
.paud-play .ic-play { margin-left: 2px; }
.paud-play .ic-pause { display: none; }
.paud.is-playing .ic-play { display: none; }
.paud.is-playing .ic-pause { display: block; }
.paud-wave {
  flex: 1;
  min-width: 0;
  height: 58%;
  cursor: pointer;
}
.paud-time {
  font-size: 10px;
  /* literal: the audio panel keeps its dark background in both themes */
  color: #A5B4C3;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* raster zoom viewer — pan + zoom over a large image; viewers sharing a
   data-zoom-sync group move together for side-by-side comparison */
.rz-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.rz-viewport.is-panning { cursor: grabbing; }
.rz-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  display: block;
}

/* vector viewer — inline SVG zoomed via viewBox, crisp at any depth */
.pvec-viewport {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}
.pvec-viewport.is-zoomed { touch-action: none; cursor: grab; }
.pvec-viewport.is-panning { cursor: grabbing; }
.pvec-viewport > img,
.pvec-viewport > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pvec-ctl {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(78%, 280px);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(10,13,18,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pvec-btn {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  /* literal: sits inside the dark glass control pill in both themes */
  color: #D9D9D9;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.pvec-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.1); }
.pvec-range {
  flex: 1;
  min-width: 0;
  accent-color: var(--o);
  cursor: pointer;
}
.pvec-read {
  font-size: 10.5px;
  /* literal: sits inside the dark glass control pill in both themes */
  color: #FFFFFF;
  min-width: 38px;
  text-align: right;
  letter-spacing: 0.04em;
}
/* fetch failed — plain image stays, controls make no sense */
.pvec.pvec-static .pvec-ctl { display: none; }

@media (max-width: 900px) {
  .pipe-chain, .pipe-chain.is-fork, .pipe-chain.is-duo, .pipe-chain.is-merge { grid-template-columns: 1fr; }
  .pipe-takes { grid-template-columns: 1fr; }
  .pipe-link {
    flex-direction: column;
    height: 38px;
    padding: 5px 0;
    justify-content: center;
  }
  .pipe-link .pl-line {
    width: 1px;
    height: 100%;
    flex: 1;
    background: repeating-linear-gradient(180deg, var(--fg-3) 0 4px, transparent 4px 9px);
    animation: pl-flow-v 1.6s linear infinite;
  }
  .pipe-link svg { margin: -1px 0 0; transform: rotate(90deg); }
  .pipe-tally { display: none; }
  .pipe-ingredients { grid-template-columns: repeat(2, 1fr); }
  .pipe-ingredients > .pstage:last-child:nth-child(odd) { grid-column: span 2; }
  .pipes-client { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pipes-client .pc-copy { border-left: 0; padding-left: 0; }
  .pipes-client .pc-logo { height: 46px; }
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  border-top: 1px solid var(--border-1);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,115,22,0.14), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.closing .wrap { position: relative; z-index: 1; }
.closing .glyph-lg { width: 56px; height: 75px; margin: 0 auto 28px; display: block; }
/* Rotating empty-session greeting. Two classes to outrank the generic
   .closing p rule below. min-height reserves the line so phrase swaps
   never shift the layout. */
.closing .closing-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 16px;
  min-height: 1.4em;
}
/* The fade lives on the inner span because .reveal already transitions
   opacity on the <p> itself. */
.closing-kicker span {
  display: inline-block;
  transition: opacity 0.6s var(--ease-out);
}
.closing-kicker span.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .closing-kicker span { transition: none; }
}
.closing h2 {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.closing p { font-size: clamp(17px, 1.9vw, 20px); color: var(--fg-2); margin-bottom: 36px; }
.closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* two classes so this outranks the generic .closing p rule above */
.closing .closing-meta {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============================================================
   FOOTER — doubles as the about section: brand + studio blurb
   on the left, company details on the right
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-1);
  padding-block: 56px 40px;
  background: #0a0d12;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-1);
}
.footer-brand .brandmark { margin-bottom: 22px; }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 14px; font-weight: 500;
}
.footer-about {
  max-width: 480px;
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.65;
}
/* the company column tops out at the About label's baseline: the logo above
   the label is the left column's own header, so the right column starts at
   the label row, aligned via margin matching the logo row's height */
.footer-company { flex-shrink: 0; padding-top: 48px; }
.footer-company p { font-size: 14px; color: var(--fg-3); line-height: 1.75; }
.footer-company p strong { color: var(--fg-2); font-weight: 600; }
.footer-company a { transition: color var(--dur-fast) var(--ease-standard); }
.footer-company a:hover { color: var(--fg-1); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px;
  font-size: 13px; color: var(--fg-3);
}
.footer-bottom .mono { font-size: 11px; }
.footer-legal { display: flex; gap: 22px; align-items: center; }
.footer-legal a { font-size: 13px; color: var(--fg-3); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
.footer-legal a:hover { color: var(--fg-1); }
/* X logo link; the svg fills with currentColor so it follows the legal-link hover color */
.footer-x svg { display: block; width: 15px; height: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { max-width: 620px; }
  .hero-media { aspect-ratio: 1 / 1; max-width: 620px; }
  .window-body { grid-template-columns: 1fr; }
  .window-chat { border-right: 0; border-bottom: 1px solid var(--border-1); }
  .feature .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 128px; }
  .download {
    grid-template-columns: auto;
    grid-template-areas: "btn" "meta" "note";
    justify-items: start;
    row-gap: 12px;
  }
  .footer-grid { flex-direction: column; gap: 36px; }
  .footer-company { padding-top: 0; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ============================================================
   LIGHT THEME
   ============================================================
   Flips the page chrome. Product visuals stay dark on purpose:
   the hero video, app screenshots, code and audio panels depict
   the app — which is dark — so their frames and glass overlays
   keep dark values in both themes (see the literal colors on
   those rules above). Token-driven rules flip via tokens.css. */
:root[data-theme="light"] {
  --ink: #F5F7FA;
}
:root[data-theme="light"] .nav.scrolled { background: rgba(245, 247, 250, 0.75); }
:root[data-theme="light"] .btn-ghost-lg { background: rgba(18, 22, 29, 0.04); }
:root[data-theme="light"] .btn-ghost-lg:hover { background: rgba(18, 22, 29, 0.07); }
/* the heavy black frame shadows read as smudges on a light page */
:root[data-theme="light"] .hero-media,
:root[data-theme="light"] .app-shot {
  box-shadow: 0 40px 120px rgba(16, 24, 32, 0.18), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}
:root[data-theme="light"] .hero-spinner {
  border-color: rgba(18, 22, 29, 0.14);
  border-top-color: var(--t);
}
:root[data-theme="light"] .caps-matrix { background: var(--bg-2); }
:root[data-theme="light"] .cap-thead { background: rgba(18, 22, 29, 0.02); }
:root[data-theme="light"] .cap-trow:hover { background: rgba(18, 22, 29, 0.02); }
:root[data-theme="light"] .app-dot { background-color: rgba(18, 22, 29, 0.18); }
:root[data-theme="light"] .app-dot:hover { background-color: rgba(18, 22, 29, 0.4); }
:root[data-theme="light"] .app-dot.is-active { background-color: var(--o); }
:root[data-theme="light"] .app-note.lite .an-mark { box-shadow: 0 0 0 4px rgba(18, 22, 29, 0.08); }
:root[data-theme="light"] .pipes-client {
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(220, 34, 45, 0.05), transparent 70%),
    linear-gradient(180deg, var(--bg-2), rgba(242, 245, 248, 0.5));
}
:root[data-theme="light"] .pstage-file { background: rgba(242, 245, 248, 0.7); }
:root[data-theme="light"] .pstage-file:hover { background: rgba(18, 22, 29, 0.05); }
:root[data-theme="light"] .footer { background: #EDF1F5; }
