:root {
  /* Colors - Modern OKLCH Palette */
  --bg-primary: oklch(0.99 0.01 240);
  --text-primary: oklch(0.2 0.02 240);
  --text-secondary: oklch(0.4 0.02 240);
  --brand-primary: oklch(0.55 0.15 250); /* Trustworthy Blue */
  --brand-secondary: oklch(0.65 0.1 200); /* Soft Cyan */
  --accent: oklch(0.6 0.2 280); /* Vibrant Indigo */
  --error: oklch(0.65 0.2 30); /* Highlight color */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -1px oklch(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -2px oklch(0 0 0 / 0.05);
  --shadow-glow: 0 0 15px oklch(0.55 0.15 250 / 0.3);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --header-height: 72px;

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Constants */
  --sidebar-width: 20%;
  --canvas-width: 60%;
  --panel-width: 20%;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Base Layout Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation & Utility */
.hidden {
  display: none !important;
}

/* Hero Section Refined */
.hero-section {
  padding: 10vh 0 5vh;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
  font-weight: 800;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Integrated Erosion Experience */
.integrated-erosion {
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: white;
  border-radius: 24px;
  border: 1px solid oklch(0 0 0 / 0.05);
  box-shadow: var(--shadow-md);
  max-width: 700px;
}

.wealth-display {
  margin-bottom: 2rem;
}

.wealth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.wealth-counter {
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.erosion-messages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.erosion-step {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
}

.erosion-step.active {
  opacity: 1;
  transform: translateY(0);
}

.erosion-step.highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-hero {
  background-color: var(--brand-primary);
  color: white;
  padding: 1.125rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  opacity: 0; /* Hidden initially, shown after timed reveal */
  transform: translateY(10px);
}

.btn-hero.active {
  opacity: 1;
  transform: translateY(0);
}

.btn-hero:hover {
  background-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Explore Layout Styles */
.explore-container {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  border-top: 1px solid oklch(0 0 0 / 0.05);
}

.column {
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid oklch(0 0 0 / 0.05);
  background-color: oklch(1 0 0 / 0.3);
}

.column:last-child {
  border-right: none;
}

.sidebar { width: var(--sidebar-width); }
.canvas { width: var(--canvas-width); background-color: oklch(0.98 0 0); position: relative; }
.panel { width: var(--panel-width); }

/* Grid Pattern for Canvas */
.canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, oklch(0 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0 0 0 / 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle Noise Texture Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  .wealth-counter { font-size: 2rem; }
  .hero-description { font-size: 1.125rem; }
}
