:root {
  --bg-canvas: #09090b;
  --bg-surface: rgba(244, 241, 234, 0.05);
  --bg-surface-hover: rgba(244, 241, 234, 0.1);
  --bg-surface-solid: #151518;
  --text-primary: #f4f1ea;
  --text-muted: rgba(244, 241, 234, 0.6);
  --text-inverted: #09090b;
  --accent-primary: #d4a84b;
  --accent-secondary: #c29538;
  --border-subtle: rgba(212, 168, 75, 0.15);
  --border-highlight: rgba(212, 168, 75, 0.4);
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px -4px rgba(212, 168, 75, 0.3);
  --glass-backdrop: blur(16px) saturate(180%);
  
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-secondary); text-decoration: underline; }

/* Header & Nav */
.site-header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: bold;
}
.brand:hover { text-decoration: none; color: var(--accent-secondary); }

.desktop-nav { display: flex; gap: 1.5rem; }
.desktop-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.desktop-nav a:hover { color: var(--accent-primary); text-decoration: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface-solid);
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hero Section */
.hero {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #151518 0%, #09090b 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent-primary);
  max-width: 1000px;
  margin: 0 auto 2rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0 auto 3rem;
}

/* Layout & Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.copy-container {
  max-width: 72ch;
  margin: 0 auto;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.bento-wide { grid-column: 1 / -1; }
@media (min-width: 769px) {
  .bento-large { grid-column: span 2; grid-row: span 2; }
}

/* Components */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  background: var(--bg-surface-hover);
}
.glass-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.card-content h3 { color: var(--accent-primary); margin-bottom: 0.5rem; }

.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--text-inverted);
  border-radius: 9999px;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--text-inverted);
}

.accent-block {
  background: var(--accent-primary);
  color: var(--text-inverted);
  padding: 5rem 2rem;
  text-align: center;
  margin: 4rem 0;
}
.accent-block h2, .accent-block h3, .accent-block p { color: var(--text-inverted); }

/* Tabbed Panels */
.tabs-container { margin-top: 2rem; }
.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--accent-primary); border-bottom: 2px solid var(--accent-primary); }
.tab-panel { display: none; animation: fadeIn 0.5s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Stat Strips */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--bg-surface-solid);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  justify-content: space-around;
  margin: 2rem 0;
}
.stat-item { text-align: center; }
.stat-value {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Interactive Form (Drafting Tool) */
.draft-tool {
  background: var(--bg-surface-solid);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-highlight);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--accent-primary); }
.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 10px;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 8px rgba(212,168,75,0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }
.draft-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #000;
  border-radius: 10px;
  border: 1px dashed var(--accent-primary);
  display: none;
}
.draft-result.active { display: block; }

/* Scroll Reveals */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Table Wrapper */
.table-wrapper { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border: 1px solid var(--border-subtle); text-align: left; }
th { background: var(--bg-surface-solid); color: var(--accent-primary); }

/* Footer */
.site-footer {
  background: var(--bg-surface-solid);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-col h4 { color: var(--accent-primary); margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a { display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--text-primary); }
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 4rem 1rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
