/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF8;
  --fg: #1C1917;
  --muted: #78716C;
  --border: #E7E5E4;
  --accent: #1B9C89;
  --accent-light: #F0FDFB;
  --accent-dark: #0E7569;
  --coral: #E85D3A;
  --coral-light: #FEF0EC;
  --white: #FFFFFF;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-cta {
  font-size: 0.875rem; font-weight: 500; color: var(--accent-dark);
  text-decoration: none; padding: 8px 18px; border-radius: 6px;
  background: var(--accent-light); transition: all 0.15s;
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

/* === HERO === */
.hero {
  padding: 72px 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-eyebrow {
  font-size: 0.8125rem; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 1.0625rem; color: var(--muted); line-height: 1.7; max-width: 420px;
}

/* prompt card */
.prompt-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}
.prompt-label { font-size: 0.6875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.prompt-text { font-size: 0.9375rem; color: var(--fg); line-height: 1.5; font-style: italic; }
.prompt-icon { position: absolute; bottom: 16px; right: 16px; }

/* doc card */
.doc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.doc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; font-weight: 600; color: var(--accent);
  background: var(--accent-light); padding: 4px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.doc-title { font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: 6px; }
.doc-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 20px; }
.doc-signers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.signer { display: flex; align-items: center; gap: 10px; }
.signer-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; flex-shrink: 0;
}
.signer.completed .signer-avatar { background: var(--accent-light); color: var(--accent-dark); }
.signer.active .signer-avatar { background: var(--coral-light); color: var(--coral); }
.signer.pending .signer-avatar { background: var(--border); color: var(--muted); }
.signer-name { font-size: 0.8125rem; font-weight: 500; }
.signer-status { font-size: 0.6875rem; color: var(--muted); }
.signer.active .signer-status { color: var(--coral); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.signer-count { font-size: 0.75rem; color: var(--muted); padding-left: 42px; }
.doc-storage {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* stat bar */
.hero-stat-bar {
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 0;
  gap: 0;
}
.stat { padding: 0 40px; flex: 1; }
.stat:first-child { padding-left: 0; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.stat-value { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 4px; }
.stat-label { font-size: 0.8125rem; color: var(--muted); }

/* === HOW IT WORKS === */
.howitworks {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.section-header { margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-sub { font-size: 1rem; color: var(--muted); }
.steps { display: flex; align-items: flex-start; gap: 24px; }
.step { flex: 1; }
.step-num { font-family: var(--font-display); font-size: 0.8125rem; color: var(--accent); margin-bottom: 12px; }
.step-title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 10px; }
.step-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; padding-top: 40px; flex-shrink: 0; }

/* === FEATURES === */
.features {
  padding: 80px 48px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features .section-header { max-width: 1200px; margin: 0 auto 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card { background: var(--white); padding: 36px 32px; }
.feature-primary { }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 12px; }
.feature-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* === PROOF === */
.proof {
  padding: 80px 48px;
  background: var(--fg);
}
.proof-inner { max-width: 760px; margin: 0 auto; }
.proof-quote { }
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
}
.quote-attribution { display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 600; color: var(--white);
}
.quote-name { font-size: 0.9375rem; font-weight: 500; color: var(--white); }
.quote-role { font-size: 0.8125rem; color: #A8A29E; }

/* === CLOSING === */
.closing {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
}
.closing-body {
  font-size: 1.125rem; color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.7;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9375rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px 0; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-stat-bar { flex-direction: column; gap: 24px; padding: 24px 0; }
  .stat { padding: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .stat-divider { display: none; }
  .howitworks { padding: 48px 24px; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .features { padding: 48px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .proof { padding: 48px 24px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 16px; }
}