/* ═══════════════════════════════════════════
   KARPIAS — DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --cream:      #f2ede6;
  --cream-dark: #e8e1d8;
  --ink:        #1a1a18;
  --ink-mid:    #3a3a36;
  --ink-light:  #7a7a72;
  --ink-faint:  #b0aca4;
  --black:      #0d0d0b;
  --white:      #faf8f5;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;

  --light:  300;
  --medium: 500;
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: var(--light);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  transition: background 0.4s ease, border-bottom 0.4s ease;
}
nav.scrolled {
  background: rgba(242,237,230,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav-logo {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 64px 100px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: none;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}
.hero-headline em { font-style: italic; color: var(--ink-mid); }
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: var(--light);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: none;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 56px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}
.hero-eyebrow, .hero-headline, .hero-sub, .hero-actions {
  position: relative;
  z-index: 1;
}
.hero-logo-bg {
  z-index: 0;
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 600px);
  pointer-events: none;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  padding: 18px 40px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
.btn-secondary {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
  padding: 18px 40px;
  text-decoration: none;
  transition: border-color 0.2s;
  cursor: pointer;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--ink); }

/* ═══════════════════════════════════════════
   SECTIONS — GENERAL
   ═══════════════════════════════════════════ */
section { padding: 140px 64px; }
.section-label {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 56px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-faint);
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 48px;
}
.section-headline em { font-style: italic; color: var(--ink-mid); }
.section-body {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: var(--light);
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 620px;
}
.section-body p + p { margin-top: 24px; }

/* ═══════════════════════════════════════════
   PROBLEM — TWO COLUMNS
   ═══════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: center;
}
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 40px;
  margin: 0;
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   CATEGORY — TWO COLUMNS
   ═══════════════════════════════════════════ */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: center;
}
.category-tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 40px;
  line-height: 1.3;
}
.category-visual {
  border-left: 2px solid var(--ink);
  padding-left: 40px;
}

.dashboard-img {
  width: 40%;
  height: auto;
  display: block;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 24px 60px rgba(26,26,24,0.1), 0 4px 12px rgba(26,26,24,0.04);
}
/* ═══════════════════════════════════════════
   REFERENCES
   ═══════════════════════════════════════════ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
  margin-top: 48px;
}
.proof-cell {
  background: var(--cream);
  padding: 44px 36px;
  transition: background 0.2s;
}
.proof-cell:hover { background: var(--white); }
.proof-industry {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.proof-company {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
}
.research-list {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-align: center;
  margin-top: 48px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   QUOTE BAND
   ═══════════════════════════════════════════ */
.quote-band {
  background: var(--black);
  padding: 120px 64px;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--white);
  max-width: 960px;
  margin: 0 auto 40px;
}
.quote-band cite {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-style: normal;
}

/* ═══════════════════════════════════════════
   NEXT STEPS
   ═══════════════════════════════════════════ */
.nextsteps-section {
  background: var(--cream);
  padding: 140px 64px;
  border-top: 1px solid var(--cream-dark);
}
.nextsteps-label {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 32px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-faint);
}
.nextsteps-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 860px;
}
.nextsteps-intro {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: var(--light);
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 620px;
  margin-bottom: 72px;
}
.nextsteps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
}
.nextsteps-card {
  background: var(--white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
}
.nextsteps-card-featured { background: var(--ink); }
.nextsteps-card-tag {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 32px;
}
.nextsteps-card-featured .nextsteps-card-tag { color: rgba(255,255,255,0.4); }
.nextsteps-card-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.2;
}
.nextsteps-card-featured .nextsteps-card-title { color: var(--white); }
.nextsteps-card-body {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: var(--light);
  line-height: 1.7;
  color: var(--ink-mid);
  flex: 1;
  margin-bottom: 40px;
}
.nextsteps-card-featured .nextsteps-card-body { color: rgba(255,255,255,0.7); }
.nextsteps-btn {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 36px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
  align-self: flex-start;
  cursor: pointer;
}
.nextsteps-btn:hover { opacity: 0.8; }
.nextsteps-btn-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.nextsteps-btn-light { background: var(--white); color: var(--ink); border: 1px solid var(--white); }

/* ═══════════════════════════════════════════
   CLOSE
   ═══════════════════════════════════════════ */
.close-section {
  background: var(--cream);
  padding: 140px 64px;
  text-align: center;
}
.close-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 820px;
  margin: 0 auto 56px;
}
.close-statement {
  font-family: var(--sans);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: var(--medium);
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 64px;
}
.close-cta { display: flex; justify-content: center; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: rgba(255,255,255,0.4);
}
.footer-center {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-right {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: rgba(255,255,255,0.4);
  text-align: right;
}
.footer-right a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: rgba(255,255,255,0.9); }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,13,11,0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--cream);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 64px 56px 56px;
  position: relative;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--ink-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.modal-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 14px;
}
.modal-sub {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 36px;
}
.modal-form { display: flex; flex-direction: column; gap: 22px; }
.modal-field { display: flex; flex-direction: column; gap: 8px; }
.modal-label {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--medium);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.modal-input {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--cream-dark);
  padding: 14px 16px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.modal-input:focus { border-color: var(--ink); }
.modal-input::placeholder { color: var(--ink-faint); }
.modal-textarea { resize: vertical; min-height: 120px; }
.modal-submit {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  padding: 18px 36px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
  width: 100%;
}
.modal-submit:hover { background: var(--ink-mid); }
.modal-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.modal-privacy {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: var(--ink-faint);
  line-height: 1.5;
}
.modal-success { display: none; text-align: center; padding: 48px 0 24px; }
.modal-success-icon { font-size: 52px; color: #27ae60; margin-bottom: 20px; }
.modal-success-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.modal-success-body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: var(--light);
  color: var(--ink-light);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
.nav-burger { display: none; }

@media (max-width: 1100px) {
  .nextsteps-grid { grid-template-columns: 1fr 1fr; }
  .nextsteps-card-featured { grid-column: 1 / -1; }
  .problem-grid, .category-grid { gap: 64px; }
  section, .hero, .nextsteps-section, .close-section { padding-left: 48px; padding-right: 48px; }
  footer { padding: 48px; }
  .quote-band { padding: 96px 48px; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(242,237,230,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 24px 24px 32px;
    gap: 0;
    border-bottom: 1px solid var(--cream-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--cream-dark); }
  .nav-links a { display: block; padding: 18px 0; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  section, .nextsteps-section, .close-section { padding: 96px 24px; }
  .hero { padding: 120px 24px 80px; }
  .problem-grid, .category-grid { grid-template-columns: 1fr; gap: 56px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .nextsteps-grid { grid-template-columns: 1fr; }
  .nextsteps-card-featured { grid-column: auto; }
  .nextsteps-card { padding: 44px 32px; }
  .pull-quote { padding-left: 28px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 48px 24px; }
  .quote-band { padding: 72px 24px; }
  .modal-box { padding: 48px 28px 44px; }
  .modal-title { font-size: 36px; }
}