/* ==========================================================================
   HEXARISE DESIGN SYSTEM - ENGINEERING SKETCHBOOK SPECIFICATION
   Warm Cream Canvas (#eeefe9) · IBM Plex Sans · PostHog Yellow (#f7a501)
   Flat 1px Hairline Borders (#bfc1b7) · Pure White Cards (#ffffff)
   ========================================================================== */

:root {
  /* Surface Tokens */
  --canvas: #eeefe9;
  --surface-card: #ffffff;
  --surface-doc: #fcfcfa;
  --surface-soft: #e5e7e0;
  --surface-dark: #23251d;
  --hairline: #bfc1b7;
  --hairline-soft: #dcdfd2;
  --on-dark: #ffffff;

  /* Backward Compatibility Surface Aliases */
  --bg-surface: var(--canvas);
  --bg-surface-dim: var(--canvas);
  --bg-surface-bright: var(--surface-card);
  --bg-container-lowest: #ffffff;
  --bg-container-low: #f7f8f4;
  --bg-container: #ffffff;
  --bg-container-high: var(--surface-soft);
  --bg-container-highest: #dbded5;
  --bg-card-dark: var(--surface-card);
  --bg-elevated-dark: var(--surface-soft);
  --border-dark: var(--hairline);
  --hairline-light: var(--hairline-soft);
  --outline: #857461;

  /* Primary Brand Tokens */
  --primary: #f7a501;
  --primary-pressed: #dd9001;
  --primary-active: #b17816;
  --on-primary: #23251d;
  --primary-yellow: var(--primary);
  --primary-light: #fff5e0;
  --primary-disabled: #e5e7e0;

  /* Typography / Text Roles */
  --ink: #23251d;
  --body: #4d4f46;
  --charcoal: #33342d;
  --mute: #6c6e63;
  --ash: #9b9c92;
  --stone: #b6b7af;

  /* Backward Compatibility Text Aliases */
  --text-ink: var(--ink);
  --text-on-surface: var(--ink);
  --text-variant: var(--body);
  --text-muted: var(--mute);

  /* Semantic & Callout Accents */
  --link-blue: #1d4ed8;
  --link-teal: #1078a3;
  --accent-blue: #2c84e0;
  --accent-blue-soft: #dceaf6;
  --accent-red: #cd4239;
  --accent-red-soft: #f7d6d3;
  --accent-green: #2c8c66;
  --accent-green-soft: #d9eddf;
  --accent-purple: #7c44a6;
  --accent-purple-soft: #e7d8ee;
  --focus-ring: rgba(59, 130, 246, 0.4);

  /* Trading / Status Aliases */
  --trading-up: #2c8c66;
  --trading-down: #cd4239;
  --accent-smart: #1078a3;

  /* Typography Font Stacks */
  --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-editorial: var(--font-primary);
  --font-number: var(--font-primary);
  --font-code: 'JetBrains Mono', 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing System (8px base rhythm) */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section: 80px;

  /* Shape Vocabulary */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-family: var(--font-primary);
  background-color: var(--canvas);
  color: var(--body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--body);
  line-height: 1.6;
}

a {
  color: var(--link-teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Skip to Content Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
  border: 1px solid var(--ink);
}

.skip-link:focus {
  top: 16px;
}

/* Material Icons styling */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

/* Primary PostHog Yellow CTA Pill */
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  height: 40px;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-pressed);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: var(--primary-active);
  transform: scale(0.98);
}

/* Secondary Soft Button */
.btn-secondary {
  background-color: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  height: 40px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: #dbded5;
  color: var(--ink);
  text-decoration: none;
  border-color: var(--ink);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Tertiary Ghost Button */
.btn-tertiary {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-tertiary:hover {
  background-color: var(--surface-soft);
  text-decoration: none;
}

/* Disabled Button */
.btn-disabled, button:disabled, .btn-primary:disabled {
  background-color: var(--surface-soft) !important;
  color: var(--ash) !important;
  border-color: var(--hairline-soft) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ==========================================================================
   CARDS & CONTAINERS VOCABULARY (Flat 1px Hairlines on Cream)
   ========================================================================== */

.app-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
}

/* Card Surface - Crisp White Flat Card */
.card, .product-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, var(--space-xl));
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.card:hover, .product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-icon span {
  font-size: 22px;
  color: var(--ink);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.card-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* Doc Card Variant */
.doc-card {
  background-color: var(--surface-doc);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

/* Code Blocks */
.code-block, pre.code-island {
  background-color: var(--surface-dark);
  color: var(--on-dark);
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--surface-dark);
}

code.inline-code, code:not(pre code) {
  background-color: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-code);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hairline-soft);
}

/* ==========================================================================
   PASTEL CALLOUT BANNERS (System 4-Color Family)
   ========================================================================== */

.callout-banner {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: var(--space-lg) 0;
  border-left: 4px solid transparent;
}

.callout-tip, .banner-tip-blue {
  background-color: var(--accent-blue-soft);
  border-left-color: var(--accent-blue);
  color: var(--ink);
}

.callout-success, .banner-tip-green {
  background-color: var(--accent-green-soft);
  border-left-color: var(--accent-green);
  color: var(--ink);
}

.callout-warning, .banner-tip-red {
  background-color: var(--accent-red-soft);
  border-left-color: var(--accent-red);
  color: var(--ink);
}

.callout-note, .banner-tip-purple {
  background-color: var(--accent-purple-soft);
  border-left-color: var(--accent-purple);
  color: var(--ink);
}

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

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 32px);
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header.glass-panel {
  background-color: rgba(238, 239, 233, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo svg {
  height: 32px;
  width: auto;
}

.brand-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.brand-title span {
  color: var(--primary-pressed);
}

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

.nav-link {
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background-color: var(--surface-soft);
  text-decoration: none;
}

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

/* Nav Cart Button */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-cart-btn:hover {
  border-color: var(--ink);
  background-color: var(--surface-soft);
  text-decoration: none;
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid var(--ink);
}

/* Profile Dropdown Component */
.nav-profile-wrapper {
  position: relative;
  z-index: 9999;
}

.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-profile-btn:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.dropdown-arrow {
  font-size: 16px;
  color: var(--mute);
  transition: transform 0.2s ease;
}

.nav-profile-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--surface-card) !important;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  z-index: 99999;
}

.nav-profile-wrapper.active .profile-dropdown-menu {
  display: flex;
}

.profile-menu-header {
  padding: 8px 10px 10px 10px;
}

.user-display-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  text-transform: capitalize;
}

.user-display-email {
  font-size: 12px;
  color: var(--mute);
  word-break: break-all;
}

.menu-divider {
  height: 1px;
  background: var(--hairline-soft);
  margin: 6px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-menu-item:hover {
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.profile-menu-item.text-danger {
  color: var(--accent-red);
}

.profile-menu-item.text-danger:hover {
  background: var(--accent-red-soft);
  color: var(--accent-red);
}

/* ==========================================================================
   HERO SECTION (Engineering Sketchbook Style)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 72px 0 var(--space-section) 0;
  overflow: hidden;
  background-color: var(--canvas);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  text-align: left;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  margin-bottom: var(--space-lg);
}

.badge-tag span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-tag .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

.hero-headline .sub-text {
  font-weight: 500;
  color: var(--body);
}

.hero-headline span.text-highlight {
  color: var(--primary-pressed);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 6px;
}

.hero-description {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: var(--body);
  max-width: 680px;
  margin-bottom: var(--space-xl);
  background: var(--surface-card);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS & GRID LAYOUT
   ========================================================================== */

.section {
  padding: var(--space-section) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xxl) auto;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mute);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* ==========================================================================
   WORKFLOW STEPS (Engineering Sketchbook Diagram)
   ========================================================================== */

.workflow-flow-section {
  position: relative;
}

.workflow-timeline-wrapper {
  position: relative;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

.workflow-step-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: all 0.2s ease;
}

.workflow-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.step-node-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.step-badge-number {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  font-family: var(--font-code);
}

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

.step-desc {
  font-size: 13px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 14px;
}

.step-mini-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--link-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-mini-cta:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  height: 38px;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 37, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, var(--space-xl));
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--ink);
}

/* ==========================================================================
   FOOTER (Engineering Sketchbook Specification)
   ========================================================================== */

.footer {
  background-color: var(--canvas);
  color: var(--body);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--body);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.footer-links-list a {
  color: var(--body);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--surface-soft);
  border-color: var(--ink);
}

.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.2s ease;
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  transition: all 0.15s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--surface-soft);
  border-color: var(--ink);
  text-decoration: none;
}

.mobile-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-btn-full {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .header .nav-actions .btn-primary {
    display: none !important;
  }

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

@media (max-width: 768px) {
  :root {
    --space-section: 64px;
  }

  .header {
    padding: 0 16px;
    height: 56px;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-headline {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-section: 48px;
  }

  .grid-3, .grid-4, .workflow-grid {
    grid-template-columns: 1fr !important;
  }
}
