/* ==========================================================================
   AFRICAN CHEMICALS GROUP (ACG) - PROFESSIONAL ENTERPRISE DESIGN SYSTEM
   Featuring Executive Dark Greys, Obsidian Blacks & Crystal-Clear Typography
   ========================================================================== */

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

:root {
  /* Palette: Crisp Whites, Dark Greys, and Obsidian Blacks (No Dark Blues) */
  --bg-pure: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --bg-card: #FFFFFF;
  
  /* Dark Greys & Pure Blacks */
  --bg-dark: #0A0A0A;                  /* Pure Obsidian Black */
  --bg-dark-surface: #121214;          /* Matte Charcoal Surface */
  --bg-dark-card: #18181B;             /* Dark Graphite Panel */
  --bg-dark-elevated: #222226;         /* Elevated Charcoal */
  --bg-dark-border: #27272A;           /* Neutral Grey Border */

  /* Neutral Grey Spectrum */
  --grey-50: #FAFAFA;
  --grey-100: #F4F4F5;
  --grey-200: #E4E4E7;
  --grey-300: #D4D4D8;
  --grey-400: #A1A1AA;
  --grey-500: #71717A;
  --grey-600: #52525B;
  --grey-700: #3F3F46;
  --grey-800: #27272A;
  --grey-900: #18181B;
  --grey-950: #0E0E10;

  /* Typography Colors */
  --text-primary: #0F1115;
  --text-secondary: #47474F;
  --text-muted: #71717A;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #A1A1AA;

  /* Signature Brand Highlights */
  --color-accent-block: #10B981;       /* Vibrant ACG Emerald */
  --color-accent-deep: #064E3B;        /* Deep Forest Green */
  --color-accent-amber: #F59E0B;       /* Pure Lubricant Gold */
  --color-accent-silver: #E4E4E7;      /* Clean Technical Silver */

  /* Crisp Borders */
  --border-hairline: 1px solid #E4E4E7;
  --border-dark: 1px solid #27272A;
  --border-dark-subtle: 1px solid #1F1F23;
  --border-bold: 2px solid #0A0A0A;

  /* Ultra-Premium Dark Glassmorphism Tokens (Reference Mockup Fidelity) */
  --glass-dark-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.35) 100%), rgba(18, 18, 20, 0.72);
  --glass-dark-border: 1px solid rgba(255, 255, 255, 0.14);
  --glass-dark-blur: blur(28px) saturate(190%);
  --glass-dark-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5);

  /* Professional & Crystal-Clear Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif-headline: 'Playfair Display', Georgia, serif;
  --font-serif-body: 'Newsreader', Georgia, serif;

  /* Layout */
  --max-width: 1440px;
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-subtle);
}

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

/* Ambient Subtle Dots */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

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

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

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding: clamp(2.25rem, 4.5vh, 4.25rem) 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.section-dark h1, 
.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: var(--text-inverse);
}

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

/* Editorial Minimalist Section Header - Compact and Viewport Aware */
.editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: var(--border-hairline);
  padding-bottom: clamp(0.75rem, 1.2vh, 1.25rem);
  margin-bottom: clamp(1.25rem, 2.2vh, 2.25rem);
  flex-wrap: wrap;
  gap: 1rem;
}

.editorial-header-left {
  max-width: 680px;
}

.editorial-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.75vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.editorial-tag .square-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-block);
  display: inline-block;
}

.editorial-title {
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.editorial-header-right {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

/* Stencil Index Display */
.stencil-index {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
}
