/* ==========================================================================
   DreamIT ImpactOS - Global Styles
   Visual Design: VaultEx by Emote Agency Inspired
   ========================================================================== */

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

*, *::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;
  background-color: var(--background);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle architectural off-light ambiance */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(185, 209, 196, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(225, 126, 227, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(199, 203, 70, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-editorial);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.container-wide {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(48px, 6.2vw, 92px);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-size: 1.05rem;
  font-weight: 600;
}

h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

p.lead {
  font-size: 1.25rem;
  color: #2D2C31;
  line-height: 1.6;
  font-weight: 400;
}

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

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

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

.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* Micro-Labels & Eyebrow Badges */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 6, 0.05);
  border: 1px solid rgba(5, 5, 6, 0.08);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.section-tag.sage {
  background: var(--sage);
  color: var(--foreground);
  border-color: rgba(5, 5, 6, 0.12);
}

.section-tag.lime {
  background: var(--lime);
  color: var(--foreground);
  border-color: rgba(5, 5, 6, 0.15);
}

.section-tag.lilac {
  background: var(--lilac);
  color: #FFFFFF;
  border-color: transparent;
}

.section-tag.dark {
  background: var(--foreground);
  color: #FFFFFF;
  border-color: transparent;
}

/* Demo Data Notice Tag */
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(5, 5, 6, 0.06);
  border: 1px solid rgba(5, 5, 6, 0.10);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.demo-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

/* Section Spacing - Generous Editorial Rhythm (120-160px) */
.section {
  padding-top: clamp(80px, 9vw, 150px);
  padding-bottom: clamp(80px, 9vw, 150px);
  position: relative;
  z-index: 1;
}

.section-tight {
  padding-top: clamp(48px, 6vw, 90px);
  padding-bottom: clamp(48px, 6vw, 90px);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-16) auto;
}

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

.section-title {
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Dark Editorial Sections */
.section-dark {
  background-color: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
  z-index: 2;
}

.section-dark h1, 
.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: #A3A2AA;
}

.section-dark .section-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: #F3F2F4;
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
