/* ManufacturingFlow.ai - Design System v4.1
   Green Primary + Slate Dark — per Brand Guide v1.0
   Typography: DM Sans (primary) + Space Mono (stats/code)
   Rebuilt February 2026 for LLM discoverability
   ============================================= */

/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand Colors — from Brand Guide v1.0 */
  --primary: #22C55E;         /* Primary Green */
  --primary-light: #4ADE80;   /* Green Light */
  --primary-dark: #14532D;    /* Forest */
  --primary-darker: #052E16;  /* Forest Dark */
  --accent: #22C55E;          /* Green is both primary and accent */
  --accent-hover: #16A34A;    /* Darker green on hover */
  --accent-light: #DCFCE7;    /* Green Pale */

  /* Backgrounds — Slate tones from Brand Guide */
  --bg-light: #F1F5F9;        /* Slate Pale */
  --bg-white: #FFFFFF;
  --bg-dark: #1E293B;         /* Slate */
  --bg-darker: #0F172A;       /* Slate Dark */

  /* Text */
  --text-primary: #0F172A;    /* Slate Dark */
  --text-secondary: #475569;  /* Slate 600 */
  --text-muted: #64748B;      /* Slate Mid */
  --text-on-dark: #E2E8F0;    /* Light text on dark bg */
  --text-on-dark-muted: #94A3B8; /* Muted text on dark bg */

  /* Borders & Utilities */
  --border: #E2E8F0;
  --border-dark: rgba(255,255,255,0.12);
  --white: #FFFFFF;

  /* Named aliases for readability */
  --green: #22C55E;
  --green-hover: #16A34A;
  --green-light: #4ADE80;
  --green-pale: #DCFCE7;
  --forest-dark: #052E16;
  --forest: #14532D;
  --slate-dark: #0F172A;
  --slate: #1E293B;
  --slate-mid: #64748B;
  --slate-light: #94A3B8;
  --slate-pale: #F1F5F9;
  --border-light: #E2E8F0;
  --text-body: #6B7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }

a { color: inherit; text-decoration: none; }
p { color: var(--text-secondary); line-height: 1.7; }

code, .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.875rem 0;
  background: rgba(15, 23, 42, 0.97);  /* Slate Dark with opacity */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon { width: 40px; height: 40px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text-top {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.logo-text-bottom {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color 0.2s;
}

nav a:hover { color: var(--white); }
nav a.active { color: var(--white); font-weight: 600; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 4px;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
}

.hero h1 .highlight { color: var(--accent-light); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-on-dark);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* Page Hero (shorter for internal pages) */
.page-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 { margin-bottom: 16px; color: var(--white); }
.page-hero p { font-size: 1.2rem; color: var(--text-on-dark); max-width: 640px; line-height: 1.8; }

/* =============================================
   STATS BAR
   ============================================= */
.stats {
  padding: 3rem 0;
  background: var(--bg-darker);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat { text-align: center; }

.stat-value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-value .accent { color: var(--accent); }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

/* =============================================
   SECTIONS — Light & Dark
   ============================================= */
.section-light {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 5rem 0;
}

.section-white {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
  padding: 5rem 0;
}

.section-darker {
  background: var(--bg-darker);
  color: var(--white);
  padding: 5rem 0;
}

/* Section Headers */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; line-height: 1.8; }

.section-header-center {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header-center h2 { margin-bottom: 16px; }
.section-header-center p { font-size: 1.1rem; line-height: 1.8; }

/* Dark section text overrides */
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-darker h2,
.section-darker h3,
.section-darker h4 { color: var(--white); }

.section-dark p,
.section-darker p { color: var(--text-on-dark); }

.section-dark .section-label,
.section-darker .section-label { color: var(--accent-light); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.card h3 { color: var(--text-primary); margin-bottom: 0.75rem; }
.card p { color: var(--text-secondary); line-height: 1.7; }

.card-dark {
  background: rgba(255,255,255,0.06);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.card-dark:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(255,255,255,0.08);
}

.card-dark h3 { color: var(--white); margin-bottom: 0.75rem; }
.card-dark p { color: var(--text-on-dark); line-height: 1.7; }

/* Card Icon */
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg { width: 24px; height: 24px; color: var(--accent); }

/* =============================================
   GRIDS
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* =============================================
   TWO-PHASE SOLUTION
   ============================================= */
.phase-card {
  padding: 2.5rem;
  border-radius: 12px;
  position: relative;
}

.phase-card .phase-number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.phase-card.phase-1 { background: var(--white); border: 2px solid var(--primary); }
.phase-card.phase-1 .phase-number { background: var(--primary); color: var(--white); }

.phase-card.phase-2 { background: var(--white); border: 2px solid var(--accent); }
.phase-card.phase-2 .phase-number { background: var(--accent); color: var(--white); }

.phase-card h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }

.phase-list {
  list-style: none;
  margin-top: 1.25rem;
}

.phase-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.phase-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* =============================================
   FLOW FRAMEWORK (Entry → Momentum → Flow)
   ============================================= */
.flow-diagram {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.flow-header {
  text-align: center;
  margin-bottom: 2rem;
}

.flow-header h3 { margin-bottom: 8px; }
.flow-header p { font-size: 0.9rem; color: var(--text-muted); }

.flow-stages {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.flow-stages::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.3;
}

.flow-stage {
  flex: 1;
  text-align: center;
  position: relative;
}

.stage-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.stage-name { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.stage-desc { font-size: 0.875rem; color: var(--text-muted); }
.stage-3 .stage-icon { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* =============================================
   TESTIMONIALS / SOCIAL PROOF
   ============================================= */
.testimonial {
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.section-light .testimonial,
.section-white .testimonial { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.section-dark .testimonial { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-left: 4px solid var(--accent); }

.testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .attribution {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial .attribution span { font-weight: 400; color: var(--text-muted); }

/* Logo Strip */
.logo-strip {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.7;
}

.logo-strip img { height: 32px; filter: grayscale(1); transition: filter 0.2s; }
.logo-strip img:hover { filter: grayscale(0); }

/* =============================================
   KNOWLEDGE HUB / ARTICLE CARDS
   ============================================= */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.article-card .category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card h3 a { color: var(--text-primary); transition: color 0.2s; }
.article-card h3 a:hover { color: var(--primary); }

.article-card p {
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.article-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card .read-more:hover { color: var(--accent); }

/* =============================================
   ABOUT / AUTHORITY
   ============================================= */
.founder-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.founder-photo {
  width: 300px;
  height: 360px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credential-list {
  list-style: none;
  margin-top: 1.5rem;
}

.credential-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.credential-list li:last-child { border-bottom: none; }

.credential-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); }
.section-dark .faq-item,
.section-darker .faq-item { border-bottom-color: rgba(255,255,255,0.1); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
}

.section-dark .faq-question,
.section-darker .faq-question { color: var(--white); }

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer p { padding-bottom: 1.5rem; line-height: 1.7; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-dark .form-group label { color: var(--white); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.section-dark .form-group input,
.section-dark .form-group textarea,
.section-dark .form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

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

/* =============================================
   AUTHOR BIO (for articles)
   ============================================= */
.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.author-bio-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-bio h4 { margin-bottom: 0.25rem; }
.author-bio p { font-size: 0.9rem; }
.author-bio a { color: var(--primary); font-weight: 600; }
.author-bio a:hover { color: var(--accent); }

/* =============================================
   ARTICLE / KNOWLEDGE PAGE STYLES
   ============================================= */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-of-type { border-top: none; padding-top: 0; }

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p { font-style: italic; color: var(--text-primary); }

.article-content code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-content pre {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-darker);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-on-dark-muted); max-width: 300px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-on-dark-muted); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a { color: var(--text-on-dark-muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 20px; height: 20px; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary-color { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .content-grid,
  .founder-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .grid-2-1 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section-light,
  .section-white,
  .section-dark,
  .section-darker { padding: 3.5rem 0; }

  nav ul { display: none; }
  .menu-toggle { display: block; }

  nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-darker);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .flow-stages {
    flex-direction: column;
    gap: 2rem;
  }

  .flow-stages::before { display: none; }

  .footer-links { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .hero-ctas { flex-direction: column; }

  .founder-photo {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .author-bio { flex-direction: column; text-align: center; }
  .author-bio-photo { margin: 0 auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* =============================================
   CLASS ALIASES — Homepage HTML uses these names
   Maps to the base styles defined above.
   ============================================= */

/* Nav aliases — HTML uses .navbar-* classes, base CSS uses element selectors (nav, nav ul, etc.)
   The element selectors handle most styling, these add specifics for new class names */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.logo-shield { flex-shrink: 0; }

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.navbar-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color 0.2s;
}

.navbar-link:hover { color: var(--white); }
.navbar-link.active { color: var(--white); font-weight: 600; }

.navbar-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.navbar-cta:hover {
  background: var(--accent-hover) !important;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile menu toggle — the hamburger button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-darker);
  z-index: 999;
  padding: 2rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px;
  text-align: center;
  border-bottom: none !important;
  margin-top: 0.5rem;
}

.mobile-menu-cta:hover { background: var(--accent-hover); }

/* Hero container — used in index.html */
.hero-container {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-headline {
  margin-bottom: 24px;
  color: var(--white);
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--text-on-dark);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Section headline and subtext — reusable */
.section-headline {
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  color: var(--text-secondary);
}

/* Stats container alias — homepage uses flex instead of grid */
.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Problem cards */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.problem-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.problem-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.problem-card h3 { color: var(--text-primary); margin-bottom: 0.75rem; }
.problem-card p { color: var(--text-secondary); line-height: 1.7; }

/* Phase cards container */
.phase-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.phase-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.phase-items {
  list-style: none;
  margin-bottom: 1.5rem;
}

.phase-items li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.phase-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Phase card default styling when no .phase-1/.phase-2 */
.phase-card {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
}

.phase-card:first-child { border-color: var(--primary); }
.phase-card:last-child { border-color: var(--accent); }

/* btn-outline for phase cards */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Flow framework (simpler layout used in homepage) */
.flow-framework {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.flow-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* Results section aliases */
.results-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-card {
  padding: 2.5rem;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.result-metric {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.result-description {
  color: var(--text-on-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.social-proof {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.social-proof p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

/* Knowledge hub cards */
.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.knowledge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s;
}

.knowledge-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.knowledge-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.knowledge-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.4; }
.knowledge-card h3 a { color: var(--text-primary); transition: color 0.2s; }
.knowledge-card h3 a:hover { color: var(--primary); }
.knowledge-card p { font-size: 0.925rem; color: var(--text-secondary); }

/* Authority section */
.authority-section h2 { margin-bottom: 1.5rem; }

.authority-content {
  max-width: 800px;
}

.authority-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.authority-links {
  display: flex;
  gap: 2rem;
}

.link-text {
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.link-text:hover { color: var(--accent); }

/* CTA buttons container */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer container alias */
.footer-container {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer .logo-shield-footer { flex-shrink: 0; }

/* =============================================
   RESPONSIVE ADDITIONS for new classes
   ============================================= */
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .mobile-menu-toggle { display: flex; }

  .problem-cards,
  .phase-cards,
  .knowledge-cards,
  .results-cards { grid-template-columns: 1fr; }

  .flow-framework {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .authority-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-container > .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   LEGACY SUPPORT — existing pages that use old classes
   (dossier.html, dashboard.html, login.html, signup.html)
   These pages have their own inline styles but may
   reference some shared classes.
   ============================================= */
.light-section {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 5rem 0;
}

.dark-section {
  background: var(--bg-darker);
  color: var(--white);
  padding: 5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.light-section h2,
.light-section h3 { color: var(--text-primary); }
.light-section p { color: var(--text-secondary); }

.dark-section h2,
.dark-section h3 { color: var(--white); }
.dark-section p { color: var(--text-on-dark); }

/* Legacy card classes */
.card-light {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s;
}

.card-light:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.card-light h3 { color: var(--text-primary); margin-bottom: 0.75rem; }
.card-light p { color: var(--text-secondary); line-height: 1.8; }

/* Legacy form submit */
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

/* Legacy hero-cta single button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.hero-cta svg { width: 20px; height: 20px; }

/* Legacy CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

/* Legacy service icon styling */
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 24px; height: 24px; color: var(--accent); }

/* Legacy services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Legacy problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* Legacy solution content */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .solution-content { grid-template-columns: 1fr; gap: 3rem; }
}

.solution-text h2 { margin-bottom: 1rem; }
.solution-text p.large { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.8; }

.solution-list { list-style: none; }

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.solution-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-list .check svg { width: 14px; height: 14px; color: var(--accent); }

/* Legacy program grid */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.program-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.program-duration {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.program-topics { list-style: none; }

.program-topics li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dark-section .program-topics li {
  border-bottom-color: rgba(255,255,255,0.05);
  color: var(--text-on-dark);
}

.program-topics li:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* Legacy results grid */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.result-card { padding: 2.5rem; text-align: center; }
.result-value { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }
.result-label { color: var(--text-on-dark); font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* Legacy team/values for about page */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { text-align: center; }

.team-photo {
  width: 140px; height: 140px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.dark-section .team-photo { background: rgba(255,255,255,0.06); }

.team-card .role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.value-card { padding: 2rem; border-radius: 10px; border-left: 3px solid var(--accent); }

.light-section .value-card,
.section-light .value-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.dark-section .value-card,
.section-dark .value-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--accent); }

@media (max-width: 768px) {
  .team-grid, .values-grid { grid-template-columns: 1fr; }
}

/* Legacy timeline */
.timeline { max-width: 800px; margin: 0 auto; }

.timeline-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 24px;
  bottom: 0;
  width: 2px;
}

.light-section .timeline-item::after,
.section-light .timeline-item::after { background: var(--border); }
.dark-section .timeline-item::after,
.section-dark .timeline-item::after { background: rgba(255,255,255,0.1); }

.timeline-marker {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.timeline-year { font-weight: 600; color: var(--accent); }

/* Legacy .serif and .italic */
.serif { font-family: 'Instrument Serif', Georgia, serif; }
.italic { font-style: italic; }
