/*
 * Offshift Design System - "Void Purple"
 * Version 2.0 - February 2026
 *
 * A dark glassmorphism design system with luminous purple accents
 *
 * Contents:
 * 1. Design Tokens (CSS Custom Properties)
 * 2. Base Reset & Typography
 * 3. Utility Classes
 * 4. Animations
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
   * Colors: The Void (Backgrounds)
   * Deep, abyssal blacks with subtle purple undertones
   * ------------------------------------------------------------------------- */
  --void-abyss: #030108;      /* Deepest background, page base (OLED-optimized) */
  --void-deep: #0a0512;       /* Primary background */
  --void-surface: #110a1e;    /* Card backgrounds */
  --void-elevated: #1a0e30;   /* Elevated elements, modals */
  --void-overlay: #221440;    /* Hover states, active elements */
  --void-border: #2a1850;     /* Subtle borders */

  /* -------------------------------------------------------------------------
   * Colors: Luminous Accents
   * Glowing colors that appear to emit light against the void
   * ------------------------------------------------------------------------- */
  --lum-purple: #581c87;      /* Primary brand color (deeper, richer) */
  --lum-purple-bright: #7c3aed; /* Brighter purple for hovers */
  --lum-violet: #7c3aed;      /* Interactive elements */
  --lum-magenta: #a78bfa;     /* Charts, data viz */
  --lum-cyan: #06b6d4;        /* Secondary accent (vivid teal) */
  --lum-cyan-bright: #22d3ee; /* Brighter cyan */
  --lum-mint: #4ade80;        /* Positive values, gains */
  --lum-rose: #f472b6;        /* Negative values, losses */
  --lum-amber: #f59e0b;       /* Warnings, caution */

  /* Glow & Touch */
  --purple-glow: rgba(124, 58, 237, 0.35);
  --tap-highlight: rgba(124, 58, 237, 0.2);

  /* -------------------------------------------------------------------------
   * Colors: Text
   * Carefully calibrated for optimal readability on dark backgrounds
   * ------------------------------------------------------------------------- */
  --text-primary: #f0e7ff;    /* Headlines, important text */
  --text-secondary: #a78bca;  /* Body text (purple-tinted) */
  --text-tertiary: #6b5890;   /* Captions, labels */
  --text-muted: #4A3A5A;      /* Placeholder, hints, disabled */
  --text-inverse: #0a0512;    /* Text on light backgrounds */

  /* -------------------------------------------------------------------------
   * Colors: Semantic
   * Functional colors for UI states
   * ------------------------------------------------------------------------- */
  --color-success: #4ade80;
  --color-success-muted: rgba(74, 222, 128, 0.15);
  --color-error: #f87171;
  --color-error-muted: rgba(248, 113, 113, 0.15);
  --color-warning: #fbbf24;
  --color-warning-muted: rgba(251, 191, 36, 0.15);
  --color-info: #60a5fa;
  --color-info-muted: rgba(96, 165, 250, 0.15);

  /* -------------------------------------------------------------------------
   * Colors: Chart Palette
   * Consistent colors for data visualization
   * ------------------------------------------------------------------------- */
  --chart-supply: #b169d5;
  --chart-mcap: #6B39FA;
  --chart-shifted-in: #4ade80;
  --chart-shifted-out: #f472b6;
  --chart-circulating: #99cced;
  --chart-tvo: #fbbf24;

  /* -------------------------------------------------------------------------
   * Spacing Scale
   * Consistent spacing using 4px base unit
   * ------------------------------------------------------------------------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* -------------------------------------------------------------------------
   * Typography
   * Font families and scales
   * ------------------------------------------------------------------------- */
  --font-display: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* -------------------------------------------------------------------------
   * Border Radius
   * Consistent rounded corners
   * ------------------------------------------------------------------------- */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* -------------------------------------------------------------------------
   * Shadows
   * Layered shadows for depth and glow effects
   * ------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4), 0 8px 10px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.5);

  /* Glow Shadows */
  --glow-purple-sm: 0 0 10px rgba(124, 58, 237, 0.3);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
  --glow-purple-lg: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.3), 0 0 90px rgba(124, 58, 237, 0.1);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.4), 0 0 30px rgba(6, 182, 212, 0.2);
  --glow-mint: 0 0 15px rgba(74, 222, 128, 0.4), 0 0 30px rgba(74, 222, 128, 0.2);
  --glow-rose: 0 0 15px rgba(244, 114, 182, 0.4), 0 0 30px rgba(244, 114, 182, 0.2);

  /* Ambient shadows for cards */
  --shadow-ambient: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.05);
  --shadow-ambient-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.1);

  /* -------------------------------------------------------------------------
   * Transitions
   * Consistent timing functions
   * ------------------------------------------------------------------------- */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --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-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --transition-fast: var(--duration-fast) var(--ease-default);
  --transition-base: var(--duration-base) var(--ease-default);
  --transition-slow: var(--duration-slow) var(--ease-default);

  /* -------------------------------------------------------------------------
   * Z-Index Scale
   * Layering system
   * ------------------------------------------------------------------------- */
  --z-below: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* -------------------------------------------------------------------------
   * Glassmorphism
   * Frosted glass effect values
   * ------------------------------------------------------------------------- */
  --glass-blur: 20px;
  --glass-bg: rgba(88, 28, 135, 0.10);
  --glass-bg-light: rgba(88, 28, 135, 0.18);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);

  /* -------------------------------------------------------------------------
   * Container Widths
   * Max-widths for content containers
   * ------------------------------------------------------------------------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ==========================================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.void-theme {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  background-color: var(--void-abyss);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: var(--tap-highlight);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Headings */
.void-theme h1,
.void-theme h2,
.void-theme h3,
.void-theme h4,
.void-theme h5,
.void-theme h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

.void-theme h1 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tight);
}

.void-theme h2 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tight);
}

.void-theme h3 {
  font-size: var(--text-2xl);
}

.void-theme h4 {
  font-size: var(--text-xl);
}

.void-theme h5 {
  font-size: var(--text-lg);
}

.void-theme h6 {
  font-size: var(--text-base);
}

/* Paragraphs */
.void-theme p {
  margin: 0 0 var(--space-4);
}

/* Links */
.void-theme a {
  color: var(--lum-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.void-theme a:hover {
  color: var(--lum-cyan-bright);
}

/* Code */
.void-theme code,
.void-theme pre {
  font-family: var(--font-mono);
}

.void-theme code {
  font-size: 0.875em;
  background: var(--void-elevated);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--lum-magenta);
}

.void-theme pre {
  background: var(--void-surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid var(--glass-border);
}

.void-theme pre code {
  background: none;
  padding: 0;
}

/* Selection */
.void-theme ::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
}

/* Focus styles */
.void-theme :focus-visible {
  outline: 2px solid var(--lum-purple);
  outline-offset: 2px;
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

/* Text Colors */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-purple { color: var(--lum-purple) !important; }
.text-cyan { color: var(--lum-cyan) !important; }
.text-mint { color: var(--lum-mint) !important; }
.text-rose { color: var(--lum-rose) !important; }

/* Background Colors */
.bg-void-abyss { background-color: var(--void-abyss) !important; }
.bg-void-deep { background-color: var(--void-deep) !important; }
.bg-void-surface { background-color: var(--void-surface) !important; }
.bg-void-elevated { background-color: var(--void-elevated) !important; }

/* Gradient Backgrounds */
.bg-gradient-purple {
  background: linear-gradient(135deg, var(--lum-purple), var(--lum-violet));
}

.bg-gradient-void {
  background: linear-gradient(180deg, var(--void-abyss) 0%, var(--void-deep) 50%, var(--void-surface) 100%);
}

.bg-gradient-radial {
  background: radial-gradient(ellipse at 50% 0%, var(--void-elevated) 0%, var(--void-abyss) 70%);
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* Font Families */
.font-display { font-family: var(--font-display) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Font Weights */
.font-normal { font-weight: var(--font-normal) !important; }
.font-medium { font-weight: var(--font-medium) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }

/* Text Sizes */
.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.text-3xl { font-size: var(--text-3xl) !important; }
.text-4xl { font-size: var(--text-4xl) !important; }
.text-5xl { font-size: var(--text-5xl) !important; }

/* Glow Effects */
.glow-purple {
  box-shadow: var(--glow-purple);
}

.glow-purple-lg {
  box-shadow: var(--glow-purple-lg);
}

.glow-cyan {
  box-shadow: var(--glow-cyan);
}

.text-glow-purple {
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(124, 58, 237, 0.3);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
}

/* Border Radius */
.rounded-none { border-radius: var(--radius-none) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Spacing - Padding */
.p-0 { padding: var(--space-0) !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }

.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }
.px-8 { padding-left: var(--space-8) !important; padding-right: var(--space-8) !important; }

.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }

/* Spacing - Margin */
.m-0 { margin: var(--space-0) !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

/* Flexbox */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-6 { gap: var(--space-6) !important; }
.gap-8 { gap: var(--space-8) !important; }

/* Grid */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Display */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

/* Width/Height */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Transitions */
.transition-none { transition: none !important; }
.transition-all { transition: all var(--transition-base) !important; }
.transition-colors { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base) !important; }
.transition-transform { transition: transform var(--transition-base) !important; }
.transition-opacity { transition: opacity var(--transition-base) !important; }

/* Transforms */
.translate-y-0 { transform: translateY(0) !important; }
.translate-y-1 { transform: translateY(4px) !important; }
.-translate-y-1 { transform: translateY(-4px) !important; }
.-translate-y-2 { transform: translateY(-8px) !important; }
.scale-100 { transform: scale(1) !important; }
.scale-105 { transform: scale(1.05) !important; }

/* Pointer Events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* ==========================================================================
   4. ANIMATIONS
   ========================================================================== */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn var(--duration-base) var(--ease-out) forwards;
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInDown {
  animation: fadeInDown var(--duration-slow) var(--ease-out) forwards;
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleIn {
  animation: scaleIn var(--duration-base) var(--ease-out) forwards;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--glow-purple-sm);
  }
  50% {
    box-shadow: var(--glow-purple);
  }
}

.animate-pulseGlow {
  animation: pulseGlow 2s var(--ease-in-out) infinite;
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s var(--ease-in-out) infinite;
}

/* Shimmer (for loading states) */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    var(--void-surface) 0%,
    var(--void-elevated) 50%,
    var(--void-surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Stagger Animation Helper */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ==========================================================================
   5. MOBILE-FIRST TYPE SCALE
   ========================================================================== */

.text-hero {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: var(--font-bold);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.text-section {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.text-caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}

@media (min-width: 768px) {
  .text-hero { font-size: 3.5rem; }
  .text-section { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .text-hero { font-size: clamp(3.5rem, 6vw, 5.5rem); }
  .text-section { font-size: clamp(2.5rem, 4vw, 3.5rem); }
}

/* ==========================================================================
   6. MOBILE-FIRST LAYOUT
   ========================================================================== */

/* Mobile-first container */
.container-mf {
  width: 100%;
  padding-inline: 1.25rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container-mf { padding-inline: 2rem; max-width: 720px; }
}

@media (min-width: 1024px) {
  .container-mf { padding-inline: 2.5rem; max-width: 960px; }
}

@media (min-width: 1280px) {
  .container-mf { max-width: 1140px; }
}

/* Section with clamp-based padding */
.section-mf {
  padding-block: clamp(4rem, 10vh, 8rem);
}

/* Full viewport height (mobile-safe) */
.full-screen {
  min-height: 100svh;
}

/* Viewport-entry animations */
[data-animate-in] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate-in].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-in].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-animate-in].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-animate-in].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-animate-in].is-visible > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  [data-animate-in] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
