:root {
  color-scheme: light;
  --bg-navy: #0b1222;
  --bg-navy-elevated: #14213b;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-overlay-start: rgba(241, 245, 249, 0.92);
  --bg-overlay-end: rgba(241, 245, 249, 0.96);
  --brand-blue: #2563eb;
  --brand-indigo: #3f51b5;
  --brand-orange: #ff7a00;
  --brand-orange-hover: #ea580c;
  --brand-cyan: #00b8d4;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #0b1222;
  --text-on-dark: #f8fafc;
  --link-color: #2563eb;
  --link-hover: #3f51b5;
  --tag-color: #3f51b5;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 40px rgba(11, 18, 34, 0.22);
  --code-bg: #e2e8f0;
  --code-text: #0b1222;
  --input-bg: #ffffff;
  --clear-bg: #e2e8f0;
  --price-bg: #fff7ed;
  --price-border: #fed7aa;
  --price-text: #9a3412;
  --tile-hover-bg: #eff6ff;
  --chip-active-bg: #0b1222;
  --chip-active-border: #0b1222;
  --chip-active-text: #ffffff;
  --preview-bg: #0b1222;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-sans: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container-max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-surface: #0b1222;
    --bg-card: #131d33;
    --bg-subtle: #1a2742;
    --bg-overlay-start: rgba(8, 13, 25, 0.92);
    --bg-overlay-end: rgba(11, 18, 34, 0.96);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-heading: #f8fafc;
    --link-color: #60a5fa;
    --link-hover: #93c5fd;
    --tag-color: #67e8f9;
    --border-subtle: #253352;
    --border-strong: #364970;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --code-bg: #1e2e4d;
    --code-text: #67e8f9;
    --input-bg: #0e172a;
    --clear-bg: #263656;
    --price-bg: rgba(255, 122, 0, 0.16);
    --price-border: rgba(255, 122, 0, 0.45);
    --price-text: #fdba74;
    --tile-hover-bg: #223254;
    --chip-active-bg: #ff7a00;
    --chip-active-border: #ff7a00;
    --chip-active-text: #0b1222;
    --preview-bg: #080e1c;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-surface: #0b1222;
  --bg-card: #131d33;
  --bg-subtle: #1a2742;
  --bg-overlay-start: rgba(8, 13, 25, 0.92);
  --bg-overlay-end: rgba(11, 18, 34, 0.96);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --tag-color: #67e8f9;
  --border-subtle: #253352;
  --border-strong: #364970;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --code-bg: #1e2e4d;
  --code-text: #67e8f9;
  --input-bg: #0e172a;
  --clear-bg: #263656;
  --price-bg: rgba(255, 122, 0, 0.16);
  --price-border: rgba(255, 122, 0, 0.45);
  --price-text: #fdba74;
  --tile-hover-bg: #223254;
  --chip-active-bg: #ff7a00;
  --chip-active-border: #ff7a00;
  --chip-active-text: #0b1222;
  --preview-bg: #080e1c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(180deg, var(--bg-overlay-start), var(--bg-overlay-end)),
    url("../img/background.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-main {
  flex: 1 0 auto;
  padding-bottom: 56px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-link:hover {
  color: #ffffff;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 -2px 0 var(--brand-orange);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Mobile Slide-Out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 18, 34, 0.6);
  backdrop-filter: blur(2px);
}

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: min(300px, 85vw);
  background: var(--bg-navy);
  color: var(--text-on-dark);
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  box-shadow: var(--shadow-lg);
}

.site-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-dark);
  font-size: 1.25rem;
  cursor: pointer;
}

.drawer-section {
  margin-bottom: 20px;
}

.drawer-heading {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.drawer-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.4);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--brand-orange);
  color: #0b1222;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--link-color);
  color: var(--link-color);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Cards & Shared Content Surfaces */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-navy-elevated));
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--brand-orange);
}

.card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-body {
  padding: 20px;
}

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

.page-header-band {
  padding: 32px 0 22px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--text-heading);
}

.page-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 72ch;
}

.cmd-code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 500;
  word-break: break-word;
}

/* Home Hero */
.hero-section {
  background: linear-gradient(135deg, rgba(11, 18, 34, 0.94), rgba(20, 33, 59, 0.92));
  color: var(--text-on-dark);
  padding: 40px 0 44px;
  border-bottom: 3px solid var(--brand-orange);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 184, 212, 0.14);
  border: 1px solid rgba(0, 184, 212, 0.35);
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-title .accent {
  color: var(--brand-orange);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.06rem;
  color: #cbd5e1;
  max-width: 54ch;
}

.hero-cta-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cta-panel {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.cta-panel p {
  margin: 0;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.cta-panel .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* Hero Showcase Player */
.showcase-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-navy);
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 10px;
}

.showcase-meta h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: #ffffff;
}

.showcase-meta p {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.showcase-pill img {
  width: 18px;
  height: 18px;
}

.showcase-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.showcase-pill.is-active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #0b1222;
  font-weight: 700;
}

/* Home Info Cards */
.home-cards-section {
  padding-top: 28px;
}

.featured-effects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}

.featured-effect-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.featured-effect-tile:hover {
  border-color: var(--link-color);
  background: var(--tile-hover-bg);
  color: var(--link-color);
}

.featured-effect-tile img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--text-heading);
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Effects Explorer */
.effects-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.toolbar-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 12px;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.text-input,
.select-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.text-input:focus,
.select-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--link-color);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  border: 0;
  background: var(--clear-bg);
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.results-badge {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--link-color);
  color: var(--link-color);
}

.chip.is-active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-border);
  color: var(--chip-active-text);
}

.effects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: start;
}

.effects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.effect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.effect-card.is-selected {
  border-color: var(--link-color);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.24), var(--shadow-md);
}

.effect-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.effect-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
}

.effect-title-block {
  min-width: 0;
  flex: 1;
}

.effect-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.effect-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-heading);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--price-bg);
  border: 1px solid var(--price-border);
  color: var(--price-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tag-color);
}

.effect-description {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.effect-meta-grid {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.meta-label {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 64px;
}

.command-builder {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.param-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.param-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.param-field .text-input,
.param-field .select-input {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.command-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--preview-bg);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
}

.command-preview-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #67e8f9;
  word-break: break-all;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-panel {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

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

.video-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-navy-elevated));
  color: #e2e8f0;
}

.video-placeholder img {
  width: min(200px, 55%);
  height: auto;
}

.video-panel-caption {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
}

/* How-To Tabs & Tables */
.tabs-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
  background: var(--bg-navy);
  border-bottom: 2px solid var(--brand-orange);
}

.tab-btn {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn[aria-selected="true"] {
  background: var(--bg-card);
  color: var(--text-heading);
}

.tab-panel {
  padding: 24px;
}

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

.guide-list {
  margin: 0 0 18px;
  padding-left: 20px;
}

.guide-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.how-to-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.how-to-table th,
.how-to-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.how-to-table th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-weight: 700;
}

/* Changelog & Known Issues */
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.changelog-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--brand-indigo);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.changelog-group h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text-heading);
}

.changelog-list {
  margin: 0;
  padding-left: 20px;
}

.changelog-list li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  background: var(--bg-navy);
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 28px 0;
}

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

.footer-heading {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* Animations */
@keyframes smooth-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.blink-smooth {
  animation: smooth-blink 0.5s ease-in-out 3;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .effects-layout {
    grid-template-columns: 1fr;
  }

  .video-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .toolbar-controls {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .header-actions .btn {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .featured-effects-grid {
    grid-template-columns: 1fr;
  }
}
