/* ==========================================================================
   SHANSONS PRECIX — CORE DESIGN SYSTEM & STYLES
   Precision Medicine. Personalised for Every Patient.
   ========================================================================== */

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

:root {
  /* Color Palette — Deep Obsidian & Bioluminescent Accents */
  --bg-primary: #030712;
  --bg-secondary: #070e20;
  --bg-tertiary: #0c1836;
  --bg-card: rgba(12, 24, 54, 0.75);
  --bg-card-hover: rgba(18, 35, 75, 0.9);
  --bg-glass: rgba(10, 20, 44, 0.7);
  --bg-glass-strong: rgba(5, 10, 24, 0.94);
  
  /* Brand & Neon Accents */
  --brand-crimson: #e11d48;
  --brand-pink: #f43f5e;
  --neon-cyan: #00f2fe;
  --neon-teal: #00f5a0;
  --neon-blue: #4facfe;
  --neon-purple: #8b5cf6;
  --neon-magenta: #ec4899;
  --neon-amber: #fbbf24;
  
  /* Gradients */
  --grad-cyan-teal: linear-gradient(135deg, #00f2fe 0%, #00f5a0 100%);
  --grad-crimson-pink: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --grad-blue-purple: linear-gradient(135deg, #4facfe 0%, #8b5cf6 100%);
  --grad-purple-pink: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-dark-surface: linear-gradient(180deg, rgba(12, 24, 54, 0.85) 0%, rgba(5, 11, 26, 0.98) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15) 0%, rgba(0, 245, 160, 0.05) 50%, transparent 80%);
  
  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-cyan: #38bdf8;
  --text-emerald: #34d399;
  
  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-emerald-glow: rgba(0, 245, 160, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-emerald: 0 0 25px rgba(0, 245, 160, 0.25);
  
  /* Clean Formal Fonts */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions & Spacing */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --container-max: 1280px;
  --container-narrow: 1040px;
  --container-wide: 1440px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

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

/* Ambient Background Glow Effect */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

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

a:hover {
  color: var(--neon-teal);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  z-index: 1;
}

.section-lg {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.section-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-bg-secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-bg-tertiary {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-gradient {
  background: var(--grad-cyan-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-purple {
  background: var(--grad-purple-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: var(--grad-blue-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges & Section Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 242, 254, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.section-tag-emerald {
  background: rgba(0, 245, 160, 0.08);
  color: var(--neon-teal);
  border-color: rgba(0, 245, 160, 0.25);
}

.section-tag-purple {
  background: rgba(139, 92, 246, 0.08);
  color: var(--neon-purple);
  border-color: rgba(139, 92, 246, 0.25);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Glassmorphism Surface Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-neon);
}

.glass-card-emerald:hover {
  border-color: var(--border-emerald-glow);
  box-shadow: var(--shadow-emerald);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container { max-width: 1120px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-height: 82px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-lg { padding-top: 5.5rem; padding-bottom: 5.5rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 74px; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section-lg { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .glass-card { padding: 1.75rem 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
}
