/* ============================================================================
   MLAutomation.ai — shared design system
   Single source of truth for the public/brand surface and shared chrome.
   Layered on top of Bootstrap 5.3. Documented in /DESIGN.md.

   Token layers:  primitive  →  semantic  →  component
   Legacy aliases (--brand, --accent, --surface, --card-border, ...) are kept
   so the large body of existing inline template styles keeps working.
   ============================================================================ */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* — primitive · aubergine — */
  --c-plum-900: #1a0026;
  --c-plum-800: #30003b;   /* brand */
  --c-plum-700: #4a0a59;
  --c-plum-600: #5b0a6d;
  --c-plum-500: #7b2d8e;

  /* — primitive · cyan / teal — */
  --c-cyan-400: #4fd8ff;   /* helix */
  --c-teal-500: #00d4aa;   /* accent */
  --c-teal-600: #00b894;
  --c-teal-700: #009e80;

  /* — primitive · ink / neutral (very slightly plum-tinted) — */
  --c-ink-900: #16121f;
  --c-ink-700: #3d3a47;
  --c-ink-500: #6b6577;
  --c-ink-300: #9a93a6;
  --c-white:   #ffffff;
  --c-paper:   #f7f6fa;
  --c-sunken:  #efedf4;

  /* — primitive · status — */
  --c-success: #2e7d32;
  --c-warning: #b26a00;
  --c-danger:  #c62828;
  --c-info:    #1565c0;

  /* — semantic — */
  --bg:            var(--c-paper);
  --surface:       var(--c-white);
  --surface-sunken:var(--c-sunken);
  --ink:           var(--c-ink-900);
  --ink-body:      var(--c-ink-700);
  --ink-muted:     var(--c-ink-500);

  --primary:       var(--c-plum-800);
  --primary-light: var(--c-plum-600);
  --primary-deep:  var(--c-plum-900);
  --accent:        var(--c-teal-500);
  --accent-deep:   var(--c-teal-600);
  --helix:         var(--c-cyan-400);

  --border:        rgba(48, 0, 59, .10);
  --border-strong: rgba(48, 0, 59, .18);
  --ring:          rgba(0, 212, 170, .55);

  --success: var(--c-success);
  --warning: var(--c-warning);
  --danger:  var(--c-danger);
  --info:    var(--c-info);

  /* on dark (aubergine/HUD) surfaces — floored for AA */
  --on-dark:        #ffffff;
  --on-dark-body:   rgba(255, 255, 255, .82);
  --on-dark-muted:  rgba(255, 255, 255, .64);
  --on-dark-border: rgba(255, 255, 255, .14);

  /* — type scale (fluid) — */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Orbitron", var(--font-body);

  --fs-900: clamp(2.2rem, 1.35rem + 3.6vw, 3.6rem);
  --fs-800: clamp(1.85rem, 1.3rem + 2.2vw, 2.6rem);
  --fs-700: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --fs-600: 1.3rem;
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: .9rem;
  --fs-200: .8rem;
  --fs-100: .72rem;

  --lh-tight: 1.12;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  /* — spacing scale — */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;
  --space-section: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* — radius — */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* — shadow — */
  --shadow-sm: 0 1px 2px rgba(48, 0, 59, .06), 0 1px 3px rgba(48, 0, 59, .05);
  --shadow:    0 8px 24px rgba(48, 0, 59, .08);
  --shadow-lg: 0 18px 50px rgba(48, 0, 59, .12);
  --shadow-glow: 0 0 24px rgba(79, 216, 255, .45), 0 0 50px rgba(0, 212, 170, .22);

  /* — motion — */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur:      250ms;
  --dur-slow: 400ms;

  /* — z-index scale — */
  --z-dropdown: 1000;
  --z-sticky:   1020;
  --z-modal-backdrop: 1040;
  --z-modal:    1050;
  --z-toast:    1080;
  --z-tooltip:  1090;

  /* — legacy aliases (kept so existing inline styles keep working) — */
  --brand:        var(--primary);
  --brand-light:  var(--primary-light);
  --accent-hover: var(--accent-deep);
  --card:         var(--surface);
  --card-border:  var(--border);
  --muted:        var(--ink-muted);
  --radius-legacy: var(--radius);
}

/* ------------------------------------------------------------- 2. BASE/RESET */
body {
  font-family: var(--font-body);
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; line-height: var(--lh-tight); }
p { text-wrap: pretty; }

a { color: var(--primary-light); }
a:hover { color: var(--primary); }

::selection { background: rgba(0, 212, 170, .25); }

::placeholder { color: var(--ink-muted); opacity: 1; }

/* Visible focus for keyboard users on every interactive element */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img { max-width: 100%; }

/* --------------------------------------------------------- 3. TYPOGRAPHY HELP */
.font-display { font-family: var(--font-display); }
.text-muted-ml { color: var(--ink-muted) !important; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}

/* ----------------------------------------------------------- 4. SECTIONS */
.section { padding: var(--space-section) 0; }
.section--alt { background: var(--surface-sunken); }
.section--dark {
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--on-dark-body);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4 { color: var(--on-dark); }

.section-header { max-width: 640px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-title   { font-size: var(--fs-800); font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.section-title-h2{ font-size: var(--fs-700); font-weight: 800; color: var(--primary); margin-bottom: .6rem; letter-spacing: -.01em; }
.section-sub,
.section-sub-p   { font-size: var(--fs-500); color: var(--ink-muted); line-height: var(--lh-snug); }

.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(48, 0, 59, .06); color: var(--primary);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: var(--fs-200); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
/* Kept for backward compat, but tuned down: a single branded kicker, not scaffolding */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-100); letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 12px;
}

/* ----------------------------------------------------------------- 5. BUTTONS */
.btn-accent,
.btn-primary-ml,
.btn-ghost,
.btn-outline-ml,
.btn-helix {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 26px;
  font-weight: 600; font-size: var(--fs-300); line-height: 1;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-deep); color: var(--primary);
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 212, 170, .3); }

.btn-primary-ml { background: var(--primary); color: #fff; }
.btn-primary-ml:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline-ml { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline-ml:hover { background: rgba(48, 0, 59, .04); color: var(--primary); border-color: var(--primary); }

/* Ghost = on dark surfaces */
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4);
  text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius-pill); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Helix signature pill — the brand's one bold move, Helix surfaces only */
.btn-helix {
  background: linear-gradient(135deg, var(--helix) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #02060c; text-transform: uppercase; letter-spacing: .12em;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-glow);
}
.btn-helix:hover { color: #02060c; transform: translateY(-2px); filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(79, 216, 255, .7), 0 0 64px rgba(0, 212, 170, .4); }

/* Legacy: hero outline button on dark hero */
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  border: 2px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 600;
  padding: 11px 26px; border-radius: var(--radius); background: transparent;
  text-decoration: none; transition: all var(--dur) var(--ease-out);
}
.btn-hero-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

/* Bootstrap .btn-primary brand override (used by tool pages/forms) */
.btn-primary {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-light); --bs-btn-hover-border-color: var(--primary-light);
  --bs-btn-active-bg: var(--primary-deep); --bs-btn-active-border-color: var(--primary-deep);
  --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary);
}
.btn-success { --bs-btn-bg: var(--accent-deep); --bs-btn-border-color: var(--accent-deep);
  --bs-btn-hover-bg: var(--c-teal-700); --bs-btn-hover-border-color: var(--c-teal-700); }
.text-accent { color: var(--accent-deep) !important; }
.link-accent { color: var(--accent-deep); text-decoration: none; }
.link-accent:hover { color: var(--c-teal-700); }

/* ------------------------------------------------------------------- 6. CARDS */
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; height: 100%; position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.tool-card .icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
}
.tool-card h3 { font-size: var(--fs-600); font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.tool-card p  { color: var(--ink-muted); font-size: var(--fs-300); line-height: var(--lh-body); margin-bottom: 16px; }
.tool-card .features-list { list-style: none; padding: 0; margin: 0 0 20px; }
.tool-card .features-list li { font-size: var(--fs-200); color: var(--ink-body); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.tool-card .features-list li .bi { color: var(--accent-deep); font-size: .75rem; }
.tool-card .btn-tool { color: var(--primary); font-weight: 600; font-size: var(--fs-300); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--dur-fast) var(--ease-out); }
.tool-card .btn-tool:hover { gap: 10px; color: var(--primary-light); }

/* Card with preview image */
.tool-card-v2 {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tool-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.tool-card-v2 .preview-wrap { position: relative; aspect-ratio: 1.6/1; overflow: hidden; background: linear-gradient(135deg, #f6f7fb 0%, #ecedf5 100%); }
.tool-card-v2 .preview-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tool-card-v2:hover .preview-wrap img { transform: scale(1.04); }
.tool-card-v2 .tool-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.tool-card-v2 .tool-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-card-v2 h3 { font-size: var(--fs-500); font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.tool-card-v2 p  { color: var(--ink-muted); font-size: var(--fs-300); line-height: var(--lh-snug); margin-bottom: 14px; flex: 1; }
.tool-card-v2 .open-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: var(--fs-200); text-decoration: none; transition: gap var(--dur-fast) var(--ease-out); }
.tool-card-v2 .open-btn:hover { gap: 10px; color: var(--accent-deep); }

/* Compact card */
.tool-card-mini {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tool-card-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tool-card-mini .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.tool-card-mini .info h4 { color: var(--primary); font-size: var(--fs-400); font-weight: 700; margin-bottom: 4px; }
.tool-card-mini .info p  { color: var(--ink-muted); font-size: var(--fs-200); line-height: var(--lh-snug); margin: 0; }

/* Category card */
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 26px; height: 100%; text-decoration: none; display: block;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cat-card .cat-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.cat-card h3 { font-size: var(--fs-600); font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cat-card p  { color: var(--ink-muted); font-size: var(--fs-300); line-height: var(--lh-body); margin-bottom: 16px; }
.cat-card .cat-count { font-size: var(--fs-100); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); background: #e8f5e9; color: var(--c-success); letter-spacing: .04em; text-transform: uppercase; }
.cat-card .cat-link { color: var(--primary); font-weight: 600; font-size: var(--fs-300); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--dur-fast) var(--ease-out); margin-top: 10px; }
.cat-card:hover .cat-link { gap: 10px; }

/* ---------------------------------------------------------- 7. ICON TINTS / TAGS */
.ic-orange { background: #fff3e0; color: #e65100; }
.ic-green  { background: #e8f5e9; color: #2e7d32; }
.ic-blue   { background: #e3f2fd; color: #1565c0; }
.ic-purple { background: #f3e5f5; color: #7b1fa2; }
.ic-red    { background: #fce4ec; color: #c2185b; }
.ic-teal   { background: #e0f2f1; color: #00695c; }
.ic-amazon { background: #fff3e0; color: #e65100; }
.ic-etsy   { background: #fce4ec; color: #c2185b; }
.ic-biz    { background: #e3f2fd; color: #1565c0; }
.ic-data   { background: #e0f7f4; color: #0f766e; }

.tag {
  font-size: var(--fs-100); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; background: var(--surface-sunken); color: #475569;
}
.tag.live { background: #e8f5e9; color: var(--c-success); }
.tag.ai   { background: #ede7ff; color: #5b2d8e; }

/* ------------------------------------------------------------------- 8. FORMS */
.form-label { font-weight: 600; color: var(--ink); font-size: var(--fs-300); margin-bottom: .4rem; }
.form-control, .form-select, textarea.form-control {
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .6rem .85rem; font-size: var(--fs-400); color: var(--ink); background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); outline: none;
}
.form-text { color: var(--ink-muted); font-size: var(--fs-200); }
.input-help { color: var(--ink-muted); font-size: var(--fs-200); margin-top: .35rem; }

/* --------------------------------------------------------------- 9. CTA / HERO */
.page-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 50%, #7b2d8e 100%);
  color: #fff; padding: clamp(54px, 4rem + 2vw, 88px) 0 clamp(40px, 3rem + 1vw, 64px);
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: -40%; right: -20%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: var(--fs-900); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lead { font-size: var(--fs-500); color: var(--on-dark-body); max-width: 600px; line-height: var(--lh-body); }

.cta-section {
  padding: var(--space-section) 0; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(79, 216, 255, .15) 0%, transparent 60%),
              linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; font-size: var(--fs-800); font-weight: 800; margin-bottom: 14px; letter-spacing: -.01em; }
.cta-section p  { font-size: var(--fs-500); color: var(--on-dark-body); max-width: 540px; margin: 0 auto 30px; }

/* Coming-soon overlay */
.coming-soon-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; z-index: 2; }
.coming-soon-badge { background: var(--primary); color: #fff; padding: 8px 24px; border-radius: var(--radius); font-weight: 700; font-size: var(--fs-300); letter-spacing: .03em; }

/* -------------------------------------------------------------- 10. NAVBAR */
.site-navbar { background: var(--primary); padding: 12px 0; }
.site-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .82); font-weight: 500; font-size: var(--fs-200);
  text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus { color: #fff; }
.site-navbar .navbar-nav .nav-link.active { color: var(--accent); }
.site-navbar .nav-link.nav-pricing { color: var(--accent); font-weight: 600; }

/* Helix nav pill */
.nav-link.helix-nav-link {
  position: relative; display: inline-flex !important; align-items: center; gap: 6px;
  padding: 6px 14px !important;
  background: linear-gradient(135deg, var(--helix) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: #02060c !important; border-radius: var(--radius-pill);
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: var(--fs-100) !important; letter-spacing: .2em !important; text-transform: uppercase;
  box-shadow: 0 0 14px rgba(79, 216, 255, .5), 0 0 32px rgba(0, 212, 170, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), filter var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.nav-link.helix-nav-link:hover, .nav-link.helix-nav-link:focus {
  color: #02060c !important; filter: brightness(1.08); transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(79, 216, 255, .85), 0 0 48px rgba(0, 212, 170, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.helix-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .95); animation: helix-pulse 1.6s ease-in-out infinite; }
.helix-nav-badge { display: inline-block; margin-left: 5px; padding: 1px 5px; background: rgba(2, 6, 12, .45); border-radius: 3px; font-size: .54rem; letter-spacing: .14em; font-weight: 700; color: #fff; }

@keyframes helix-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }

/* -------------------------------------------------------------- 11. FOOTER */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, .6); padding: 0; }
.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--accent); }
.footer-top { padding: 64px 0 48px; }
.footer-brand { font-size: var(--fs-600); font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-tagline { font-size: var(--fs-300); color: rgba(255, 255, 255, .6); line-height: var(--lh-body); max-width: 280px; }
.footer-heading { font-size: var(--fs-100); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: var(--fs-300); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: 1rem; margin-right: 8px; transition: all var(--dur-fast) var(--ease-out); }
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal-links a { font-size: var(--fs-200); color: rgba(255, 255, 255, .5); }
.footer-legal-links a:hover { color: var(--accent); }
.footer-copy { color: rgba(255, 255, 255, .5); }
@media (max-width: 767px) { .footer-bottom-inner { justify-content: center; text-align: center; } }

/* -------------------------------------------------------------- 12. UTILITIES */
.surface-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.muted { color: var(--ink-muted); }
.lift { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------- 13. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .helix-nav-dot { animation: none; }
}
