@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/pjs-normal-vietnamese.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;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/pjs-normal-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/pjs-normal-latin.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;}
@font-face{font-family:'Plus Jakarta Sans';font-style:italic;font-weight:600 800;font-display:swap;src:url('fonts/pjs-italic-vietnamese.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;}
@font-face{font-family:'Plus Jakarta Sans';font-style:italic;font-weight:600 800;font-display:swap;src:url('fonts/pjs-italic-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:italic;font-weight:600 800;font-display:swap;src:url('fonts/pjs-italic-latin.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;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/jbm-normal-vietnamese.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;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/jbm-normal-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/jbm-normal-latin.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 {
  --bg: #060a10;
  --bg-elevated: #0a1019;
  --shell: rgba(255, 255, 255, 0.032);
  --shell-border: rgba(255, 255, 255, 0.085);
  --core: #0d1522;
  --core-2: #111c2d;
  --core-tint: #0e1c30;
  --core-border: rgba(255, 255, 255, 0.09);
  --text: #eef4fc;
  --text-secondary: #a8bbd2;
  --muted: #7d93ae;
  --accent: #0a84ff;
  --accent-bright: #5cb4ff;
  --accent-surface: rgba(10, 132, 255, 0.14);
  --accent-border: rgba(92, 180, 255, 0.36);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --r-shell: 28px;
  --r-core: 21px;
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(960px 560px at 16% 0%, rgba(10, 132, 255, 0.14), transparent 64%),
    radial-gradient(880px 540px at 86% 8%, rgba(10, 132, 255, 0.11), transparent 62%),
    radial-gradient(900px 620px at 50% 96%, rgba(10, 132, 255, 0.09), transparent 65%);
}

/* Fixed pointer-events-none film grain overlay (GPU-safe, zero scroll repaint) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

code {
  font-size: 0.88em;
  color: #cfe4ff;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(92, 180, 255, 0.18);
  padding: 2px 6px;
  border-radius: 6px;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 60;
}
.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* =========================================================
   1. FLOATING FLUID-ISLAND GLASS NAVBAR (web glass approx)
   ========================================================= */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(10, 16, 26, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 48px rgba(2, 6, 14, 0.55);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

@media (prefers-reduced-transparency: reduce) {
  .nav-island,
  .mobile-menu {
    background: #0d1522;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(10, 132, 255, 0.28);
  flex-shrink: 0;
}

.brand-icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.nav-links a:active {
  transform: scale(0.97);
}

.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.nav-gh svg {
  width: 17px;
  height: 17px;
}

.nav-gh:active {
  transform: scale(0.97);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}

.menu-btn:active {
  transform: scale(0.96);
}

.menu-line {
  position: absolute;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 240ms var(--ease-drawer);
}

.menu-line:first-child {
  transform: translateY(-4px);
}
.menu-line:last-child {
  transform: translateY(4px);
}

.menu-btn[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(0) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 96px 24px 40px;
  background: rgba(6, 10, 16, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-drawer);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 260ms var(--ease-drawer), transform 260ms var(--ease-drawer), color 150ms var(--ease-out);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 40ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 80ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 160ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 200ms; }

/* =========================================================
   2. LAYOUT SHELL & DOUBLE-BEZEL (DOPPELRAND) SYSTEM
   ========================================================= */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.bezel {
  background: var(--shell);
  border: 1px solid var(--shell-border);
  border-radius: var(--r-shell);
  padding: 7px;
  box-shadow: 0 28px 72px rgba(2, 6, 14, 0.46);
}

.bezel-core {
  background: linear-gradient(180deg, var(--core-2), var(--core));
  border: 1px solid var(--core-border);
  border-radius: var(--r-core);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  height: 100%;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(10, 132, 255, 0.11);
  border: 1px solid rgba(92, 180, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* =========================================================
   3. HERO: PROMINENT ZALUX MEDALLION + SPLIT HARDWARE STAGE
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
  min-height: calc(100dvh - 96px);
  padding: 44px 0 56px;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.app-medallion-shell {
  position: relative;
  width: 96px;
  height: 96px;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(92, 180, 255, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(130, 198, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 52px rgba(10, 132, 255, 0.32),
    0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: transform 240ms var(--ease-out);
}

.app-medallion-shell::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.34), transparent 68%);
  pointer-events: none;
}

.app-medallion-core {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #071222;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.app-medallion-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-identity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-wordmark strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-wordmark code {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-size: clamp(35px, 3.85vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.036em;
  font-weight: 800;
}

h1 em {
  font-style: italic;
  font-weight: 760;
  color: var(--accent-bright);
  display: inline-block;
  padding-bottom: 4px;
  padding-right: 4px;
}

.lede {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 17.5px;
  line-height: 1.62;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  flex-wrap: wrap;
}

/* Button-in-Button Pill Architecture */
.btn-island {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 36px rgba(10, 132, 255, 0.34);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.btn-island:active {
  transform: scale(0.97);
}

.btn-island-orb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.btn-island-orb svg {
  width: 17px;
  height: 17px;
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.btn-pill-ghost svg {
  width: 17px;
  height: 17px;
}

.btn-pill-ghost:active {
  transform: scale(0.97);
}

.hero-stage-wrap {
  position: relative;
}

.hero-window {
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(92, 180, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(120, 182, 245, 0.22);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(10, 132, 255, 0.12);
}

.hero-window-inner {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070d16;
}

.hero-window-inner img {
  width: 100%;
  height: auto;
}

.telemetry-pill {
  position: absolute;
  right: 16px;
  bottom: -18px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.telemetry-pill-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #0c1523;
  border: 1px solid rgba(92, 180, 255, 0.24);
}

.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.2);
  flex-shrink: 0;
}

.telemetry-pill-inner strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.telemetry-pill-inner span {
  font-size: 12px;
  color: var(--accent-bright);
}

/* =========================================================
   4. METRICS ARCHITECTURE RIBBON (4-COLUMN MONO TELEMETRY)
   ========================================================= */
.metrics-ribbon {
  margin: 24px 0 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 12px;
}

.metric-cell {
  padding: 6px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.metric-val em {
  font-style: normal;
  font-size: 0.62em;
  color: var(--accent-bright);
  font-weight: 600;
}

.metric-label {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =========================================================
   5. SECTIONS & WIDE BALANCED HEADINGS (NO ORPHAN WRAPS)
   ========================================================= */
.section {
  padding: 112px 0;
  scroll-margin-top: 92px;
}

.section-head {
  max-width: 980px;
  margin-bottom: 42px;
}

.section-head .eyebrow-pill {
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: clamp(29px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 780;
  text-wrap: balance;
}

.section-sub {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.62;
}

/* =========================================================
   6. INTERACTIVE CALL CINEMA STAGE + SLIDING PILL SWITCHER
   ========================================================= */
.tabs-shell {
  display: inline-flex;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-shell::-webkit-scrollbar {
  display: none;
}

.showcase-tabs,
.distro-tabs,
.studio-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tab-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 20px rgba(10, 132, 255, 0.2);
  pointer-events: none;
  transition: transform 220ms var(--ease-out), width 220ms var(--ease-out);
}

.tab,
.distro-tab,
.studio-tab {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms var(--ease-out), transform 130ms var(--ease-out);
}

.tab:active,
.distro-tab:active,
.studio-tab:active {
  transform: scale(0.97);
}

.tab.active,
.distro-tab.active,
.studio-tab.active {
  color: #ffffff;
}

.cinema-bezel {
  margin: 0;
}

.cinema-core {
  padding: 14px;
  background: linear-gradient(180deg, #101b2c, #080e18);
}

.cinema-viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #060b13;
  aspect-ratio: 960 / 620;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.cinema-viewport img.is-switching {
  opacity: 0.42;
  filter: blur(3px);
  transform: scale(0.992);
}

.cinema-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cinema-caption-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-bright);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(92, 180, 255, 0.24);
  white-space: nowrap;
}

/* =========================================================
   7. UNCROPPED ASYMMETRIC COMPANION STAGE (5fr / 7fr)
   ========================================================= */
.companion-grid {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}

.companion-incoming .bezel-core {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(380px 260px at 50% 36%, rgba(10, 132, 255, 0.18), transparent 72%),
    linear-gradient(180deg, #101b2c, #0a121e);
}

.ui-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(5, 9, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.companion-incoming .ui-stage {
  flex: 1;
  padding: 16px;
}

.companion-incoming .ui-stage img {
  width: 100%;
  max-width: 336px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.companion-studio .bezel-core {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(460px 280px at 82% 46%, rgba(10, 132, 255, 0.16), transparent 72%),
    linear-gradient(180deg, #101b2c, #0a121e);
}

.studio-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.studio-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.studio-title-group h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.studio-title-group h3.is-switching {
  opacity: 0.42;
  transform: translateY(2px);
}

.studio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 680;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.studio-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.7);
}

.studio-tabs-shell {
  margin-bottom: 0;
  padding: 4px;
  background: rgba(6, 12, 22, 0.88);
  border: 1px solid rgba(92, 180, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.36);
  flex-shrink: 0;
}

.studio-tabs {
  gap: 3px;
}

.studio-tabs .tab-indicator {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 140, 255, 0.92), rgba(0, 102, 220, 0.88));
  border: 1px solid rgba(145, 206, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 20px rgba(10, 132, 255, 0.42);
}

.tab-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  transform: scaleX(0);
}

@keyframes studioAutoProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.studio-tabs.is-autoplaying .tab-progress {
  animation: studioAutoProgress 4500ms linear forwards;
}

.studio-tabs.is-paused .tab-progress {
  animation-play-state: paused;
}

.studio-tab {
  height: 34px;
  padding: 0 13px;
  font-size: 12.8px;
  font-weight: 680;
  color: rgba(226, 236, 250, 0.78);
}

.studio-tab.active {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 30, 75, 0.45);
}

.studio-body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
  min-height: 0;
}

.studio-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.studio-copy {
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.studio-copy.is-switching {
  opacity: 0.38;
  transform: translateX(-6px);
}

.studio-points {
  list-style: none;
  margin: 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.075);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.studio-points.is-switching {
  opacity: 0.38;
  transform: translateX(-6px);
}

.studio-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.studio-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(92, 180, 255, 0.55);
}

.studio-stage {
  padding: 12px;
  overflow: hidden;
}

.studio-stage img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.54);
  transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.studio-stage img.is-switching {
  opacity: 0.35;
  filter: blur(3px);
  transform: translateX(10px) scale(0.985);
}

.companion-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.02em;
  color: var(--text);
}

.companion-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========================================================
   8. ASYMMETRIC ARCHITECTURE BENTO (7/5 + 5/7 + 8/4 RHYTHM)
   ========================================================= */
.bento-arch {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-7 { grid-column: span 7; }
.bento-5 { grid-column: span 5; }
.bento-8 { grid-column: span 8; }
.bento-4 { grid-column: span 4; }

.arch-card .bezel-core {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.arch-card.tinted-cobalt .bezel-core {
  background:
    radial-gradient(520px 280px at 90% 0%, rgba(10, 132, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #112036, #0b1422);
  border-color: rgba(92, 180, 255, 0.22);
}

.arch-card.tinted-deep .bezel-core {
  background:
    radial-gradient(420px 240px at 10% 100%, rgba(10, 132, 255, 0.13), transparent 72%),
    linear-gradient(180deg, #0f1a2b, #09101b);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(92, 180, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--accent-bright);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.arch-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.arch-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 58ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.chip-row span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #cfe4ff;
  background: rgba(10, 132, 255, 0.09);
  border: 1px solid rgba(92, 180, 255, 0.22);
}

/* =========================================================
   9. RUST PERFORMANCE TELEMETRY CARDS + SPARSE COMPARISON
   ========================================================= */
.perf-highlights {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.perf-stat-card .bezel-core {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.perf-big-num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--accent-bright);
  line-height: 1.05;
}

.perf-big-num small {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 0;
}

.perf-stat-card h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.perf-stat-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.perf-matrix .bezel-core {
  padding: 8px 26px 22px;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.perf-table th,
.perf-table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

.perf-table tr:last-child td {
  border-bottom: 0;
}

.perf-table th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-top: 20px;
}

.perf-table td:first-child {
  font-weight: 680;
  color: var(--text);
}

.perf-legacy {
  color: var(--muted);
}

.perf-rust {
  color: #d8ebff;
}

.perf-rust strong {
  color: var(--accent-bright);
}

.perf-note {
  margin: 14px 14px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* =========================================================
   10. INSTALL: QUICK-INSTALL SPOTLIGHT + DISTRO TAB SWITCHER
   ========================================================= */
.quick-install {
  margin-bottom: 22px;
}

.quick-install .bezel-core {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(480px 220px at 0% 50%, rgba(10, 132, 255, 0.16), transparent 72%),
    linear-gradient(180deg, #101e33, #0b1423);
  border-color: rgba(92, 180, 255, 0.25);
}

.quick-copy h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.quick-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.distro-stage .bezel-core {
  padding: 26px;
}

.distro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.distro-top .tabs-shell {
  margin-bottom: 0;
}

.distro-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-bright);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(92, 180, 255, 0.26);
}

.distro-panels {
  position: relative;
}

.distro-panel {
  display: none;
}

.distro-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: panelFade 190ms var(--ease-out);
}

@keyframes panelFade {
  from {
    opacity: 0.35;
    transform: translateY(4px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.code-card {
  background: #070d16;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(92, 180, 255, 0.28);
  background: rgba(10, 132, 255, 0.12);
  color: #e4f1ff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 130ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: rgba(92, 180, 255, 0.24);
  border-color: var(--accent-bright);
  color: #ffffff;
}

pre {
  margin: 0;
  padding: 16px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d6e6f9;
  font-size: 12.5px;
  line-height: 1.72;
}

/* =========================================================
   11. CLOSING BRAND DOCK SPOTLIGHT + CLEAN FOOTER
   ========================================================= */
.closing-section {
  padding: 36px 0 96px;
}

.closing-dock .bezel-core {
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(560px 300px at 14% 50%, rgba(10, 132, 255, 0.22), transparent 72%),
    linear-gradient(180deg, #112036, #0a1220);
  border-color: rgba(92, 180, 255, 0.28);
}

.closing-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.closing-medallion {
  width: 80px;
  height: 80px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(92, 180, 255, 0.26), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(130, 198, 255, 0.36);
  box-shadow: 0 18px 44px rgba(10, 132, 255, 0.28);
  flex-shrink: 0;
}

.closing-medallion img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.closing-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 6px;
}

.closing-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.closing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
  flex: 1;
  min-width: 240px;
}

footer p a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* =========================================================
   12. HOVER GATING (POINTER DEVICES ONLY) & MOTION REVEALS
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
  }
  .nav-gh:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .app-medallion-shell:hover {
    transform: translateY(-3px) rotate(-1.5deg);
  }
  .btn-island:hover {
    background: #1d8fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 18px 44px rgba(10, 132, 255, 0.44);
  }
  .btn-island:hover .btn-island-orb {
    transform: translate(2px, -2px) scale(1.05);
    background: rgba(255, 255, 255, 0.26);
  }
  .btn-pill-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
  }
  .tab:hover:not(.active),
  .distro-tab:hover:not(.active),
  .studio-tab:hover:not(.active) {
    color: var(--text);
  }
  .arch-card:hover .bezel-core {
    border-color: rgba(92, 180, 255, 0.32);
  }
  .copy-btn:hover {
    background: rgba(10, 132, 255, 0.22);
    border-color: rgba(92, 180, 255, 0.48);
  }
  .foot-links a:hover {
    color: var(--text);
  }
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}

.motion-ready .reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   13. EXPLICIT MOBILE & TABLET COLLAPSE (< 1024px & < 768px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: 0;
    padding: 36px 0 48px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }
  .metric-cell:nth-child(2) {
    border-right: 0;
  }
  .companion-grid,
  .perf-highlights,
  .quick-install .bezel-core {
    grid-template-columns: 1fr;
  }
  .bento-7, .bento-5, .bento-8, .bento-4 {
    grid-column: span 6;
  }
  .closing-dock .bezel-core {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  main {
    padding: 0 16px;
  }
  .nav-island {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links,
  .nav-gh {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .section {
    padding: 76px 0;
  }
  .hero-brand-lockup {
    gap: 14px;
  }
  .app-medallion-shell {
    width: 76px;
    height: 76px;
    border-radius: 21px;
    padding: 5px;
  }
  .app-medallion-core {
    border-radius: 16px;
  }
  .hero-wordmark strong {
    font-size: 20px;
  }
  .telemetry-pill {
    position: static;
    margin-top: 12px;
    display: inline-block;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    padding: 18px 8px;
  }
  .metric-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 16px;
  }
  .metric-cell:last-child {
    border-bottom: 0;
  }
  .studio-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .studio-body,
  .distro-panel.active {
    grid-template-columns: 1fr;
  }
  .bento-7, .bento-5, .bento-8, .bento-4 {
    grid-column: span 12;
  }
  .cinema-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .perf-matrix .bezel-core {
    padding: 8px 14px 18px;
    overflow-x: auto;
  }
  .perf-table {
    min-width: 560px;
  }
  .closing-dock .bezel-core {
    padding: 26px 22px;
  }
  .closing-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .closing-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

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