/* ==========================================================================
   HUZIKIT BRAND SYSTEM — MARKDOWN TO HTML CONVERTER
   Production Stylesheet: markdownhtml.css
   Color Identity: PURPLE / INDIGO (Strictly No Blue/Cyan)
   Typography: Lexend (Headings), Inter (Body/UI)
   ========================================================================== */

:root {
  /* Huzikit Locked Brand Palette */
  --ink: #15132b;
  --ink-soft: #4d4a6b;
  --ink-faint: #8985a8;
  --bg: #fcfbff;
  --bg-soft: #f4f2ff;
  --line: #e7e4f6;
  --line-soft: #f0eefb;
  --primary: #4f46e5;
  --primary-dark: #3b33c4;
  --primary-light: #eeebff;
  --accent: #7c3aed;
  --white: #ffffff;

  /* Functional Accents */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-heading:
    "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  /* Geometry & Radii (Mathematically Constrained) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Elevations */
  --shadow-subtle: 0 1px 2px rgba(21, 19, 43, 0.04);
  --shadow-sm: 0 2px 8px rgba(21, 19, 43, 0.06);
  --shadow-md: 0 6px 20px rgba(21, 19, 43, 0.08);
  --shadow-lg: 0 14px 36px rgba(21, 19, 43, 0.11);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.18);

  /* Fluid Spacing & Constraints */
  --max-width: 1240px;
  --header-height: 72px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONAL RULES (Zero Horizontal Overflow Architecture)
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure images and media never breach containers */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent);
}

/* Base Container */
.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, var(--max-width));
  }
}

/* ==========================================================================
   HEADER & GLOBAL NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(252, 251, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.brand-logo span.brand-dot {
  color: var(--accent);
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover > .nav-link {
  color: var(--primary);
  background-color: var(--bg-soft);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron-icon,
.nav-item:focus-within .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
  list-style: none;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  color: var(--primary);
  background: var(--bg-soft);
  padding-left: 22px;
}

.dropdown-link.active-item {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover,
.search-trigger-btn:focus-visible {
  border-color: var(--primary);
  color: var(--ink-soft);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-shortcut {
  display: none;
  font-size: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  color: var(--ink-faint);
}

@media (min-width: 640px) {
  .search-shortcut {
    display: inline-block;
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none;
  }
}

.mobile-toggle-btn:hover {
  background: var(--line-soft);
  border-color: var(--ink-faint);
}

.hamburger-line {
  transition: all 0.25s ease;
  transform-origin: center;
}

/* Mobile Menu Backdrop & Drawer */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 43, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--white);
  z-index: 1050;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-close-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile Accordions */
.mobile-accordion-item {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-left: 12px;
}

.mobile-accordion-item.expanded .mobile-accordion-content {
  max-height: 500px;
  padding-bottom: 12px;
}

.mobile-accordion-item.expanded .chevron-icon {
  transform: rotate(180deg);
}

.mobile-sublink {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.mobile-sublink:hover,
.mobile-sublink:focus-visible {
  color: var(--primary);
}

.mobile-direct-link {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================================================
   HERO SECTION & 3D CONVERSION VISUAL
   ========================================================================== */

.hero-section {
  padding: 40px 0 24px 0;
  position: relative;
  overflow: visible;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 56px 0 32px 0;
  }
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

/* Breadcrumb */
.breadcrumb-nav {
  margin-bottom: 16px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.breadcrumb-item a {
  color: var(--ink-soft);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Hero Badge */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--success);
  font-weight: 500;
  background: var(--success-bg);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw + 1rem, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-description {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 65ch;
  margin-bottom: 24px;
}

.hero-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  font-size: 0.8125rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* 3D Visual Transformation Stage (CSS Only / Zero Heavy Libs) */
.hero-visual-stage {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  min-width: 0;
}

.transformation-card-group {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-visual-stage:hover .transformation-card-group {
    transform: rotateX(4deg) rotateY(-6deg);
  }
}

.iso-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  min-width: 0;
  overflow: hidden;
}

.iso-card-markdown {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-soft) 100%);
  transform: translateZ(20px);
}

.iso-card-html {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
  transform: translateZ(35px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.iso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-weight: 600;
}

.iso-code-sample {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.5;
  background: rgba(231, 228, 246, 0.35);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
}

.iso-highlight-tag {
  color: var(--primary);
  font-weight: 600;
}

.iso-highlight-val {
  color: var(--accent);
}

.converter-connector-node {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: -4px 0;
  z-index: 2;
}

.node-pill {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.node-pulse-icon {
  width: 14px;
  height: 14px;
  animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .node-pulse-icon {
    animation: none;
  }
  .hero-visual-stage:hover .transformation-card-group {
    transform: none;
  }
}

/* ==========================================================================
   WORKSPACE: MAIN MARKDOWN CONVERTER
   ========================================================================== */

.workspace-section {
  padding: 16px 0 48px 0;
}

.workspace-container {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Dual Column Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

@media (min-width: 992px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: none;
  }
}

/* Common Workspace Panel Structure */
.workspace-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
}

.panel-editor-side {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 992px) {
  .panel-editor-side {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}

/* Panel Header Bar */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.panel-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.status-ready {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-typing {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.status-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.panel-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Standard Workspace Action Buttons */
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tool-btn:hover {
  background: var(--bg);
  border-color: var(--ink-faint);
  color: var(--ink);
}

.tool-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.tool-btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 600;
}

.tool-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.tool-btn-icon-only {
  padding: 6px;
  width: 32px;
  height: 32px;
}

/* Markdown Toolbar */
.markdown-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-separator {
  width: 1px;
  height: 18px;
  background-color: var(--line);
  margin: 0 4px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.tb-btn:hover {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--primary);
}

.tb-btn:focus-visible {
  outline: 2px solid var(--primary);
}

.tb-select {
  height: 30px;
  padding: 0 8px;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

/* Editor Input Area with Synchronized Line Numbers */
.editor-workspace-wrap {
  position: relative;
  display: flex;
  min-height: 480px;
  height: 520px;
  background: var(--white);
  overflow: hidden;
}

.line-numbers-gutter {
  width: 46px;
  padding: 16px 8px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
}

.editor-textarea-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.markdown-textarea {
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  tab-size: 2;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.markdown-textarea:focus {
  background: rgba(252, 251, 255, 0.5);
}

/* Drag & Drop Visual Overlay */
.drop-zone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 70, 229, 0.94);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.drop-zone-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drop-icon-pulse {
  width: 48px;
  height: 48px;
}

/* Hidden file upload input */
.hidden-file-input {
  display: none;
}

/* Panel Footer Info */
.panel-footer-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.stats-pill-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-pill-item strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   RIGHT PANEL: LIVE PREVIEW & HTML CODE VIEWER
   ========================================================================== */

/* Segmented View Switcher Tabs */
.view-tabs-group {
  display: inline-flex;
  padding: 3px;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

/* Output Display Container */
.output-display-stage {
  position: relative;
  min-height: 480px;
  height: 520px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* Tab 1: Live Rendered Preview Pane */
.preview-pane {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  background: var(--white);
  display: block;
}

.preview-pane.hidden {
  display: none;
}

/* High-Quality Typography in Preview */
.rendered-markdown-content {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rendered-markdown-content h1,
.rendered-markdown-content h2,
.rendered-markdown-content h3,
.rendered-markdown-content h4,
.rendered-markdown-content h5,
.rendered-markdown-content h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.rendered-markdown-content h1:first-child,
.rendered-markdown-content h2:first-child,
.rendered-markdown-content h3:first-child {
  margin-top: 0;
}

.rendered-markdown-content h1 {
  font-size: 1.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3em;
}

.rendered-markdown-content h2 {
  font-size: 1.45rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.3em;
}

.rendered-markdown-content h3 {
  font-size: 1.25rem;
}
.rendered-markdown-content h4 {
  font-size: 1.1rem;
}
.rendered-markdown-content h5 {
  font-size: 1rem;
}
.rendered-markdown-content h6 {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.rendered-markdown-content p {
  margin-bottom: 1.1em;
}

.rendered-markdown-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rendered-markdown-content a:hover {
  color: var(--accent);
}

.rendered-markdown-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 18px;
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2em 0;
  color: var(--ink-soft);
  font-style: italic;
}

.rendered-markdown-content ul,
.rendered-markdown-content ol {
  margin: 1em 0;
  padding-left: 1.8em;
}

.rendered-markdown-content li {
  margin-bottom: 0.35em;
}

.rendered-markdown-content li input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary);
}

.rendered-markdown-content hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 2em 0;
}

/* Code Blocks & Inline Code */
.rendered-markdown-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-soft);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

.rendered-markdown-content pre {
  background: #1b1834;
  color: #f8f7ff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.3em 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rendered-markdown-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Tables inside Markdown Preview */
.rendered-markdown-content .table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.3em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.rendered-markdown-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.rendered-markdown-content th,
.rendered-markdown-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.rendered-markdown-content th {
  background: var(--bg-soft);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
}

.rendered-markdown-content tr:nth-child(even) {
  background: var(--bg);
}

.rendered-markdown-content img {
  border-radius: var(--radius-md);
  margin: 1em 0;
  box-shadow: var(--shadow-sm);
}

/* Tab 2: HTML Source Code View Pane */
.html-source-pane {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #15132b;
}

.html-source-pane.hidden {
  display: none;
}

.html-code-pre {
  flex: 1;
  padding: 20px 24px;
  overflow: auto;
  color: #e2ddf8;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

/* Feedback Notification Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--success);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Preset Snippets Quick Bar */
.sample-presets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.preset-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.preset-chip-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================================
   STATISTICS & METRICS DASHBOARD
   ========================================================================== */

.metrics-section {
  padding: 32px 0;
}

.section-header-compact {
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

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

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.metric-sub {
  font-size: 0.6875rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ==========================================================================
   HTML ANALYZER & SYNTAX BREAKDOWN
   ========================================================================== */

.analyzer-section {
  padding: 24px 0 40px 0;
}

.analyzer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.analyzer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .analyzer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.analyzer-box {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.analyzer-box-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analyzer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8125rem;
}

.analyzer-row:last-child {
  border-bottom: none;
}

.analyzer-row-name {
  color: var(--ink-soft);
}

.analyzer-row-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   MARKDOWN CHEAT SHEET (Interactive Quick-Copy Cards)
   ========================================================================== */

.cheatsheet-section {
  padding: 40px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cheatsheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .cheatsheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cheatsheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cheat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.cheat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cheat-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.cheat-copy-btn {
  padding: 4px 8px;
  font-size: 0.6875rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.cheat-copy-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.cheat-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line-soft);
}

/* ==========================================================================
   LOCAL HISTORY PANEL (Client-side Only)
   ========================================================================== */

.history-section {
  padding: 36px 0;
}

.history-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.history-item:hover {
  border-color: var(--line);
  background: var(--bg-soft);
}

.history-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-snippet {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 500;
}

.history-timestamp {
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-empty-state {
  text-align: center;
  padding: 24px;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

/* ==========================================================================
   GEO & AI SEARCH OPTIMIZATION (Answer-First Quick Answers)
   ========================================================================== */

.geo-answers-section {
  padding: 40px 0;
}

.geo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .geo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.geo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.geo-question {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.geo-question::before {
  content: "Q:";
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
}

.geo-answer {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   EDUCATIONAL CONTENT (In-Depth Technical Reference)
   ========================================================================== */

.educational-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.edu-prose {
  max-width: 820px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.edu-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.8em;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4em;
}

.edu-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.edu-prose p {
  margin-bottom: 1.3em;
}

.edu-prose ul,
.edu-prose ol {
  margin: 1.2em 0 1.5em 2em;
}

.edu-prose li {
  margin-bottom: 0.5em;
}

.edu-prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-soft);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

.edu-highlight-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.8em 0;
}

.edu-highlight-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ SECTION (Accessible Accordion)
   ========================================================================== */

.faq-section {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.faq-container {
  max-width: 820px;
  margin-inline: auto;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-item.active .faq-question-btn {
  color: var(--primary);
}

.faq-item.active .chevron-icon {
  transform: rotate(180deg);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 22px;
}

.faq-item.active .faq-answer-pane {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-answer-text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   RELATED TOOLS
   ========================================================================== */

.related-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.related-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.related-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.related-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ==========================================================================
   CALL TO ACTION (CTA)
   ========================================================================== */

.cta-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-box {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   GLOBAL SEARCH MODAL
   ========================================================================== */

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 43, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.search-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-dialog {
  width: min(100%, 640px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.open .search-modal-dialog {
  transform: translateY(0);
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.search-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
}

.search-close-key {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  cursor: pointer;
}

.search-results-list {
  padding: 12px 16px;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
}

.search-result-item a:hover,
.search-result-item a.highlighted {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}

.search-empty-text {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* ==========================================================================
   FOOTER (Exact Huzikit Content & Locked Dark Theme)
   ========================================================================== */

.site-footer {
  background: #110e24;
  color: #ece9fd;
  padding: 56px 0 32px 0;
  margin-top: auto;
  border-top: 1px solid rgba(231, 228, 246, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(
        0,
        1fr
      ) minmax(0, 1fr);
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.footer-bio {
  font-size: 0.875rem;
  color: #a5a1c8;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6c2e8;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-social-link:hover {
  color: var(--white);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #a5a1c8;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #7d78a8;
}

.footer-tagline {
  color: #a5a1c8;
  font-weight: 500;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .site-header,
  .hero-section,
  .markdown-toolbar,
  .panel-header,
  .panel-footer-stats,
  .metrics-section,
  .analyzer-section,
  .cheatsheet-section,
  .history-section,
  .geo-answers-section,
  .faq-section,
  .related-section,
  .cta-section,
  .site-footer,
  .search-modal-backdrop {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .preview-pane {
    display: block !important;
    padding: 0;
  }
}
