/* ==========================================================================
   Zeno Download Manager Brand Design System — Studio Light & Obsidian Dark
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --bg-elevated: #ffffff;
  --bg-subtle: #edf2ef;
  --bg-code: #eef3f0;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-card: #ffffff;
  --surface-card-hover: #ffffff;
  --border: rgba(12, 24, 20, 0.09);
  --border-strong: rgba(12, 24, 20, 0.16);
  --border-accent: rgba(5, 150, 105, 0.34);

  --ink: #0b1411;
  --ink-2: #44554f;
  --ink-3: #6b7c75;

  --accent: #059669;
  --accent-hover: #047857;
  --accent-ink: #ffffff;
  --accent-soft: rgba(5, 150, 105, 0.1);
  --accent-glow: rgba(16, 185, 129, 0.16);

  --shadow-xs: 0 1px 2px rgba(10, 20, 16, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 20, 16, 0.05), 0 1px 2px rgba(10, 20, 16, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(10, 24, 18, 0.09), 0 2px 6px rgba(10, 24, 18, 0.04);
  --shadow-lg: 0 24px 60px -15px rgba(10, 24, 18, 0.14), 0 4px 14px rgba(10, 24, 18, 0.05);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b0a;
    --bg-elevated: #0e1513;
    --bg-subtle: #141e1b;
    --bg-code: #0a100e;
    --surface-glass: rgba(11, 17, 15, 0.78);
    --surface-card: #0e1513;
    --surface-card-hover: #121c19;
    --border: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(52, 211, 153, 0.36);

    --ink: #f1f6f4;
    --ink-2: #a0b3ac;
    --ink-3: #6e827a;

    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-ink: #04150e;
    --accent-soft: rgba(16, 185, 129, 0.13);
    --accent-glow: rgba(16, 185, 129, 0.22);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 16px 36px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 28px 70px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b0a;
  --bg-elevated: #0e1513;
  --bg-subtle: #141e1b;
  --bg-code: #0a100e;
  --surface-glass: rgba(11, 17, 15, 0.78);
  --surface-card: #0e1513;
  --surface-card-hover: #121c19;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(52, 211, 153, 0.36);

  --ink: #f1f6f4;
  --ink-2: #a0b3ac;
  --ink-3: #6e827a;

  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-ink: #04150e;
  --accent-soft: rgba(16, 185, 129, 0.13);
  --accent-glow: rgba(16, 185, 129, 0.22);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 16px 36px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 28px 70px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 440px at 50% -80px, var(--accent-glow), transparent 72%);
  background-repeat: no-repeat;
  overflow-x: clip;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink);
  word-break: break-word;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-name-accent {
  color: var(--accent);
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  white-space: nowrap;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 140ms ease, color 140ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-subtle);
  font-weight: 600;
}

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

.mobile-nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.mobile-nav-toggle:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.mobile-nav-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.mobile-nav-toggle:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.mobile-nav-toggle svg[hidden] {
  display: none;
}

.mobile-nav {
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 120ms ease, color 120ms ease;
}

.mobile-nav a:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.mobile-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.mobile-nav-cta {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 600 !important;
}

/* Theme Dropdown */
.theme-dropdown {
  position: relative;
}

.theme-trigger {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.theme-trigger:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.theme-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-trigger-icon[hidden] {
  display: none;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-menu[hidden] {
  display: none;
}

.theme-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease, color 120ms ease;
}

.theme-option:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.theme-option.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: transparent;
  box-shadow: 0 10px 24px -4px var(--accent-glow);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 13px;
}

.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 9px;
}

.nav-cta {
  height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  letter-spacing: -0.005em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.badge-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Hero & Product Showcase
   ========================================================================== */

.hero {
  padding: 58px 0 36px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  margin: 18px auto 16px;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* App Window Showcase Frame */
.showcase-wrap {
  margin: 48px auto 0;
  max-width: 980px;
  position: relative;
}

.app-frame {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: inline-flex;
  gap: 7px;
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tl-red { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green { background: #28c840; }

.app-titlebar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.app-body {
  display: grid;
  grid-template-columns: 205px 1fr;
  min-height: 290px;
}

.app-sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: var(--bg-code);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.app-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.app-nav-count {
  font-size: 11px;
  opacity: 0.8;
}

.app-main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.app-toolbar-title {
  font-size: 13.5px;
  font-weight: 700;
}

.app-toolbar-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}

.mock-row {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}

.mock-row > * {
  min-width: 0;
}

.mock-row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-row-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.mock-row-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mock-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #34d399);
}

/* Floating IDM-style Mini Window overlay card */
.mini-float-card {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 280px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.mini-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.mini-float-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.mini-float-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 8px;
}

/* ==========================================================================
   Stats Strip & Sections
   ========================================================================== */

.metrics-strip {
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.metric-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.section {
  padding: 64px 0;
}

.section-compact {
  padding: 40px 0 64px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-title {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section-sub {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-featured {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(500px 180px at 0% 0%, var(--accent-soft), transparent 65%),
    var(--surface-card);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.card-lead {
  margin-bottom: 18px !important;
}

.card-spaced {
  margin-top: 24px;
}

/* OS Spotlight Banner on Download Page */
.os-spotlight {
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(620px 260px at 95% 0%, var(--accent-glow), transparent 70%),
    var(--surface-card);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.os-spotlight-copy {
  max-width: 580px;
}

.os-spotlight h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.os-spotlight p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Platform Cards on Download Page */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-os-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.platform-os-title h3 {
  margin: 0;
}

.platform-specs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.platform-specs li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}

.platform-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.platform-specs code {
  white-space: nowrap;
}

/* Browser Extension Section — Clean Tabbed 3-Step Cards */
.ext-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.ext-recommended-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
}

.ext-recommended-box > div > strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.ext-recommended-box p strong {
  color: var(--ink);
  font-weight: 600;
}

.ext-recommended-box .btn {
  flex-shrink: 0;
}

.ext-recommended-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 780px;
}

.ext-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ext-tab {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.ext-tab:hover {
  color: var(--ink);
}

.ext-tab.active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.ext-panel[hidden] {
  display: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-code);
  border: 1px solid var(--border);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  margin-bottom: 10px;
}

.step-card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ext-path-bar {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Developer & Bottom CTA Cards */
.dev-card,
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dev-info {
  max-width: 580px;
}

.dev-card h2,
.cta-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta-card {
  border-color: var(--border-accent);
  background:
    radial-gradient(520px 200px at 100% 50%, var(--accent-glow), transparent 72%),
    var(--surface-card);
}

/* Prose pages (Privacy / Terms) */
.prose {
  max-width: 780px;
  margin: 48px auto 72px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.prose h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prose .updated {
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 24px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-3);
}

.footer-row a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */

@media (max-width: 960px) {
  .platform-grid,
  .grid-3,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mini-float-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }
  .site-header {
    padding: 10px 0;
  }
  .nav-row {
    gap: 8px;
    padding: 8px 10px 8px 12px;
  }
  .brand {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .brand-logo-wrap {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .brand-text {
    gap: 6px;
    min-width: 0;
  }
  .brand-name {
    font-size: 18.5px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-actions {
    flex-shrink: 0;
    gap: 8px;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .theme-trigger {
    height: 34px;
    padding: 0 8px;
  }
  .nav-cta {
    display: none;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
  }
  .platform-grid,
  .grid-3,
  .grid-2,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .brand-badge,
  .brand-sub {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .nav-cta {
    display: none;
  }
}

/* ==========================================================================
   Video Demos Showcase & Modal Player
   ========================================================================== */

.demo-section {
  border-top: 1px solid var(--border);
  background: radial-gradient(760px 260px at 50% 0%, var(--accent-soft), transparent 72%);
}

.demo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}

.demo-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.demo-stage-frame,
.video-modal-frame {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070b10;
}

.video-modal-frame {
  max-height: min(62dvh, 480px);
}

.demo-stage-frame video,
.video-modal-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070b10;
}

.demo-stage-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #f4f7fb;
  background: radial-gradient(circle at 30% 25%, rgba(16, 185, 129, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(10, 15, 22, 0.88), rgba(7, 11, 16, 0.96));
  transition: background 160ms ease;
}

.demo-stage-cover:hover {
  background: radial-gradient(circle at 30% 25%, rgba(16, 185, 129, 0.32), transparent 65%),
    linear-gradient(180deg, rgba(12, 18, 26, 0.86), rgba(7, 11, 16, 0.94));
}

.demo-stage-cover[hidden] {
  display: none;
}

.demo-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
  transition: transform 160ms ease;
}

.demo-stage-cover:hover .demo-play-btn {
  transform: scale(1.06);
}

.demo-cover-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.demo-cover-sub {
  font-size: 12.5px;
  color: rgba(244, 247, 251, 0.68);
}

.video-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(7, 11, 16, 0.45);
}

.video-loading-overlay[hidden] {
  display: none;
}

.video-loading-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f4f7fb;
  background: rgba(15, 22, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-stage-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 0;
}

.demo-stage-copy {
  min-width: 0;
  flex: 1;
}

.demo-stage-copy h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.demo-stage-copy p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.demo-stage-actions {
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  min-width: 0;
}

.demo-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
}

.demo-playlist-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.demo-playlist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.demo-item:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}

.demo-item.active {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent 80%), var(--bg-elevated);
}

.demo-item-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.demo-item.active .demo-item-num {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.demo-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demo-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-item-top strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.demo-item-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

.video-modal-backdrop[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal {
  width: min(860px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 20px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-modal-head h3 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

.video-modal-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.video-modal-close:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-accent);
}

.video-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.video-modal-tabs .ext-tab {
  padding: 7px 12px;
  font-size: 13px;
}

.video-modal-tabs .ext-tab.active {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.video-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-modal-foot p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}

@media (max-width: 960px) {
  .demo-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .demo-playlist {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .demo-showcase {
    padding: 14px;
    border-radius: 16px;
  }
  .demo-stage-meta {
    flex-direction: column;
    gap: 12px;
  }
  .demo-stage-actions {
    width: 100%;
  }
  .demo-stage-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .ext-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .ext-tabs .ext-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12.5px;
    padding: 7px 11px;
  }
  .video-modal-backdrop {
    padding: 12px;
  }
  .video-modal {
    padding: 15px;
    gap: 12px;
    border-radius: 16px;
  }
  .video-modal-head h3 {
    font-size: 16.5px;
  }
  .video-modal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
  }
  .video-modal-tabs::-webkit-scrollbar {
    display: none;
  }
  .video-modal-tabs .ext-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12.5px;
    padding: 6px 11px;
  }
  .video-modal-frame {
    border-radius: 10px;
  }
  .video-modal-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .video-modal-foot p {
    min-width: 0;
    font-size: 13px;
  }
  .video-modal-foot [data-vm-external] {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.app-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.app-row-title {
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-row-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}
.app-bar {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-top: 8px;
}
.app-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.app-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  white-space: nowrap;
}

.demo-stage-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(circle at 35% 30%, #0d2b22 0%, #071410 70%, #040a08 100%);
  color: #f1f6f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  cursor: pointer;
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease;
}
.demo-stage-poster:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.demo-stage-poster strong {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
}
.demo-stage-poster span:last-child {
  font-size: 12.5px;
  color: #a0b3ac;
}
.demo-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

.contact-inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .app-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .app-row > div:first-child {
    width: 100%;
  }
}

html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
