/* ==========================================================================
   PassCrates Design System — Refined Obsidian & Titanium
   Clean, professional, high-end software aesthetic (Linear / Raycast tier)
   Canonical: https://passcrates.mrmanager.me
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces & Canvas (Deep, matte, luxurious) */
  --bg-canvas: #090A0D;
  --bg-surface: #101216;
  --bg-surface-subtle: #14171E;
  --bg-surface-elevated: #1A1D26;
  --bg-surface-active: #222634;
  
  /* Hairline Borders (Crisp, quiet, disciplined) */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.20);
  --border-focus: #00E5BE;

  /* Restrained Accents (Used for state & feedback, not decoration) */
  --accent: #00E5BE;
  --accent-hover: #1DFCD3;
  --accent-subtle: rgba(0, 229, 190, 0.08);
  --accent-border: rgba(0, 229, 190, 0.25);
  
  --emerald: #10B981;
  --emerald-subtle: rgba(16, 185, 129, 0.08);
  
  --amber: #F59E0B;
  --amber-subtle: rgba(245, 158, 11, 0.08);
  
  --crimson: #EF4444;
  --crimson-subtle: rgba(239, 68, 68, 0.08);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #9499A6;
  --text-tertiary: #5E6370;
  --text-muted: #434752;

  /* Typography Scales */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.9375rem;/* 15px */
  --text-md: 1.0625rem;  /* 17px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */

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

  /* Geometry & Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Motion & Spring Physics (Snappy, natural, Emil Kowalski standard) */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --transition-instant: 100ms var(--ease-snappy);
  --transition-fast: 180ms var(--ease-spring);
  --transition-normal: 250ms var(--ease-spring);

  /* Elevation Shadows */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-medium);
  --shadow-subtle-glow: 0 0 20px rgba(0, 229, 190, 0.12);

  /* Z-Index Scale */
  --z-base: 1;
  --z-card: 10;
  --z-sticky: 100;
  --z-modal: 500;
  --z-toast: 1000;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent);
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Selection */
::selection {
  background-color: rgba(0, 229, 190, 0.25);
  color: #FFFFFF;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@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;
  }
}
