/* ── THEME CONFIGURATION (NOTION-INSPIRED) ── */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-dim: #f0fdfa;
  --teal-border: #ccfbf1;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-width: 1100px;
  --radius-lg: 8px;
  --radius: 6px;
  --radius-sm: 4px;

  /* Consolidated Internal Page Tokens */
  --bg-2: var(--bg-alt);
  --bg-3: #f1f5f9;
  --text-2: var(--text-muted);
  --text-3: var(--text-dim);
  --rl: var(--radius-lg);
  --r: var(--radius);
  --border-h: var(--border-hover);
  --mono: var(--font-mono);
}

/* ── GLOBAL RESETS ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── LAYOUT CONTAINERS ── */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.section { padding: 6rem 0; }
.section-alt { background-color: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: 3rem; color: var(--text); }
h2 { font-size: 2rem; color: var(--text); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; color: var(--text); }
em { font-style: normal; color: var(--teal); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; font-weight: 400; margin-bottom: 1.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ── BUTTONS & ACTIONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-teal { background-color: var(--teal); color: #ffffff; }
.btn-teal:hover { background-color: var(--teal-hover); }
.btn-outline { background-color: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

/* ── NAVIGATION HEADER ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background-color: var(--teal);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: block; }

/* ── MOBILE MENU & HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.hamburger span { width: 22px; height: 2px; background-color: var(--text); transition: 0.2s; }
.mobile-menu {
  display: none;
  position: absolute;
  top: 72px; left: 0; width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.25rem;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu.active { display: flex; }

/* ── HERO & SUB-STRIP ELEMENTS ── */
.hero { padding: 8rem 0 5rem; text-align: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; }
.hero p.lead { margin: 0 auto 2.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dim); border: 1px solid var(--teal-border); color: var(--teal);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  padding: 0.35rem 0.75rem; border-radius: 20px; margin-bottom: 2rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.strip {
  display: flex; justify-content: space-between; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); background: var(--bg-alt);
  padding: 1.25rem 2rem; max-width: var(--max-width); margin: 0 auto; gap: 1.5rem; flex-wrap: wrap;
}
.strip-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.strip-item svg { width: 16px; height: 16px; stroke: var(--teal); stroke-width: 2.5; fill: none; }

/* ── GRIDS & ITEM CARDS ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.cat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: border-color 0.15s; }
.cat-card:hover { border-color: var(--border-hover); }
.cat-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 0.75rem; }
.cat-card h3 { margin-bottom: 0.5rem; font-size: 1.35rem; }
.cat-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── COMPONENT SECTIONS ── */
.page-hero { padding: 7rem 0 4rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.steps h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.steps p { color: var(--text-muted); font-size: 0.95rem; }

.cta-band { background: var(--text); color: #ffffff; text-align: center; padding: 5rem 2rem; }
.cta-band h2 { color: #ffffff; font-size: 2.25rem; margin-bottom: 0.75rem; }
.cta-band p { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* ── FOOTER AREA ── */
footer { border-top: 1px solid var(--border); padding: 3rem 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-mark { width: 24px; height: 24px; font-size: 12px; border-radius: var(--radius-sm); }
.footer-copy { font-size: 0.85rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--teal); }

/* ── RESPONSIVE ADAPTATIONS ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .strip { flex-direction: column; gap: 0.75rem; padding: 1.5rem; }
  .page-hero { padding: 5rem 0 3rem; }
  .page-hero h1 { font-size: 2rem; }
  .cta-band h2 { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* ── UNIQUE PAGE SECTIONS (PRESERVED FROM INLINE STYLES) ── */
.contact-body, .pricing-body, .story-section, .principles-section, .name-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-main p { font-size: 15.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 1.25rem; }
.contact-main strong { color: var(--text); font-weight: 500; }
.email-cta { margin-top: 2.5rem; padding: 2rem 2.25rem; background: var(--teal-dim); border: 1px solid var(--teal-border); border-radius: var(--rl); }
.email-cta h3 { font-size: 18px; margin-bottom: 0.5rem; }
.email-cta p { font-size: 14.5px; margin-bottom: 1.5rem; }
.email-address { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--teal); padding: 11px 20px; background: var(--bg); border: 1px solid var(--teal-border); border-radius: var(--r); transition: all 0.15s; }
.email-address:hover { background: var(--bg-3); border-color: var(--teal); }
.email-address svg { width: 18px; height: 18px; stroke: var(--teal); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.starters { margin-top: 2.5rem; }
.starters h3 { font-size: 16px; margin-bottom: 1rem; }
.starter-list { display: flex; flex-direction: column; gap: 0.6rem; }
.starter { padding: 0.85rem 1.2rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); font-size: 14px; color: var(--text-2); font-style: italic; line-height: 1.5; }
.contact-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.6rem 1.75rem; }
.sidebar-card h3 { font-size: 15px; margin-bottom: 0.5rem; }
.sidebar-card p { font-size: 14px; line-height: 1.65; }
.response-time { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--teal); margin-top: 1rem; }
.response-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.quick-links { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 6px; }
.quick-link { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); padding: 9px 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.15s; }
.quick-link:hover { color: var(--text); border-color: var(--border-h); }
.quick-link svg { width: 14px; height: 14px; stroke: var(--teal); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.pricing-inner { max-width: 680px; margin: 0 auto; }
.why-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--rl); padding: 2.5rem; margin-top: 3rem; }
.why-block h3 { font-size: 18px; margin-bottom: 1rem; }
.why-block p { font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.why-block p:last-child { margin-bottom: 0; }
.factors { margin-top: 3rem; }
.factors h3 { font-size: 18px; margin-bottom: 1.5rem; }
.factor-list { display: flex; flex-direction: column; gap: 0.75rem; }
.factor { display: flex; align-items: flex-start; gap: 12px; padding: 1rem 1.25rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); }
.factor-num { font-family: var(--mono); font-size: 12px; color: var(--teal); flex-shrink: 0; padding-top: 2px; min-width: 24px; }
.factor p { font-size: 14.5px; line-height: 1.6; }
.factor p strong { color: var(--text); font-weight: 500; }
.cta-block { margin-top: 3.5rem; padding: 2.5rem; background: var(--teal-dim); border: 1px solid var(--teal-border); border-radius: var(--rl); text-align: center; }
.cta-block h3 { font-size: 20px; margin-bottom: 0.75rem; }
.cta-block p { max-width: 420px; margin: 0 auto 1.75rem; font-size: 15px; }

.story-grid { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; margin-top: 3rem; }
.story-text p { font-size: 15.5px; color: var(--text-2); line-height: 1.85; font-weight: 300; margin-bottom: 1.4rem; }
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { color: var(--text); font-weight: 500; }
.founder-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--rl); padding: 2rem; position: sticky; top: 82px; }
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-dim); border: 1px solid var(--teal-border); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: var(--teal); margin-bottom: 1rem; }
.founder-name { font-size: 17px; font-weight: 500; margin-bottom: 3px; }
.founder-title { font-size: 13px; color: var(--teal); margin-bottom: 1.25rem; }
.founder-bio { font-size: 14px; color: var(--text-2); line-height: 1.75; font-weight: 300; margin-bottom: 1.25rem; }
.founder-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 1.25rem; }
.founder-contact a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); padding: 9px 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r); transition: all 0.15s; }
.founder-contact a:hover { color: var(--text); border-color: var(--border-h); }
.founder-contact svg { width: 14px; height: 14px; stroke: var(--teal); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; gap: 2.5rem; } .founder-card { position: static; } }
.principles-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 3rem; }
.principle { padding: 1.6rem 1.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rl); }
.principle-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.principle h3 { font-size: 15.5px; margin-bottom: 0.5rem; }
.principle p { font-size: 14px; line-height: 1.65; }
.name-block { max-width: 680px; margin: 0 auto; text-align: center; }
.name-block .eyebrow { margin-bottom: 0.5rem; }
.name-block h2 { margin-bottom: 1.25rem; }
.name-block p { font-size: 15.5px; line-height: 1.8; margin-bottom: 1.25rem; }
.name-highlight { display: inline-block; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.75rem 0; font-family: var(--mono); }
.name-highlight .dim { color: var(--text-3); }
.name-highlight .lit { color: var(--teal); }
/* ── AUTOMATIC DARK MODE SYSTEM ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;         /* Deep dark navy/black background */
    --bg-alt: #111827;     /* Slightly lighter dark for structural strips/sections */
    --bg-card: #1f2937;    /* Lighter grey-blue for cards and sidebars */
    --bg-2: var(--bg-alt);
    --bg-3: #1e293b;
    
    --border: #1e293b;     /* Muted dark borders */
    --border-hover: #334155;
    --border-h: var(--border-hover);
    
    --text: #f8fafc;       /* Crisp white for primary headings */
    --text-muted: #cbd5e1; /* Light grey for body text and paragraphs */
    --text-dim: #64748b;   /* Muted grey for footprints and eyebrows */
    --text-2: var(--text-muted);
    --text-3: var(--text-dim);
    
    --teal-dim: #042f2e;   /* Darker teal accent container background */
    --teal-border: #115e59;
  }
  
  /* FIX 1: Prevent the Call-To-Action band from blending into the dark body */
  .cta-band {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .cta-band h2 {
    color: var(--text);
  }
  .cta-band p {
    color: var(--text-muted);
  }

  /* FIX 2: Ensure the footer keeps proper contrast against its text tokens */
  footer {
    background: var(--bg-alt);
  }

  /* Minor adjustment for dark mode visibility */
  .quick-link {
    background: var(--bg-card);
  }
}