:root {
  --surface: #fcf9f8;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0eded;
  --surface-container-highest: #e5e2e1;
  
  --primary: #8b5000;
  --primary-container: #f18f01;
  
  --on-surface: #1a1a1a; /* Deep Charcoal from guidelines */
  --outline-variant: #dbc2ae;

  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-128: 128px;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--on-surface);
  background-color: var(--surface);
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  line-height: 1.5;
  background-color: #000; /* For a dark theme start (Hero section vibe) */
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6, .display-lg, .headline-sm {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em; /* slightly tracked-in */
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

.headline-sm {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

.label-md {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em; /* Micro-Data / Engineering Blueprints */
  text-transform: uppercase;
  font-weight: 600;
}

.label-sm {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.body-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 0.375rem; /* rounded-md */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-out;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  box-shadow: 0 4px 15px rgba(241, 143, 1, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(241, 143, 1, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface-container-highest);
  color: var(--on-surface);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 12px 16px;
}

.btn-ghost:hover {
  background-color: rgba(139, 80, 0, 0.05); /* very subtle */
}

/* Glass & Gradient Rule */
.glass {
  background: rgba(252, 249, 248, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Surface Hierarchy & Nesting */
.subtle-inset {
  background-color: var(--surface-container-low);
}

.active-element {
  background-color: var(--surface-container);
}

.high-focus {
  background-color: var(--surface-container-highest);
}

/* Shadows */
.ambient-shadow {
  box-shadow: 0 24px 48px -12px rgba(28, 27, 27, 0.08); /* Spec shadow */
}

.ghost-border-bottom {
  border-bottom: 1px solid rgba(219, 194, 174, 0.15); /* 15% opacity */
}
