/* ============================================
   HECTOR'S LAB — Clean Static Styles
   ============================================ */

/* ---- Variables (same as original) ---- */
:root {
  --navy:         #0f1b2d;
  --navy-mid:     #1a2d45;
  --navy-light:   #243d5c;
  --blue:         #22d3ee;
  --blue-dark:    #06b6d4;
  --blue-pale:    #ecfeff;
  --yellow:       #fde047;
  --yellow-dark:  #facc15;
  --yellow-pale:  #fefce8;
  --white:        #ffffff;
  --cream:        #f8f4ef;
  --cream-dark:   #f0ebe3;
  --green:        #4ade80;
  --red:          #f87171;
  --text-dark:    #0f1b2d;
  --text-mid:     #4a5568;
  --text-light:   #6b7a8d;
  --gray-100:     #f5f5f5;
  --gray-200:     #e8e8e8;
  --gray-400:     #999999;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 8px rgba(15,27,45,0.08);
  --shadow-md:    0 8px 24px rgba(15,27,45,0.12);
  --shadow-lg:    0 24px 60px rgba(15,27,45,0.18);
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:    1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
p  { font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(253,224,71,0.4); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-blue   { background: var(--blue-pale);  color: var(--blue-dark); }
.badge-yellow { background: var(--yellow-pale); color: #854d0e; }

/* ---- Navigation ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,27,45,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.65);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--yellow); transform: scaleX(0); transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile toggle */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition);
}

/* Mobile nav panel */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background-color: var(--navy); /* SOLID BACKGROUND — FIXED */
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 999; padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mobile-nav ul li a {
  display: block; padding: 14px 16px; font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.7); border-radius: 8px; transition: var(--transition);
}
.mobile-nav ul li a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* Responsive nav rules */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .mobile-nav { display: none; } /* hidden by default, shown by JS */
}

/* ---- Hero (abbreviated, full in HTML with inline or these classes) ---- */
.hero {
  min-height: 100vh; background: var(--navy); display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-bg-grid { /* same as original */ }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 580px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow-line { width: 40px; height: 2px; background: var(--yellow); border-radius: 2px; }
.hero-eyebrow span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--yellow); letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.6); margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-number span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.5); }
.hero-stat-number.yellow { color: var(--yellow); }
.hero-stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; margin-top: 4px; }

.hero-visual { display: flex; justify-content: center; align-items: flex-end; position: relative; }
.hero-hector-wrap { position: relative; width: 100%; max-width: 400px; height: 500px; }
.hero-hector-img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite; z-index: 2;
}
.hero-floating-card {
  position: absolute; background: rgba(255,255,255,0.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 12px 16px;
  z-index: 3;
}
.hero-floating-card-1 { top: 20px; right: -20px; }
.hero-floating-card-2 { bottom: 80px; left: -20px; }
.hfc-label { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }
.hfc-value { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--white); margin-top: 4px; }
.hfc-value.blue { color: var(--blue); }
.hfc-value.yellow { color: var(--yellow); }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-12px); }
}

/* ---- Mission ---- */
.mission { background: var(--cream); position: relative; overflow: hidden; }
.mission::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--green));
}
.mission-intro { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.mission-quote {
  background: var(--navy); border-radius: var(--radius-lg); padding: 48px 56px;
  position: relative; overflow: hidden; margin-bottom: 72px;
}
.mission-quote::before {
  content: '"'; position: absolute; top: -20px; left: 40px;
  font-family: var(--font-display); font-size: 12rem; color: rgba(34,211,238,0.08);
  line-height: 1; pointer-events: none;
}
.mission-quote-text {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--white);
  line-height: 1.5; font-weight: 600; position: relative; z-index: 1; margin-bottom: 24px;
}
.mission-quote-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mission-quote-name { font-weight: 600; color: var(--white); }
.mission-quote-title { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.mission-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.principle-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--yellow-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.principle-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.principle-card p  { font-size: 0.95rem; }

/* ---- Themes Grid ---- */
.themes-section { background: var(--navy); padding: 100px 0; }
.themes-header { text-align: center; margin-bottom: 64px; }
.themes-header h2 { color: var(--white); margin-bottom: 16px; }
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.theme-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.theme-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-6px); }
.theme-card-preview { aspect-ratio: 16/10; background: var(--navy-mid); display: flex; align-items: center; justify-content: center; }
.theme-card-preview span { font-family: var(--font-display); color: rgba(255,255,255,0.2); }
.theme-card-body { padding: 28px; }
.theme-card-title { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.theme-card-desc { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.theme-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.theme-card-price { font-size: 1.6rem; font-weight: 800; color: var(--yellow); }

/* ---- How It Works ---- */
.how-it-works { background: var(--cream); text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }
.step-card { text-align: center; }
.step-number {
  width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 28px;
}
.step-card h3 { margin-bottom: 12px; }

/* ---- Lab Notes Preview ---- */
.lab-notes { background: var(--cream); }
.lab-notes-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-image { aspect-ratio: 16/9; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.post-card-image span { font-size: 2.5rem; }
.post-card-body { padding: 28px; }
.post-card-date { font-size: 0.8rem; color: var(--text-light); font-family: var(--font-mono); }
.post-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 12px 0; }
.post-card-excerpt { font-size: 0.9rem; color: var(--text-light); }

/* ---- Talk to Hector (homepage) ---- */
.talk-to-hector { background: var(--cream-dark); }
.tth-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.tth-content h2 { margin-bottom: 20px; }
.tth-form {
  background: var(--white); border-radius: var(--radius-xl); padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); outline: none; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); padding: 80px 0 24px; }
.footer-main__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px; }
.footer-brand__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand__logo-icon {
  width: 32px; height: 32px; background: rgba(34,211,238,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand__logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-brand__logo-text span { color: var(--blue); }
.footer-brand__tagline { font-family: var(--font-mono); font-size: 0.7rem; color: var(--yellow); letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-brand__desc { font-size: 0.875rem; color: rgba(255,255,255,0.4); max-width: 300px; margin-bottom: 28px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4);
}
.footer-social a:hover { background: rgba(34,211,238,0.12); color: var(--blue); }
.footer-nav__heading { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.3); letter-spacing: 0.14em; margin-bottom: 20px; }
.footer-nav__list { display: flex; flex-direction: column; gap: 12px; }
.footer-nav__list a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-nav__list a:hover { color: var(--white); }
.footer-newsletter__heading { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.3); letter-spacing: 0.14em; margin-bottom: 12px; }
.footer-newsletter__desc { font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-newsletter__input-wrap { display: flex; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); overflow: hidden; }
.footer-newsletter__input { flex: 1; background: none; border: none; padding: 12px 16px; color: var(--white); outline: none; }
.footer-newsletter__btn { width: 44px; height: 44px; background: var(--blue); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-bottom__copy { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-legal-nav { display: flex; gap: 12px; }
.footer-legal-nav a { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-legal-nav a:hover { color: rgba(255,255,255,0.6); }

/* ---- Responsive (simplified) ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-hector-wrap { height: 320px; }
  .mission-principles, .steps-grid, .posts-grid { grid-template-columns: 1fr; }
  .tth-inner { grid-template-columns: 1fr; }
  .footer-main__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .themes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-main__grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
