/* ============================================================
   ROOSCLOSET LABS — style.css
   ============================================================ */

/* ============================================================
   1. TYPOGRAPHY (CUSTOM FONTS)
   ============================================================ */
@font-face { font-family: "Sweet Sans Pro"; src: url("/fonts/SweetSansPro-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sweet Sans Pro"; src: url("/fonts/SweetSansPro-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sweet Sans Pro"; src: url("/fonts/SweetSansPro-ThinItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

@font-face { font-family: "Editorial New"; src: url("/fonts/EditorialNew-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial New"; src: url("/fonts/EditorialNew-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial New"; src: url("/fonts/EditorialNew-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial New"; src: url("/fonts/EditorialNew-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ============================================================
   /* ============================================================
   2. DESIGN TOKENS (STRICT 4-COLOR PALETTE)
   ============================================================ */
:root {
  /* The Mural Palette */
  --pure-white: #FFFFFF;
  --warm-off-white: #E8E4E0;
  --light-mushroom: #CDC4BB;
  --pure-black: #000000;

  /* Foundation & Legacy Mapping */
  --parchment: var(--pure-white); 
  --parchment-alt: var(--warm-off-white); 
  
  --navy: var(--pure-black); 
  --navy-mid: var(--pure-black); 
  --ink: var(--pure-black);
  --ink-2: var(--pure-black);
  --ink-muted: var(--light-mushroom);
  
  /* Neutralized Accents */
  --gold: var(--light-mushroom);
  --gold-pale: var(--warm-off-white);
  --forest: var(--pure-black);
  --forest-mid: var(--pure-black);
  --forest-pale: var(--warm-off-white);
  
  /* UI Elements */
  --rule: var(--light-mushroom);
  --rule-mid: var(--light-mushroom);
  
  /* Typography */
  --font-sans: "Sweet Sans Pro", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-display: "Editorial New", "Playfair Display", serif;
  --font-mono: "IBM Plex Mono", "Space Mono", monospace;
  --font-logo: "Bytesized", sans-serif;
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); background: var(--parchment); color: var(--ink); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   4. SCROLL REVEAL UTILITIES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   5. PINTEREST-STYLE BLACK ISLAND NAVIGATION
   ============================================================ */
/* Overriding the inline HTML styles completely */
body nav.nav-wrapper {
  position: fixed !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  
  /* Sizing and Positioning */
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 220px !important; 
  height: 60px !important;
  
  /* Pure Black Aesthetic */
  background: #000000 !important; 
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  border-radius: 100px !important;
  padding: 0 1.2rem !important;
}

/* Hide the old HTML elements completely */
body .nav-brand, body .nav-links, body .nav-contact, body .nav-to-top {
  display: none !important;
}

/* New Pinterest Icons Injected via JS */
.pin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pin-nav-btn:hover { background: rgba(255, 255, 255, 0.15); color: var(--gold); }
.pin-nav-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

.pin-nav-center {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.pin-nav-center:hover { color: var(--gold); transform: scale(1.05); }

/* ============================================================
   6. GLOBAL LAYOUT & TYPOGRAPHY
   ============================================================ */
.container { max-width: 1220px; margin: 0 auto; padding: 0 3rem; }
section { padding: 8rem 0; }
.eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.8rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--forest); }
.eyebrow-dark { color: var(--gold); }
.eyebrow-dark::before { background: var(--gold); }
h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; color: var(--navy); margin-bottom: 1.5rem; }
h2 em { font-style: italic; color: var(--forest); }
.lead { font-size: 1.1rem; font-weight: 300; color: var(--ink-2); line-height: 1.8; max-width: 620px; }
.rule { width: 100%; height: 1px; background: var(--rule); }

/* ============================================================
   7. SECTIONS
   ============================================================ */
.hero { padding: 14rem 0 10rem; background: var(--navy); position: relative; overflow: hidden; color: var(--parchment); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(201, 169, 110, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 169, 110, 0.06) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold); opacity: 0.6; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3.4rem, 7.5vw, 6.8rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; color: var(--parchment); max-width: 900px; margin-bottom: 2.4rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1.15rem; font-weight: 300; color: rgba(255, 255, 255, 0.7); max-width: 580px; line-height: 1.75; margin-bottom: 3.5rem; }
.hero-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.btn-primary-dark { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2.2rem; background: var(--gold); color: #000000; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; transition: background 0.25s, transform 0.25s; }
.btn-primary-dark:hover { background: #d4b27c; transform: translateY(-2px); }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2.2rem; border: 1px solid rgba(201, 169, 110, 0.3); color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; transition: border-color 0.25s, color 0.25s; }
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 3.5rem; border-top: 1px solid rgba(201, 169, 110, 0.2); }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-top: 0.35rem; }

.problem { background: var(--parchment-alt); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 5rem; border: 1px solid var(--rule); }
.problem-item { padding: 2.8rem 2.4rem; border-right: 1px solid var(--rule); }
.problem-item:last-child { border-right: none; }
.problem-pct { font-family: var(--font-display); font-size: 4rem; font-weight: 500; color: var(--navy); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.problem-pct span { font-size: 1.8rem; color: var(--gold); }
.problem-item h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--navy); margin-bottom: 0.8rem; text-transform: uppercase; }
.problem-item p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.7; }

.atlas-section { background: var(--navy); color: var(--parchment); }
.atlas-section h2 { color: var(--parchment); }
.atlas-section h2 em { color: var(--gold); font-style: italic; }
.atlas-section .lead { color: rgba(255, 255, 255, 0.7); }
.product-header { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; margin-bottom: 5rem; }
.product-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.6rem; }
.atlas-section .product-name { color: var(--gold); }
.mirror-section .product-name { color: var(--forest); }
.product-tagline { font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.atlas-section .product-tagline { color: rgba(255, 255, 255, 0.7); }
.metric-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.metric-item { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(201, 169, 110, 0.15); }
.metric-item:last-child { border-bottom: none; }
.metric-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; color: var(--gold); line-height: 1; min-width: 90px; }
.metric-desc { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

.pipeline-wrap { margin-top: 4rem; padding: 3rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(201, 169, 110, 0.12); }
.pipeline-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(201, 169, 110, 0.5); margin-bottom: 2.5rem; }
.pipeline { display: flex; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 0.5rem; }
.pipeline::-webkit-scrollbar { height: 2px; }
.pipeline::-webkit-scrollbar-thumb { background: rgba(201, 169, 110, 0.3); }
.p-stage { display: flex; flex-direction: column; min-width: 140px; flex: 1; }
.p-stage-inner { background: rgba(201, 169, 110, 0.07); border: 1px solid rgba(201, 169, 110, 0.18); padding: 1.2rem 1rem; position: relative; }
.p-stage-num { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--gold); opacity: 0.6; margin-bottom: 0.4rem; }
.p-stage-name { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--parchment); margin-bottom: 0.3rem; }
.p-stage-service { font-size: 0.68rem; color: var(--gold); opacity: 0.7; }
.p-arrow { color: rgba(201, 169, 110, 0.35); font-size: 1.1rem; padding: 0 0.3rem; flex-shrink: 0; margin-top: -1rem; }

.mirror-section { background: var(--parchment-alt); }
.mirror-product-header { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; margin-bottom: 5rem; }
.mirror-metric .metric-val { color: var(--forest); }
.mirror-metric .metric-item { border-color: rgba(26, 107, 74, 0.15); }
.mirror-metric .metric-desc { color: var(--ink-2); }
.mirror-pipeline { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-top: 3rem; background: var(--rule); }
.mirror-stage { padding: 2.5rem 2rem; background: var(--parchment); position: relative; }
.mirror-stage-num { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 0.8rem; text-transform: uppercase; }
.mirror-stage-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: 0.8rem; }
.mirror-stage-name em { color: var(--forest); font-style: italic; }
.mirror-stage p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.7; }
.mirror-stage-badge { display: inline-block; margin-top: 1.2rem; padding: 0.3rem 0.8rem; background: var(--forest-pale); color: var(--forest); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }

.causal-proof { margin-top: 4rem; padding: 2.8rem; background: var(--navy); color: var(--parchment); }
.causal-proof-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.2rem; }
.causal-proof-quote { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--parchment); line-height: 1.5; max-width: 700px; margin-bottom: 1rem; }
.causal-proof-sub { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.05em; }

.borobhai-section { background: var(--navy); color: var(--parchment); }
.borobhai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.borobhai-section h2 { color: var(--parchment); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.borobhai-section h2 em { color: var(--gold-pale); }
.borobhai-section .lead { color: rgba(255, 255, 255, 0.7); }
.borobhai-section .eyebrow { color: var(--gold-pale); }
.borobhai-section .eyebrow::before { background: var(--gold-pale); }
.borobhai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.05); margin-top: 2rem; border: 1px solid rgba(255, 255, 255, 0.05); }
.borobhai-feat { padding: 1.8rem 1.6rem; background: var(--navy-mid); }
.borobhai-feat-icon { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold-pale); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; opacity: 0.8; }
.borobhai-feat h4 { font-size: 0.95rem; font-weight: 600; color: var(--parchment); margin-bottom: 0.4rem; }
.borobhai-feat p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.borobhai-stat-row { display: flex; gap: 3rem; margin-top: 2.5rem; }
.borobhai-stat .stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--gold-pale); line-height: 1; }
.borobhai-stat .stat-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); margin-top: 0.3rem; text-transform: uppercase; }

.infra-section { background: var(--parchment); }
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; margin-top: 5rem; }
.service-list { display: flex; flex-direction: column; gap: 0; }
.service-category { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.service-cat-name { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.8rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.3rem 0.7rem; background: var(--parchment-alt); border: 1px solid var(--rule-mid); color: var(--navy); letter-spacing: 0.02em; }
.cost-table { margin-top: 3rem; }
.cost-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.cost-row:first-child { border-top: 1px solid var(--rule); }
.cost-label { font-size: 0.9rem; color: var(--ink-2); }
.cost-val { font-family: var(--font-mono); font-size: 0.85rem; color: var(--navy); font-weight: 500; }
.cost-val.projected { color: var(--forest); }

.founder-section { background: var(--navy); color: var(--parchment); }
.founder-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 7rem; align-items: start; }
.founder-section .eyebrow { color: var(--gold); }
.founder-section .eyebrow::before { background: var(--gold); }
.founder-section h2 { color: var(--parchment); }
.founder-section h2 em { color: var(--gold); }
.founder-name-display { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--parchment); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.founder-title-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 2rem; }
.founder-bio { font-size: 1rem; color: rgba(255, 255, 255, 0.7); line-height: 1.8; margin-bottom: 2.5rem; }
.founder-track { display: flex; flex-direction: column; gap: 0; }
.track-item { display: flex; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); align-items: baseline; }
.track-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.track-tag { font-family: var(--font-mono); font-size: 0.62rem; color: var(--gold); opacity: 0.6; min-width: 100px; letter-spacing: 0.05em; text-transform: uppercase; padding-top: 0.1rem; }
.track-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.05); margin-top: 2.5rem; }
.contact-item { padding: 1.5rem; background: var(--navy-mid); }
.contact-item-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 0.4rem; }
.contact-item-val { font-size: 0.9rem; color: var(--parchment); font-weight: 500; }
.contact-item-val a { color: var(--gold); }
.contact-item-val a:hover { text-decoration: underline; }

/* Legacy Components */
.repo-section { background: var(--parchment-alt); }
.repo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.repo-card { padding: 2.4rem; border: 1px solid var(--rule-mid); background: var(--parchment); display: flex; flex-direction: column; }
.repo-card-product { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.8rem; }
.repo-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--navy); margin-bottom: 1rem; letter-spacing: -0.01em; }
.repo-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; flex: 1; margin-bottom: 1.8rem; }
.repo-files { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); letter-spacing: 0.04em; margin-bottom: 1.5rem; }
.btn-repo { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.4rem; border: 1px solid var(--navy); color: var(--navy); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; border-radius: 2px; transition: background 0.2s, color 0.2s; align-self: flex-start; }
.btn-repo:hover { background: var(--navy); color: var(--parchment); }
.btn-repo svg { width: 14px; height: 14px; fill: currentColor; }

.roadmap-section { background: var(--parchment); }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 4rem; border-top: 2px solid var(--navy); }
.roadmap-phase { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--rule); padding-right: 2rem; }
.roadmap-phase:first-child { padding-left: 0; }
.roadmap-phase:last-child { border-right: none; }
.phase-marker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.5rem; }
.phase-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--navy); margin-bottom: 1rem; letter-spacing: -0.01em; }
.phase-items { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.phase-items li { font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; padding-left: 1rem; position: relative; }
.phase-items li::before { content: '—'; position: absolute; left: 0; color: var(--forest); font-size: 0.75rem; }
.phase-current .phase-marker { color: var(--forest); }
.phase-current .phase-title { color: var(--forest); }

/* ============================================================
   8. FOOTER & LEGALS
   ============================================================ */
.footer { 
  background: var(--navy); 
  padding: 4rem 0 8rem; 
  color: rgba(255, 255, 255, 0.7); /* Explicit fix for invisible text */
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--parchment); }
.footer-logo .gold { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; }
.footer-link { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }
.footer-legal { padding-top: 2rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); line-height: 1.7; max-width: 800px; }
.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }

.footer-heading { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; color: var(--parchment); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }

.legal-content { max-width: 800px; margin: 8rem auto 4rem; padding: 3rem 2rem; background: var(--parchment); border: 1px solid var(--rule); border-radius: 2px; }
.legal-content h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--navy); font-weight: 500;}
.legal-content h2 { font-family: var(--font-display); font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--navy); font-weight: 500;}
.legal-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--navy); }
.legal-content h4 { font-family: var(--font-display); font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--navy); }
.legal-content p { margin-bottom: 1rem; color: var(--ink-2); }
.legal-content ul { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--ink-2); }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--forest); text-decoration: underline; }
.legal-content a:hover { color: var(--gold); }

/* ============================================================
   X. STRICT ALTERNATING CONTRAST BLOCKS 
   ============================================================ */

/* 1. DARK BLOCKS: Hero, Atlas, BoroBhai, Founder, Footer */
.hero, .atlas-section, .borobhai-section, .founder-section, .footer {
  background: var(--pure-black) !important;
  color: var(--pure-white) !important;
}

/* Force text inversion on dark blocks */
.hero h1, .hero-sub, .atlas-section h2, .atlas-section .lead, .borobhai-section h2, .borobhai-section .lead, .founder-section h2, .founder-name-display, .founder-bio, .track-text, .footer-logo, .footer-link {
  color: var(--pure-white) !important;
}

/* 2. LIGHT BLOCKS: Problem, Mirror, Infra */
.problem, .infra-section {
  background: var(--warm-off-white) !important;
  color: var(--pure-black) !important;
}
.mirror-section {
  background: var(--pure-white) !important; /* Alternating the light shade */
  color: var(--pure-black) !important;
}

/* Force text inversion on light blocks */
.problem h2, .problem .lead, .problem-item h3, .problem-item p, .mirror-section h2, .mirror-section .lead, .mirror-stage-name, .mirror-stage p, .infra-section h2, .infra-section .lead, .service-cat-name {
  color: var(--pure-black) !important;
}

/* 3. TYPOGRAPHIC ACCENTS & BORDERS (Light Mushroom) */
.eyebrow, .stat-num, .problem-pct span, .metric-val, .p-stage-num, .borobhai-feat-icon, .founder-title-line, .track-tag {
  color: var(--light-mushroom) !important;
}
.eyebrow::before {
  background: var(--light-mushroom) !important;
}

/* 4. FLATTEN CARDS & GRIDS */
.problem-grid, .problem-item, .metric-item, .service-category, .track-item, .footer-inner {
  border-color: var(--light-mushroom) !important;
}
.p-stage-inner, .mirror-stage, .borobhai-feat, .contact-item {
  background: transparent !important;
  border: 1px solid var(--light-mushroom) !important;
}



/* ============================================================
   9. RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 900px) {
  body nav.nav-wrapper {
    bottom: 2rem !important; 
    width: 240px !important;
  }
  
  .container { padding: 0 1.5rem; }
  section { padding: 5rem 0; }
  .hero { padding: 10rem 0 6rem; }
  .product-header, .mirror-product-header, .borobhai-inner, .infra-grid, .founder-inner { grid-template-columns: 1fr; gap: 3rem; }
  .mirror-pipeline { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .problem-item:last-child { border-bottom: none; }
  .repo-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .p-stage { min-width: unset; }
  .p-arrow { transform: rotate(90deg); align-self: center; }
  .hero-stats { gap: 2rem; }
  .borobhai-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1.5rem; }
}

/* ============================================================
   10. ACCESSIBILITY & UTILITIES
   ============================================================ */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
