/* ==========================================================================
   HAPYPRO DESIGN SYSTEM - PREMIUM TEAL & WARM CORAL PALETTE
   Colors:
   - Primary Brand: Teal (#00A8B5)
   - Headings: Rich Charcoal (#1A1A1A)
   - Content Cards: Crisp White (#FFFFFF) & Soft Off-White (#F7FAFC)
   - Accents / CTA: Subtle Warm Coral (#FF6B6B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Core Backgrounds */
  --bg-primary: #F7FAFC;       /* Soft Off-White */
  --bg-secondary: #EDF2F7;     /* Secondary Soft Gray */
  --bg-surface: #FFFFFF;       /* Crisp White Card */
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-surface-hover: #F8FAFC;
  --bg-input: #FFFFFF;

  /* Primary Brand: Teal */
  --primary: #00A8B5;
  --primary-hover: #008B97;
  --primary-dark: #006D77;
  --primary-light: #E6F7F8;
  --primary-glow: rgba(0, 168, 181, 0.25);
  
  /* Accent & CTA: Subtle Warm Coral */
  --accent-coral: #FF6B6B;
  --accent-coral-hover: #FA5252;
  --accent-coral-light: #FFF0F0;
  --accent-coral-glow: rgba(255, 107, 107, 0.3);

  /* Auxiliary Accents */
  --secondary: #00A8B5;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-purple: #8B5CF6;

  /* Functional Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #00A8B5;

  /* Typography: Rich Charcoal & Grayscale */
  --text-primary: #1A1A1A;     /* Rich Charcoal */
  --text-secondary: #4A5568;   /* Slate Gray */
  --text-muted: #718096;       /* Muted Charcoal */
  --text-inverse: #FFFFFF;

  /* Clean Subtle Borders */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-bright: #94A3B8;
  --border-accent: rgba(0, 168, 181, 0.45);
  --border-coral: rgba(255, 107, 107, 0.45);

  /* Crisp Layered Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(26, 26, 26, 0.07);
  --shadow-lg: 0 20px 45px -10px rgba(26, 26, 26, 0.1);
  --shadow-glow-teal: 0 8px 30px rgba(0, 168, 181, 0.22);
  --shadow-glow-coral: 0 8px 30px rgba(255, 107, 107, 0.25);

  /* Typography Scale */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Snappy Transitions */
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s var(--ease-snappy);
  --transition-normal: 0.3s var(--ease-snappy);
  --transition-slow: 0.6s var(--ease-smooth);

  /* Layout Containers */
  --container-max: 1280px;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Radial Glow Overlays (Subtle Teal & Coral) */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: 15%;
  width: 55vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 168, 181, 0.08) 0%, rgba(247, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -15vw;
  right: 10%;
  width: 50vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, rgba(247, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Headings with Rich Charcoal Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: break-word;
}

h1 {
  font-size: clamp(1.85rem, 5vw + 0.8rem, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1A1A1A;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw + 0.4rem, 2.8rem);
  color: #1A1A1A;
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.25rem, 1.85rem);
  color: #1A1A1A;
}

h4 {
  font-size: 1.25rem;
  color: #1A1A1A;
}

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  position: relative;
  z-index: 1;
}

/* Gradient text featuring Teal and Charcoal */
.gradient-text {
  background: linear-gradient(135deg, #1A1A1A 20%, #00A8B5 75%, #008B97 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-coral {
  background: linear-gradient(135deg, #FF6B6B 0%, #FA5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Crisp White Content Cards & Glass Panels */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.glass-panel-luminous {
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-display);
}

/* Teal Badge */
.badge-primary,
.badge-cyan {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(0, 168, 181, 0.25);
}

/* Warm Coral Accent Badge */
.badge-coral {
  background: var(--accent-coral-light);
  color: var(--accent-coral-hover);
  border-color: rgba(255, 107, 107, 0.3);
}

.badge-emerald {
  background: #ECFDF5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-amber {
  background: #FFFBEB;
  color: #B45309;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
