/* ==========================================================================
   WOLFY AI INSTITUTE — LUXURY EDITORIAL DESIGN SYSTEM & TOKENS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Luxury Dark Palette */
  --bg-deep: #050608;
  --bg-primary: #090b10;
  --bg-secondary: #0f1219;
  --bg-surface: #141822;
  --bg-surface-elevated: #1a202e;
  
  /* Luxury Accents */
  --gold-primary: #d4af37;
  --gold-light: #f3e8c8;
  --gold-warm: #e5c583;
  --gold-deep: #b38f2a;
  --gold-hairline: rgba(212, 175, 55, 0.22);
  --gold-glow: rgba(212, 175, 55, 0.12);
  
  /* Restrained Secondary Accent */
  --blue-accent: #3b82f6;
  --blue-subtle: rgba(59, 130, 246, 0.15);
  
  /* Text & Ivory Colors */
  --ivory-pure: #ffffff;
  --ivory-warm: #f7f5f0;
  --ivory-muted: #e2ded5;
  --text-primary: #f5f4f0;
  --text-secondary: #9aa2b1;
  --text-muted: #677184;
  --text-dim: #444c5c;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Luxury Hairline Borders & Dividers */
  --border-hairline: 1px solid rgba(255, 255, 255, 0.07);
  --border-gold: 1px solid var(--gold-hairline);
  --border-gold-focus: 1px solid rgba(212, 175, 55, 0.55);
  
  /* Shadows & Lighting */
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 10px 35px rgba(212, 175, 55, 0.15);
  
  /* Spacing & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-luxury: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-width: 1240px;
  --nav-height: 84px;
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLING
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

main, section, header, footer {
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

::selection {
  background: rgba(212, 175, 55, 0.25);
  color: var(--ivory-warm);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory-warm);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

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

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

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

/* ==========================================================================
   LAYOUT CONTAINERS & LUXURY UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 2.25rem);
  padding-right: clamp(1rem, 3.5vw, 2.25rem);
  box-sizing: border-box;
}

.section-wrapper {
  position: relative;
  padding: 8.5rem 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.section-header.left-aligned {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Editorial Eyebrow Badge */
.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-warm);
  margin-bottom: 1.5rem;
}

.editorial-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--ivory-warm);
}

.section-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
}

/* Atmospheric Glow & Light */
.luxury-glow-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.35;
}

.luxury-glow-gold {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
}

.luxury-glow-navy {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

/* Hairline Gold Divider */
.hairline-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.25) 50%, transparent 100%);
  margin: 4rem 0;
}

/* Accessibility / Screen-reader only */
.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;
}
