/* ============================================
   EarlyStageSaaS - faithful rebuild of Webflow site
   ============================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg:          #ffffff;
  --soft:        #f3f4f7;
  --soft-edge:   #e7e9ee;
  --ink:         #0e1014;
  --text:        #5d6470;
  --text-mute:   #8b929e;
  --green:       #1ab751;
  --green-hover: #15a346;
  --black:       #0e1014;
  --shadow-soft: 0 8px 32px -12px rgba(15, 17, 22, 0.08), 0 2px 6px -2px rgba(15, 17, 22, 0.04);
  --shadow-card: 0 12px 32px -16px rgba(15, 17, 22, 0.12), 0 4px 10px -4px rgba(15, 17, 22, 0.05);
  --radius-lg:   28px;
  --radius-md:   18px;
  --max:         1180px;
  --gutter:      clamp(20px, 4vw, 40px);
  --font:        'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-weight: 700; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(26, 183, 81, 0.4);
}
.btn-green:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(26, 183, 81, 0.5);
}
.btn-black {
  background: var(--black);
  color: #fff;
}
.btn-black:hover {
  background: #1c2026;
  transform: translateY(-1px);
}

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: var(--soft);
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none; /* hidden by default; opened by JS removing [hidden] + matched media query */
}
@media (max-width: 960px) {
  .nav-mobile:not([hidden]) {
    position: fixed;
    inset: 84px 0 0;
    background: #fff;
    padding: 32px var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    z-index: 40;
  }
}
.nav-mobile a:not(.btn) {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.nav-mobile-cta {
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 16px 32px;
}

/* ============ HERO ============ */

.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 10vw, 120px);
}
.hero-intro {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero-microcopy {
  font-size: 14px;
  color: var(--text-mute);
  margin: 16px 0 0;
  letter-spacing: 0.01em;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 16ch;
}
.hero-text p {
  font-size: clamp(17px, 1.7vw, 19px);
  color: var(--text);
  margin: 0 0 36px;
  max-width: 42ch;
  line-height: 1.55;
}
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img img {
  width: 100%;
  max-width: 640px;
  height: auto;
}

/* ============ SECTIONS ============ */

.section {
  padding: clamp(40px, 6vw, 60px) 0;
}
.section-h {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  margin-bottom: 32px;
  font-weight: 700;
}

/* ============ ABOUT ============ */

.section-about {
  padding-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(40px, 6vw, 60px);
}
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.about-photo {
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}
.about-text p {
  font-size: clamp(16px, 1.3vw, 17px);
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 14px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ============ HOW I WORK ============ */

.section-howiwork {
  background: var(--ink);
  color: var(--paper, #fff);
  padding: clamp(56px, 8vw, 96px) 0;
}
.howiwork-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-howiwork .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}
.section-howiwork h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
}
.howiwork-lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
.howiwork-lede:last-child {
  margin-bottom: 0;
  margin-top: 24px;
  font-weight: 500;
  color: #fff;
  font-size: clamp(18px, 1.6vw, 20px);
}

/* ============ CARDS ============ */

.card {
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
}
.card-soft {
  background: var(--soft);
  box-shadow: var(--shadow-soft);
}
.card-outlined {
  background: #fff;
  border: 1px solid var(--soft-edge);
}
.card-white {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
}

/* ============ PROBLEM ============ */

.problem-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.problem-text h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  margin-bottom: 28px;
  font-weight: 700;
}
.problem-text h2 .hl { display: inline; }
.problem-text p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.65;
}
.problem-text strong { color: var(--ink); font-weight: 600; }

.problem-visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0e1014;
  background-image: url("assets/building.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 44px);
  color: #fff;
}
.problem-visual::before {
  /* subtle left-side darken so text always reads, but lets the photo breathe */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}
.problem-visual ul { position: relative; z-index: 1; }
.problem-visual ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}
.problem-visual li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.problem-visual li strong {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
.problem-visual li span {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ DIAGNOSTIC ============ */

.diagnostic-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.diagnostic-left h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}
.diagnostic-left p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.6;
}
.diagnostic-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.diagnostic-right li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--ink-soft, var(--text));
  line-height: 1.55;
}
.diagnostic-right li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

/* ============ WHY THIS WORKS ============ */

.section-why .section-h {
  margin-bottom: 28px;
}
.why-banner {
  width: 100%;
  height: clamp(140px, 16vw, 220px);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  background-image: url("assets/building.jpg");
  background-size: cover;
  background-position: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.why-card {
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
}
.why-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}
.why-card p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
  flex: 1;
}

/* ============ STRATEGY ============ */

.strategy-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 16px;
}
.strategy-left h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}
.strategy-left p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.6;
  max-width: 50ch;
}
.strategy-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.strategy-right li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--ink-soft, var(--text));
  line-height: 1.55;
}
.strategy-right li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--soft-edge);
  padding-top: clamp(64px, 8vw, 96px);
  margin-top: clamp(48px, 8vw, 80px);
  background: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 72px);
  align-items: start;
}
.footer-logo img { height: 56px; width: auto; }
.footer-brand p {
  margin: 24px 0 32px;
  font-size: 16px;
  color: var(--text);
  max-width: 42ch;
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-top: 8px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--soft-edge);
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-mute);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--soft-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-social:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text h1 { max-width: none; }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .about-photo {
    margin: 0 auto;
  }

  .problem-card,
  .diagnostic-card,
  .strategy-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .problem-visual { min-height: 360px; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 48px;
  }
  .footer-brand p { max-width: none; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .hero-text h1 { font-size: 38px; }
  .card { padding: 32px 24px; }
  .btn-lg { width: 100%; padding: 16px 24px; }
}
