/* ============================================================
   DESIGN SYSTEM — mattpotts.ai
   Shared tokens used across /lp/, theme, and checkout pages
   ============================================================ */

/* === Color System === */
:root {
  /* Brand */
  --brand-primary: #7C3AED;
  --brand-primary-light: #A78BFA;
  --brand-primary-dark: #5B21B6;
  --brand-accent: #F59E0B;
  --brand-accent-light: #FBBF24;

  /* Surfaces */
  --bg-deep: #0A0A1A;
  --bg-surface: #111127;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-input-focus: rgba(255, 255, 255, 0.07);

  /* Text */
  --text-hero: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(124, 58, 237, 0.5);

  /* Status */
  --success: #34D399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.2);
  --error: #F87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.08);

  /* === Typography === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Scale (modular, 1.25 ratio) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.9375rem;/* 15px */
  --text-lg: 1rem;       /* 16px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.75rem;   /* 28px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

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

  /* === Spacing === */
  --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;

  /* === Layout === */
  --max-width: 1100px;
  --max-width-content: 720px;
  --max-width-narrow: 540px;

  /* === Borders & Radius === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-glow-purple: 0 4px 16px rgba(124, 58, 237, 0.3);
  --shadow-glow-amber: 0 4px 16px rgba(245, 158, 11, 0.2);

  /* === Transitions === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* === Z-Index Scale === */
  --z-base: 0;
  --z-above: 1;
  --z-header: 10;
  --z-overlay: 100;
  --z-modal: 1000;
}

/* === Base Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* === Reusable Component Classes === */

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.card:hover {
  background: var(--bg-card-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.badge--accent {
  color: var(--brand-accent);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.badge--success {
  color: var(--success);
  background: var(--success-bg);
}
.badge--primary {
  color: var(--brand-primary-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn--primary {
  font-size: 17px;
  padding: 17px 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  box-shadow: var(--shadow-glow-purple), 0 0 0 1px rgba(124, 58, 237, 0.2) inset;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.3) inset;
}
.btn--secondary {
  font-size: 15px;
  padding: 13px 24px;
  color: var(--text-hero);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}
.btn--full { width: 100%; }

/* Ambient background effects */
.ambient::before,
.ambient::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-base);
}
.ambient::before {
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}
.ambient::after {
  bottom: -25%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in { animation: fadeInUp 0.6s var(--ease-out) both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* Utility Classes */
.text-hero { color: var(--text-hero); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--brand-accent); }
.text-primary { color: var(--brand-primary-light); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
