/* ============================================
   INSTACLIENT OS — CUSTOM STYLESHEET
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1A5F5A;
  --teal-dark: #134845;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --ink: #1C1C1A;
  --ink-muted: #6B6B63;
  --ink-faint: #A8A8A0;
  --border: #E8E8E2;
  --teal-tint: #EAF5F4;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 40px 64px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Hero Card Stack ---- */
.hero-right {
  position: relative;
  height: 340px;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

.hero-card-back {
  position: absolute;
  bottom: -12px;
  right: 12px;
  width: 85%;
  height: 85%;
  background: var(--teal-tint);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 95, 90, 0.15);
  z-index: 0;
}

.hero-card-front {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 95, 90, 0.15);
}

.hc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.hc-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 4px 10px;
  border-radius: 100px;
}

.hc-conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.hc-msg {
  max-width: 75%;
}

.hc-msg-ai {
  align-self: flex-start;
}

.hc-msg-human {
  align-self: flex-end;
}

.hc-time {
  font-size: 0.65rem;
  color: var(--ink-faint);
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

.hc-msg-ai p {
  background: #F3F3F0;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hc-msg-human p {
  background: var(--teal);
  color: white;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hc-result {
  margin-top: 4px;
}

.hc-result-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* ---- Proof ---- */
.proof {
  padding: 40px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.proof-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.proof-initial {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---- Section Shared ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-light);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---- How It Works ---- */
.how {
  padding: 96px 40px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.step-divider {
  height: 120px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  align-self: center;
  margin: 0 24px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--teal);
  opacity: 0.2;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.step-body {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.step-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}

.how-badge {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.badge-icon {
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---- Outcomes ---- */
.outcomes {
  padding: 96px 40px;
  background: var(--ink);
  color: white;
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.outcomes-left .section-eyebrow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.outcomes-left .section-title {
  color: white;
  font-size: 1.9rem;
}

.outcomes-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 36px;
}

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

.outcome-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.outcome-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}

.outcome-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ROI Calculator Card */
.roi-calc {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.roi-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.roi-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.roi-badge {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.roi-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.roi-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
}

.roi-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.roi-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.roi-row-highlight {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.roi-row-result {
  color: white;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.roi-result {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amber);
}

/* ---- Closing ---- */
.closing {
  padding: 96px 40px;
  background: var(--teal);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.closing-content {
  flex: 1;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.closing-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 500px;
}

.closing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-align: center;
}

.closing-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}

.closing-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 120px;
  line-height: 1.4;
}

/* ---- Footer ---- */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    height: 260px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-divider {
    display: none;
  }

  .outcomes-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .closing-inner {
    flex-direction: column;
    text-align: center;
  }

  .closing-body {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 24px 40px;
  }

  .proof,
  .how,
  .outcomes,
  .closing,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-stats-row {
    gap: 24px;
  }

  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-logos {
    gap: 20px;
  }

  .nav {
    padding: 0 24px;
  }

  .nav-tagline {
    display: none;
  }
}