/* Coastal Key Foundation Design Tokens - Aligned to https://coastalkey-qpppx8pg.manus.space */
/* Master Deployment aesthetic: Luxury AI-driven enterprise OS */

:root {
  /* ENTERPRISE REFACTOR: Strict 8pt grid, high-trust institutional palette, 150ms hardware-accelerated micro-interactions */
  /* Aligned to Next.js / $1M UI/UX blueprint for maximum revenue generation across ALL pages */
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Core Colors - Strict high-contrast no-grey system for UHNW trust */
  --color-navy: #0A1428;
  --color-deep-navy: #06101F;
  --color-royal-navy: #0A1428;
  --color-gold: #C9A227;
  --color-deep-gold: #A88A52;
  --color-sand: #D2C4A0;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-border: rgba(201, 162, 39, 0.25);
  --color-card-bg: #16203A;
  --color-light-text: #E8E4D9;

  /* Strict 8pt Grid System (multiples of 8px for all spacing, radii, type) */
  --radius: 0.5rem; /* 8px */
  --radius-lg: 1rem; /* 16px */
  --shadow-lux: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  --transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); /* 150ms hardware-accelerated */
  --transition-lux: all 150ms cubic-bezier(0.23, 1, 0.32, 1);

  /* 8pt spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 3.5rem;
  --space-8: 4rem;

  /* Typography scale (8pt aligned) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* 3D Gold + institutional polish */
  --gold-gradient: linear-gradient(152deg, #F5E8C7 0%, #E8D5A3 9%, #D4AF37 18%, #C9A227 29%, #B38B3E 41%, #A88A52 53%, #8C6F3A 64%, #6B5530 76%, #C9A227 87%, #E8D5A3 96%, #F5E8C7 100%);
  --modal-bg: rgba(6, 16, 31, 0.98);
}

body, .foundation-body {
  font-family: var(--font-sans);
  background: #0A1428;
  color: #E8E4D9;
}

h1, h2, .display, .master-brief {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

code, .mono, pre {
  font-family: var(--font-mono);
}

/* Luxury card and section styling matching Master Deployment */
.foundation-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lux);
  transition: var(--transition);
}

.foundation-section {
  padding: 4rem 1.5rem;
  background: #0A1428;
  color: #E8E4D9;
}

.foundation-hero {
  background: linear-gradient(180deg, #0A1428 0%, #06101F 100%);
  color: #E8E4D9;
}

.foundation-gold-accent {
  color: var(--color-gold);
}

.light-bg, .section-light, [style*="background:#fff"], [style*="background: #fff"], [style*="background:#F8F6F0"], [style*="background: #F8F6F0"], [style*="background:#ffffff"], [style*="background: #ffffff"] {
  background: #0A1428 !important;
  color: #E8E4D9 !important;
}

/* v2.0 Master Prompt: Force warm off-white text on all darks, metallic gold, low tint enforcement */
body, .foundation-body, .foundation-section, .foundation-card {
  color: #E8E4D9 !important;
}
h1, h2, h3 { color: #FFFFFF !important; }
.foundation-gold-accent, .gold, [style*="color:#C9A227"], [style*="color: #C9A227"], [style*="color:#D4AF37"] {
  background: linear-gradient(145deg,#F5E8C7 6%,#E8D5A3 14%,#D4AF37 24%,#C9A227 36%,#A88A52 61%,#C9A227 78%,#F5E8C7 96%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0.5px 0.7px rgba(0,0,0,0.5), 0 -0.6px 0.3px rgba(255,255,255,0.25);
}
div[style*="background-image"][style*="opacity:"] { opacity: 0.12 !important; }

.foundation-discreet {
  opacity: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
