/* ==========================================================================
   BREATHER DESIGN SYSTEM & TOKENS
   Deep Charcoal (#0F0F11) with Breather Orange & Teal Ambient Accents
   ========================================================================== */

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

:root {
  /* Colors */
  --bg-ground: #0F0F11;
  --bg-surface: #17171A;
  --bg-surface-elevated: #1F1F24;
  --bg-card: rgba(23, 23, 26, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.09);

  /* Breather Signatures */
  --accent-orange: #FF4500;
  --accent-orange-bright: #FE6601;
  --accent-orange-glow: rgba(255, 69, 0, 0.45);
  --accent-orange-subtle: rgba(255, 69, 0, 0.12);

  --accent-teal: #196B5D;
  --accent-teal-bright: #2C7A7B;
  --accent-teal-glow: rgba(44, 122, 123, 0.4);
  --accent-teal-subtle: rgba(25, 107, 93, 0.15);

  /* Typography Colors */
  --text-main: #F5F5F0;
  --text-muted: #A1A1AA;
  --text-faint: #7A7A74;
  --text-dark: #1A1A1A;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(26, 26, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-highlight: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Transitions & Curves */
  --ease-hero: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-normal: 0.3s;
  --duration-slow: 0.8s;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-ground);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-ground);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--accent-orange);
  color: #FFFFFF;
}

/* Typography Helpers */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

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

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

/* Subtle ambient background glow mesh */
.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-orange {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(254, 102, 1, 0.16) 0%, rgba(255, 69, 0, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: pulseGlow 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.ambient-glow-teal {
  position: absolute;
  top: 40%;
  left: -10%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(25, 107, 93, 0.22) 0%, rgba(44, 122, 123, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  border-radius: 50%;
  animation: pulseGlow 18s ease-in-out infinite alternate-reverse;
  will-change: transform, opacity;
}

.ambient-glow-center {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  filter: blur(60px);
}

/* Subtle micro grain overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95) translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08) translate(30px, -20px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translate(-20px, 30px);
    opacity: 0.85;
  }
}

/* Reduced Motion Support */
@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;
  }
  .ambient-glow-orange,
  .ambient-glow-teal {
    animation: none !important;
  }
}
