/* ==========================================================================
   DevParse — Raycast / Warp Cyber-Dev Workbench Stylesheet
   Self-hosted Inter + JetBrains Mono WOFF2, carbon graphite surfaces,
   emerald/cyan/amber terminal telemetry, zero external runtime dependencies.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/inter-latin-ext-400-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/inter-latin-400-normal.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/inter-latin-ext-500-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/inter-latin-500-normal.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/inter-latin-ext-600-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/inter-latin-600-normal.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/inter-latin-ext-700-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/inter-latin-700-normal.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/inter-latin-ext-800-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/inter-latin-800-normal.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-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-ext-400-normal.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-400-normal.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-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-ext-600-normal.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jetbrains-mono-latin-600-normal.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-display: swap;
  font-weight: 700 800;
  src: url("/fonts/jetbrains-mono-latin-ext-700-normal.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700 800;
  src: url("/fonts/jetbrains-mono-latin-700-normal.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 {
  color-scheme: dark;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Carbon Graphite Cyber-Dev Dark Theme (Default) */
  --bg: #09090b;
  --bg-elevated: rgba(14, 14, 17, 0.88);
  --bg-card: rgba(20, 20, 24, 0.78);
  --bg-card-solid: #141418;
  --bg-terminal: #0c0c0f;
  --bg-input: #0e0e12;
  --bg-hover: rgba(16, 185, 129, 0.09);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --cyan-soft: rgba(6, 182, 212, 0.14);

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.14);

  --grad-brand: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-brand-text: linear-gradient(110deg, #34d399 0%, #22d3ee 58%, #fbbf24 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 44px -14px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 20px 50px -16px rgba(16, 185, 129, 0.22);

  --radius: 14px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --container: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --bg-terminal: #111114;
  --bg-input: #f4f4f5;
  --bg-hover: rgba(5, 150, 105, 0.07);

  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --emerald: #047857;
  --emerald-bright: #047857;
  --cyan: #0e7490;
  --cyan-bright: #0e7490;
  --amber: #92400e;
  --rose: #be123c;

  --accent: #047857;
  --accent-strong: #065f46;
  --accent-soft: rgba(5, 150, 105, 0.11);
  --cyan-soft: rgba(8, 145, 178, 0.11);

  --success: #047857;
  --success-soft: rgba(5, 150, 105, 0.12);
  --warning: #92400e;
  --warning-soft: rgba(217, 119, 6, 0.13);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.11);

  --grad-brand-text: linear-gradient(110deg, #047857 0%, #0891b2 60%, #b45309 100%);

  --shadow-sm: 0 1px 4px rgba(9, 9, 11, 0.05);
  --shadow-md: 0 14px 36px -14px rgba(9, 9, 11, 0.12);
  --shadow-glow: 0 0 0 1px rgba(5, 150, 105, 0.25), 0 18px 36px -14px rgba(5, 150, 105, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.58;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Developer Matrix Grid + Ambient Emerald/Cyan Corner Glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 10%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 10%, #000 15%, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 40% at 72% -10%, rgba(16, 185, 129, 0.17), transparent 68%),
    radial-gradient(ellipse 52% 32% at 20% 0%, rgba(6, 182, 212, 0.10), transparent 66%);
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.055) 1px, transparent 1px);
}
[data-theme="light"] body::after {
  background:
    radial-gradient(ellipse 68% 36% at 72% -12%, rgba(5, 150, 105, 0.09), transparent 66%),
    radial-gradient(ellipse 50% 28% at 20% -2%, rgba(8, 145, 178, 0.07), transparent 65%);
}

.is-hidden {
  display: none !important;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--cyan-bright);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: #04130f;
  padding: 0.55rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Sticky Cyber-Dev Navbar with Sleek Compact Shield Pill (NO Giant Green Box)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #05130f;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.34);
}

/* Compact Privacy Shield Pill replacing old bulky banner */
.shield-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.09);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.shield-pill:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.17);
  color: var(--emerald-bright);
  text-decoration: none;
  transform: translateY(-1px);
}
.shield-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 2.4s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}
.nav-links > a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.36rem 0.58rem;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  padding: 0.34rem 0.52rem 0.34rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.cmdk-trigger:hover {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.kbd-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.36rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.11);
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease;
}
.support-pill:hover {
  transform: translateY(-1px);
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.19);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.36rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

main {
  flex: 1;
  padding: 1.85rem 0 4.25rem;
}

/* ==========================================================================
   Hero Split + Interactive Warp Mini-Workbench (Above the Fold)
   ========================================================================== */
.hero-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.3rem;
  animation: fadeSlideUp 0.52s var(--ease-out) both;
}

@media (max-width: 1020px) {
  .hero-workbench {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
}

.hero-copy h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 0.99rem;
  line-height: 1.62;
}

/* Raycast-style inline Command Palette Bar inside Hero */
.hero-palette-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  padding: 0.68rem 0.85rem 0.68rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm), var(--specular);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s var(--ease-out);
}
.hero-palette-bar:hover {
  border-color: var(--emerald);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14), var(--shadow-sm);
}
.hero-palette-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-palette-left svg {
  color: var(--emerald);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Warp-Style Interactive Terminal Mini-Workbench */
.terminal-window {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: var(--bg-terminal);
  color: #f4f4f5;
  box-shadow: var(--shadow-glow), var(--specular);
}

.terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.12),
    rgba(6, 182, 212, 0.05) 45%,
    transparent 74%
  );
}
.terminal-window:hover::after {
  opacity: 1;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.chrome-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chrome-dot.dot-red { background: #ef4444; opacity: 0.82; }
.chrome-dot.dot-yellow { background: #f59e0b; opacity: 0.82; }
.chrome-dot.dot-green { background: #10b981; opacity: 0.88; }

.wb-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.34rem 0.68rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.18s ease;
}
.wb-tab:hover {
  color: #fafafa;
}
.wb-tab.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.22));
  color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.terminal-body {
  padding: 0.95rem 1.05rem;
  position: relative;
  z-index: 1;
}

.term-input-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.72rem;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #d4d4d8;
  overflow: hidden;
}
.term-prompt {
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}
.term-input-snippet {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a1a1aa;
}

.term-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.58rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e4e4e7;
}
.term-chip strong {
  color: #22d3ee;
}
.term-chip.chip-warn strong {
  color: #fbbf24;
}
.term-chip.chip-danger strong {
  color: #fb7185;
}
.term-chip.chip-ok strong {
  color: #34d399;
}

.term-pre {
  margin: 0;
  padding: 0.82rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #e4e4e7;
  max-height: 205px;
  overflow: auto;
  white-space: pre;
}

.term-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.term-bar-row {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.term-bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.24rem;
  color: #e4e4e7;
}
.term-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.term-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.35s var(--ease-out);
}
.term-bar-fill.status-danger {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.term-bar-fill.status-warning {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.term-diag-mini {
  padding: 0.52rem 0.72rem;
  border-radius: 7px;
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.76rem;
  color: #fde68a;
  margin-top: 0.4rem;
}
.term-diag-mini.sev-danger {
  border-left-color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  position: relative;
  z-index: 1;
}

.term-exec-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #71717a;
}

.term-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-btn-ghost {
  padding: 0.42rem 0.72rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.term-btn-ghost:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
}

.term-btn-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.88rem;
  border-radius: 7px;
  background: var(--grad-brand);
  color: #04130f;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s var(--ease-out), filter 0.16s ease;
}
.term-btn-open:hover {
  color: #04130f;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ==========================================================================
   Hub Search, Category Filter & Spotlight Tool Cards
   ========================================================================== */
.hub-controls {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.55rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-input {
  width: 100%;
  padding: 0.78rem 1rem 0.78rem 2.55rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.88rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.results-count {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
}
.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.filter-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.tool-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm), var(--specular);
  transition: transform 0.2s var(--ease-out), border-color 0.18s ease, box-shadow 0.2s ease;
  color: var(--text);
  animation: fadeSlideUp 0.48s var(--ease-out) both;
}
.tool-card:nth-child(2) { animation-delay: 0.03s; }
.tool-card:nth-child(3) { animation-delay: 0.06s; }
.tool-card:nth-child(4) { animation-delay: 0.09s; }
.tool-card:nth-child(5) { animation-delay: 0.12s; }
.tool-card:nth-child(n+6) { animation-delay: 0.15s; }

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.14),
    rgba(6, 182, 212, 0.05) 45%,
    transparent 74%
  );
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.52);
  box-shadow: var(--shadow-glow), var(--specular);
  color: var(--text);
  text-decoration: none;
}
.tool-card:hover::after {
  opacity: 1;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.68rem;
}

.tool-card h2,
.tool-card h3 {
  margin: 0 0 0.42rem;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tool-card p {
  margin: 0 0 1rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.54;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.72rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--emerald-bright);
}
.tool-card-footer .arrow {
  transition: transform 0.18s var(--ease-out);
}
.tool-card:hover .tool-card-footer .arrow {
  transform: translateX(4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.badge-muted {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
}
.badge-info {
  background: var(--cyan-soft);
  color: var(--cyan-bright);
  border-color: rgba(6, 182, 212, 0.3);
}
.badge-success {
  background: var(--success-soft);
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.32);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.34);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.34);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

/* ==========================================================================
   Tool Pages, Sliding Segmented Controls & Cyber-Dev Workbench
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--text-secondary);
}

.calc-header {
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.45s var(--ease-out) both;
}
.calc-header h1 {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.calc-header .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.99rem;
  max-width: 78ch;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 1.45rem;
  align-items: start;
  margin-bottom: 2.25rem;
}
@media (max-width: 960px) {
  .workbench {
    grid-template-columns: 1fr;
  }
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-md), var(--specular);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.09),
    transparent 70%
  );
}
.panel:hover::after {
  opacity: 1;
}

.panel-title {
  margin: 0 0 0.95rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.preset-btn {
  padding: 0.34rem 0.68rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.15s var(--ease-out);
}
.preset-btn:hover {
  border-color: var(--emerald);
  color: var(--text);
  background: var(--accent-soft);
}
.preset-btn.is-active {
  border-color: var(--emerald);
  background: var(--accent-soft);
  color: var(--emerald-bright);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  position: relative;
  z-index: 1;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.field label {
  font-size: 0.86rem;
  font-weight: 700;
}
.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  padding: 0.64rem 0.82rem;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.select-control {
  font-family: var(--font-sans);
  font-weight: 600;
}
.textarea-control {
  min-height: 225px;
  resize: vertical;
  line-height: 1.52;
  tab-size: 2;
}
.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Visually hidden native select synced with animated Segmented Pill Control */
.sr-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.segmented-control {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.segmented-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(16, 185, 129, 0.5);
  transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .segmented-thumb {
  background: linear-gradient(135deg, #059669, #0891b2);
  border-color: transparent;
}

.segmented-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.44rem 0.45rem;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: color 0.16s ease;
}
.segmented-btn:hover {
  color: var(--text);
}
.segmented-btn.is-active {
  color: #ffffff;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.64rem;
  border-radius: 7px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  background: var(--accent-soft);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-upload-btn:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.22);
}
.file-upload-btn input[type="file"] {
  display: none;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.86rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.toggle-wrap input[type="checkbox"] {
  width: 1.12rem;
  height: 1.12rem;
  accent-color: var(--emerald);
  cursor: pointer;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.54rem 0.94rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s var(--ease-out);
}
.btn:hover {
  border-color: var(--emerald);
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #04130f;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.45);
}
.btn-primary:hover {
  color: #04130f;
  filter: brightness(1.07);
}

/* ==========================================================================
   Parser Output Panel, Diagnostics, Bars & Warp Code Window
   ========================================================================== */
.primary-kpi {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.06) 65%, transparent);
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-bright);
}
.kpi-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.48rem, 2.7vw, 2.02rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0.26rem 0;
}
.kpi-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  margin-bottom: 1.05rem;
}
@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
.metric-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.74rem 0.88rem;
}
.metric-box-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-box-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.16rem;
}

.diagnostics-list {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  margin-bottom: 1.1rem;
}
.diag-item {
  padding: 0.68rem 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  background: var(--bg-input);
  font-size: 0.84rem;
}
.diag-item.sev-danger {
  border-left-color: var(--rose);
  background: var(--danger-soft);
}
.diag-item.sev-warning {
  border-left-color: var(--amber);
  background: var(--warning-soft);
}
.diag-item.sev-success {
  border-left-color: var(--emerald);
  background: var(--success-soft);
}
.diag-title {
  font-weight: 700;
  color: var(--text);
  display: block;
}
.diag-detail {
  color: var(--text-secondary);
}

/* Warp-Style Output Code Window */
.code-output-wrap {
  margin-top: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0a0d;
  color: #e4e4e7;
}
.code-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.56rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #a1a1aa;
  flex-wrap: wrap;
}
.code-output-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.code-output-actions {
  display: flex;
  gap: 0.4rem;
}
.code-output-actions .btn {
  padding: 0.3rem 0.64rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}
.code-output-actions .btn:hover {
  border-color: var(--emerald);
  color: #34d399;
}
.code-pre {
  margin: 0;
  padding: 0.95rem 1rem;
  max-height: 360px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.52;
  color: #e4e4e7;
  white-space: pre;
}

/* Visual Bars */
.bars-section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.bars-section h3 {
  margin: 0 0 0.78rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bar-row {
  margin-bottom: 0.75rem;
}
.bar-row:last-child {
  margin-bottom: 0;
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.bar-label {
  font-weight: 600;
  color: var(--text);
}
.bar-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.bar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.38s var(--ease-out);
}
.bar-fill.status-success { background: linear-gradient(90deg, #059669, #34d399); }
.bar-fill.status-warning { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bar-fill.status-danger { background: linear-gradient(90deg, #e11d48, #fb7185); }
.bar-fill.status-muted { background: linear-gradient(90deg, #52525b, #a1a1aa); }

/* Sponsor Slot */
.sponsor-slot {
  margin: 2rem 0;
  padding: 1.1rem 1.3rem;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(6, 182, 212, 0.04));
}
.sponsor-slot-copy strong {
  display: block;
  font-size: 0.94rem;
  margin-top: 0.25rem;
}
.sponsor-slot-copy p {
  margin: 0.16rem 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Content Sections, Tables, FAQs, Prose */
.content-section {
  margin-bottom: 1.95rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm), var(--specular);
}
.content-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.content-section p,
.content-section li {
  color: var(--text-secondary);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
th,
td {
  padding: 0.74rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: var(--bg-hover);
}
tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  transition: border-color 0.16s ease;
}
.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.42);
}
.faq-item summary {
  padding: 0.92rem 1.1rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.12rem;
  color: var(--emerald);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0.85rem 1.1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.91rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0.9rem;
}

.prose-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-md), var(--specular);
}
.prose-card h1 {
  margin-top: 0;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.prose-card h2 {
  margin-top: 1.7rem;
  font-size: 1.2rem;
}
.prose-card p,
.prose-card li {
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.15rem 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Support Modal */
.support-modal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  color: var(--text);
  padding: 1.5rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-md);
}
.support-modal::backdrop {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(8px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 800;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

/* ==========================================================================
   Ctrl+K Command Palette & Floating Toast Notifications
   ========================================================================== */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
}
.cmdk-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.16s ease both;
}

.cmdk-dialog {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card-solid);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px -16px rgba(0, 0, 0, 0.78);
  overflow: hidden;
  animation: cmdkPop 0.2s var(--ease-out) both;
}
.cmdk-input-bar {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.88rem 1.08rem;
  border-bottom: 1px solid var(--border);
}
.cmdk-input-bar svg {
  color: var(--emerald);
  flex-shrink: 0;
}
.cmdk-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
}
.cmdk-input::placeholder {
  color: var(--text-muted);
}
.cmdk-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}
.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.66rem 0.84rem;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}
.cmdk-item:hover,
.cmdk-item.is-selected {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text);
  text-decoration: none;
}
.cmdk-item-title {
  font-size: 0.89rem;
  font-weight: 700;
  display: block;
}
.cmdk-item-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}
.cmdk-empty {
  padding: 1.4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.cmdk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 1.08rem;
  border-top: 1px solid var(--border);
  background: var(--bg-input);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.66rem 0.98rem;
  border-radius: 10px;
  background: var(--bg-card-solid);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--emerald-bright);
  font-size: 0.76rem;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cmdkPop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }
  .header-inner {
    min-height: auto;
    gap: 0.4rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .brand-group {
    width: 100%;
    justify-content: space-between;
  }
  .shield-pill {
    display: none;
  }
  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links > a,
  .cmdk-trigger,
  .support-pill,
  .theme-toggle {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .cmdk-trigger .cmdk-label {
    display: none;
  }
}

/* 5-App Cross-Link Footer Network */
.footer-network {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.network-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 960px) {
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .network-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.network-card {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.68rem 0.78rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.network-card:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text);
}
.network-card.is-current {
  border-color: rgba(16, 185, 129, 0.42);
  background: var(--accent-soft);
}
.network-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}
.network-current-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--bg-card-solid);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-bright);
  white-space: nowrap;
}
.network-card span.network-desc {
  font-size: 0.74rem;
  line-height: 1.38;
  color: var(--text-secondary);
}

.not-found-card {
  text-align: center;
  padding: 3rem 1.8rem;
  max-width: 720px;
  margin: 1rem auto;
}
.not-found-code {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--emerald-bright);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
