:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6a6a6a;
  --text-soft: #999999;
  --border: #e7e7e0;
  --accent: #1a3a5c;
  --accent-hover: #122a44;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero { padding: 80px 0 56px; }
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}
.hero .h1-line2 {
  display: block;
  color: var(--accent);
  font-weight: 700;
}
.hero-broadening {
  font-size: 22px;
  color: var(--text);
  margin-top: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-subhead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 32px 0 40px;
  max-width: 640px;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.email-link {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.15s;
}
.email-link:hover { border-color: var(--accent); }

/* SECTIONS */
section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-weight: 600;
}
.section-title {
  font-size: 26px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
section p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* DEMO */
.demo-stack {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.demo-iframe-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.demo-iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
  background: var(--bg-card);
}
.demo-ctas {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.demo-fallback,
.demo-mailto {
  display: inline-block;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  font-weight: 500;
}
.demo-fallback:hover,
.demo-mailto:hover { border-color: var(--accent); }
.demo-mailto { color: var(--text); }

/* QUOTE */
.quote-block {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.quote-block blockquote {
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.55;
}
.quote-attr {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.quote-attr strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-style: normal;
  margin-bottom: 6px;
  font-size: 15px;
}
.quote-context {
  display: block;
  margin-top: 6px;
  font-style: italic;
}

/* RESULTS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.15s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.stat-num-suffix {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.stat-sublabel {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.45;
}
.results {
  list-style: disc;
  padding-left: 22px;
  margin-top: 4px;
}
.results li {
  padding: 0;
  border-bottom: none;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.results li:last-child { margin-bottom: 0; }
.results li::marker { color: var(--accent); }
.results li strong { color: var(--text); font-weight: 600; }

/* CAPABILITIES */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.cap-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.cap-card:nth-child(odd) { padding-right: 32px; }
.cap-card:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.cap-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.cap-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ABOUT */
.about-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: start;
}
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: block;
}
.about-text p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.about-text p:last-child { margin-bottom: 0; }

/* CONTACT */
.contact-intro {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 640px;
}
.best-fit {
  background: var(--bg-card);
  padding: 22px 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.55;
}
.best-fit strong { color: var(--text); }
.contact-cta-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  padding: 13px 22px;
}
.contact-email-btn svg {
  flex-shrink: 0;
}
.contact-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.15s, color 0.15s;
}
.contact-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* FOOTER */
footer {
  padding: 48px 0 72px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
}

/* STICKY CTA */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(26, 58, 92, 0.25);
  transition: opacity 0.2s, transform 0.15s, background 0.15s;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.sticky-cta.visible { opacity: 1; pointer-events: auto; }
.sticky-cta:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero { padding: 52px 0 36px; }
  .hero h1 { font-size: 34px; }
  .hero-broadening { font-size: 18px; }
  .hero-subhead { font-size: 16px; margin: 24px 0 32px; }
  section { padding: 28px 0; }
  .section-title { font-size: 22px; }
  .quote-block { padding: 22px 24px; }
  .quote-block blockquote { font-size: 17px; }
  .demo-iframe { height: 420px; }
  .sticky-cta { bottom: 18px; right: 18px; padding: 10px 16px; }
  .container { padding: 0 20px; }

  .stat-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .stat-card { padding: 22px 20px; }
  .stat-num { font-size: 36px; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { padding: 22px 0; }
  .cap-card:nth-child(odd) { padding-right: 0; }
  .cap-card:nth-child(even) { padding-left: 0; border-left: none; }

  .about-content { grid-template-columns: 1fr; gap: 20px; }
  .about-photo { width: 110px; height: 110px; }

  .contact-intro { font-size: 16px; }
  .contact-cta-row { gap: 16px; }
  .contact-email-btn { font-size: 15px; padding: 12px 18px; width: 100%; justify-content: center; }
  .demo-ctas { gap: 18px; flex-direction: column; align-items: flex-start; }
}
