/* ═══════════════════════════════════════════════════════════════════════
   GLOSSI DESIGN SYSTEM — Global Stylesheet
   Shared tokens, components, and layout primitives for all marketing pages.
   Source of truth: index.html (Linear/Cursor Inspired Light Mode)
═══════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────
   FONTS
───────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'PP Mori';
  src: url('../fonts/PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('../fonts/PPMori-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('../fonts/PPMori-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unica77';
  src: url('../fonts/Unica77LL-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unica77';
  src: url('../fonts/Unica77LL-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unica77';
  src: url('../fonts/Unica77LL-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unica77';
  src: url('../fonts/Unica77LL-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────────────── */

:root {
  /* Font stacks (default = Unica77) */
  --font-heading: 'Unica77', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Unica77', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-elevated: #ffffff;
  --bg-surface: rgba(0, 0, 0, 0.02);
  --bg-hover: rgba(0, 0, 0, 0.03);
  --bg-active: rgba(0, 0, 0, 0.05);

  /* Text */
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --text-muted: #a3a3a3;
  --text-inverted: #fafafa;

  /* Borders */
  --border-hairline: rgba(0, 0, 0, 0.04);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-bold: var(--bg-dark);
  --border-focus: rgba(0, 0, 0, 0.24);

  /* Accent */
  --accent: #171717;
  --accent-hover: #262626;
  --accent-dim: rgba(23, 23, 23, 0.9);
  --glossi-orange: #EC5F3F;

  /* UI accents */
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.1);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.1);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.1);

  /* Dark surfaces */
  --bg-dark: #0a0a0a;
  --bg-dark-secondary: #141414;
  --bg-dark-tertiary: #1a1a1a;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-ring: 0 0 0 3px rgba(0, 0, 0, 0.05);
  --shadow-glow: none;

  /* Animation */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-instant: 50ms;
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  /* Spacing (4px base) */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-32: 128px;
  --space-36: 144px;
  --space-40: 160px;

  /* Font sizes */
  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 96px;

  /* Line heights — optical curve: tighter at display, generous at body */
  --leading-none: 1;
  --leading-display: 1.04;
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.4;
  --leading-relaxed: 1.6;
  --leading-loose: 1.75;

  /* Letter spacing — optical curve: tighter at display, opens at small sizes */
  --tracking-tightest: -0.05em;
  --tracking-tighter: -0.045em;
  --tracking-tight: -0.035em;
  --tracking-snug: -0.025em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.01em;
  --tracking-wider: 0.04em;
  --tracking-label: 0.06em;
  --tracking-widest: 0.08em;

  /* Font weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Border radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
}

.font-mori {
  --font-heading: 'PP Mori', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}


/* ─────────────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01', 'ss03';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--font-normal);
  letter-spacing: -0.005em;
  overflow-x: hidden;
  padding-top: 60px;
}

img, video {
  content-visibility: auto;
}

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

::selection {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────
   PAGE GRID OVERLAY
───────────────────────────────────────────────────────────────────── */

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.page-grid__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.04);
}

.page-grid__line--l { left: max(24px, calc(50% - 600px)); }
.page-grid__line--r { right: max(24px, calc(50% - 600px)); }

@media (max-width: 768px) {
  .page-grid__line--l { left: 16px; }
  .page-grid__line--r { right: 16px; }
}


/* ─────────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-6);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-default);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2-5);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo-mark {
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-logo:hover .nav-logo-mark { transform: scale(1.05); }

.nav-logo-mark svg { width: 100%; height: 100%; }

.nav-logo-text {
  font-family: 'PP Mori', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

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

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}


/* ─────────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2-5) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: 100px;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 10px 16px 8px;
  font-size: 12px;
  border-radius: 100px;
}

.btn-md {
  padding: 11px 20px 9px;
  font-size: 13px;
  border-radius: 100px;
}

.btn-lg {
  padding: 14px 24px 12px;
  font-size: 14px;
  border-radius: 100px;
  font-weight: 500;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-weight: 400;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverted);
  font-weight: var(--font-medium);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary svg {
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-primary:hover svg { transform: translateX(2px); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

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

.btn-dark {
  background: var(--accent);
  color: var(--text-inverted);
  font-weight: var(--font-medium);
  border-color: var(--accent);
}

.btn-dark:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-dark svg {
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-dark:hover svg { transform: translateX(2px); }

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────
   SECTION TYPOGRAPHY
───────────────────────────────────────────────────────────────────── */

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  text-wrap: balance;
  color: var(--text-primary);
}

.section-desc {
  font-size: clamp(15px, 2vw, 16px);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  max-width: 540px;
  margin: 0 auto;
  text-wrap: balance;
}


/* ─────────────────────────────────────────────────────────────────────
   TYPOGRAPHIC HIERARCHY
   Optical recipes: each class encodes size + weight + tracking +
   line-height as a single design decision. Tracking tightens as
   size grows (Swiss neo-grotesk convention for Unica77).
───────────────────────────────────────────────────────────────────── */

.heading-display {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-display);
  color: var(--text-primary);
  text-wrap: balance;
}

.heading-section {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

.heading-feature {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-page {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.heading-card {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text-primary);
}

.text-body-lg {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.text-sub {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  color: var(--text-tertiary);
}

.text-meta {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: -0.005em;
  color: var(--text-tertiary);
}

.text-caption {
  font-size: var(--text-xs);
  letter-spacing: -0.005em;
  color: var(--text-muted);
}

.text-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.text-label-sm {
  font-size: 9px;
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.text-tag {
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
}


/* ─────────────────────────────────────────────────────────────────────
   PROSE — Long-form content (articles, blog, legal, changelog)
   Apply to a wrapper element; styles cascade to child content.
───────────────────────────────────────────────────────────────────── */

.prose {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose p {
  margin-bottom: var(--space-6);
}

.prose > p:first-of-type {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-primary);
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin: var(--space-16) 0 var(--space-5);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-subtle);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-12);
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-medium);
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: var(--space-10) 0 var(--space-3);
}

.prose strong {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.prose blockquote {
  margin: var(--space-12) 0;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-bold);
  border-bottom: 1px solid var(--border-subtle);
  border-left: none;
}

.prose blockquote p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 540px;
  margin-bottom: 0;
}

.prose ul, .prose ol {
  margin: var(--space-2) 0 var(--space-5);
  padding-left: var(--space-5);
}

.prose li {
  margin-bottom: var(--space-1);
}

.prose a:not(.btn) {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.prose a:not(.btn):hover {
  color: var(--glossi-orange);
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--border-bold);
  margin: var(--space-16) 0;
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: var(--space-6) 0;
}


/* ─────────────────────────────────────────────────────────────────────
   DIVIDERS
   Three-tier system: light (subtle), dark (bold), accent (orange).
   Dark dividers share --bg-dark with homepage dark sections.
───────────────────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border-bold);
  border: none;
}

.divider-accent {
  height: 2px;
  width: 32px;
  background: var(--glossi-orange);
  border: none;
  border-radius: 1px;
}


/* ─────────────────────────────────────────────────────────────────────
   SECTION SPACING
───────────────────────────────────────────────────────────────────── */

.section {
  padding: var(--space-24) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.section-lg {
  padding: var(--space-32) var(--space-6);
}

.section-sm {
  padding: var(--space-16) var(--space-6);
}


/* ─────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────── */

.footer {
  padding: var(--space-20) var(--space-6) var(--space-12);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2-5);
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer-logo:hover { opacity: 0.7; }

.footer-logo-mark {
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-mark svg { width: 100%; height: 100%; }

.footer-logo-text {
  font-family: 'PP Mori', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

.footer-column h4 {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-subtle);
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s var(--ease-out);
}

.footer-social a:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}


/* ─────────────────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-2px) rotate(0.5deg); }
  75%      { transform: translateY(2px) rotate(-0.5deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes pulseScale {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.02); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%      { box-shadow: var(--shadow-md); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border-subtle); }
  50%      { border-color: var(--border-default); }
}

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

.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.12s; }
.animate-delay-3 { animation-delay: 0.16s; }
.animate-delay-4 { animation-delay: 0.2s; }
.animate-delay-5 { animation-delay: 0.24s; }
.animate-delay-6 { animation-delay: 0.28s; }

.hover-lift {
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hover-glow {
  transition: box-shadow 0.5s var(--ease-out);
}

.hover-glow:hover {
  box-shadow: 0 0 40px rgba(255,255,255,0.06);
}


/* ─────────────────────────────────────────────────────────────────────
   TOUCH-FRIENDLY
───────────────────────────────────────────────────────────────────── */

@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  .btn-sm {
    min-height: 40px;
    padding: 8px 16px;
  }
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .hover-lift:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}


/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE — Nav & Footer
───────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-brand {
    max-width: 100%;
    text-align: left;
    margin-bottom: var(--space-4);
  }
  .footer-logo {
    justify-content: flex-start;
  }
  .footer-column h4 {
    margin-top: var(--space-4);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-12) var(--space-4) var(--space-8);
  }
  .footer-column {
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
}
