:root {
  /* Dynamic Palette: Fuchsia Commuter Pack (Strictly No Blue) */
  --bg-canvas: #fdf2f8; /* Blush base */
  --bg-alt: #fce7f3; /* Slightly darker blush for section contrast */
  --bg-surface: rgba(253, 242, 248, 0.65); /* Translucent */
  --bg-surface-hover: rgba(253, 242, 248, 0.95);
  --bg-surface-solid: rgba(252, 231, 243, 0.8);
  --text-primary: #2e1065; /* Deep violet */
  --text-muted: rgba(46, 16, 101, 0.7);
  --accent-primary: #f43f5e; /* Plum neon rose */
  --accent-secondary: #e11d48;
  --border-subtle: rgba(244, 63, 94, 0.25);
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(46, 16, 101, 0.15);
  --glow-accent: 0 0 24px -4px rgba(244, 63, 94, 0.4);
  --glass-backdrop: blur(16px) saturate(180%);
  
  /* Layout constraints */
  --radius-card: 4px;
  --radius-btn: 0px;
  --max-width: 1200px;
}

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

html, body {
  width: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; font-weight: 400; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s var(--ease-kinetic); }
a:hover { color: var(--accent-secondary); }

strong { color: var(--text-primary); font-weight: 800; }

/* Structural Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.copy-container {
  max-width: 72ch;
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  position: relative; /* Scrolls naturally */
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-accent {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface-solid);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-nav-overlay.active {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-btn); /* Square ends */
  color: var(--accent-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}

.btn-solid:hover {
  background: transparent;
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  background: var(--text-primary);
}

.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 1.5rem 8rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr 400px;
    align-items: center;
  }
}

.hero-title-area h1 {
  color: var(--bg-canvas);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

/* Floating Fact Card */
.hero-fact-card {
  background: rgba(253, 242, 248, 0.1);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(253, 242, 248, 0.2);
  border-radius: var(--radius-card);
  padding: 2rem;
  color: var(--bg-canvas);
  transform: translateY(0);
  transition: transform 0.5s var(--ease-kinetic);
}

.hero-fact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(253, 242, 248, 0.1);
}
.fact-item:last-child {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
.fact-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}
.fact-desc {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Sections & Diagonals */
.section {
  padding: 6rem 0 8rem;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin-top: -4rem;
  padding-top: 10rem;
  padding-bottom: 10rem;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--text-primary);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: all 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glass-card:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.glass-card img.macro-detail {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem -2rem;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

@media (min-width: 769px) {
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 2; }
  .bento-hero { grid-column: span 2; grid-row: span 2; }
}

/* Article / Long Form */
.article-header {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.article-meta {
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.prose h2, .prose h3 {
  margin-top: 3rem;
}
.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.prose li {
  margin-bottom: 0.5rem;
}

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.tool-output {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(46, 16, 101, 0.05);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  display: none;
}
.tool-output.active {
  display: block;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

/* Responsive Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

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