/* ============================================================
   Goodwill AI Automation — Enterprise WhatsApp AI
   Design concept: "the dispatch ledger" — the visual language of
   a well-run operations desk (manifests, dockets, stamped status)
   applied to a premium enterprise-software register.
   ============================================================ */

:root {
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f8f9fa;
  --ink: #111827;
  --ink-muted: #6b7280;
  --ink-faint: #8b95a1;
  --accent: #f2a20c;
  --accent-deep: #d4880a;
  --accent-tint: #fdf1da;
  --blue: #1a6fff;
  --red: #dc2626;
  --navy: #0d1929;
  --navy-raised: #162035;
  --line: #e5e7eb;
  --line-strong: #c7ccd3;
  --success: #1f7a52;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --measure: 40rem;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(13, 25, 41, 0.06), 0 8px 24px -12px rgba(13, 25, 41, 0.15);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 1px;
  margin-right: 0.5rem;
  margin-bottom: 0.2em;
  background: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #f9f8f4;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(249, 248, 244, 0.75);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #f9f8f4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(249, 248, 244, 0.3);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  width: 1.1rem;
  height: 1.5px;
  background: #f9f8f4;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-on-dark {
  background: transparent;
  color: #f9f8f4;
  border-color: rgba(249, 248, 244, 0.35);
}

.btn-on-dark:hover {
  border-color: #f9f8f4;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 7.5rem 0 4rem;
  text-align: center;
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 0%, rgba(242, 162, 12, 0.12) 0%, transparent 55%);
}

.hero .wrap {
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 44rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  margin: 1.1rem 0 1.3rem;
  color: #f9f8f4;
}

.hero-copy h1 .highlight {
  color: var(--accent);
}

.hero-copy .lede {
  font-size: 1.1rem;
  color: rgba(249, 248, 244, 0.72);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(249, 248, 244, 0.5);
  letter-spacing: 0.02em;
}

.eyebrow-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(242, 162, 12, 0.12);
  border: 1px solid rgba(242, 162, 12, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(249, 248, 244, 0.12);
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-stats .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(249, 248, 244, 0.55);
  margin-top: 0.3rem;
}

/* ---------- Statement band (why WhatsApp) ---------- */

.statement-band {
  padding: 4rem 0;
}

.statement {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.statement h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-top: 0.85rem;
}

.statement .lede {
  color: var(--ink-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ---------- Service grid (beyond WhatsApp) ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  background: var(--surface-raised);
}

.service-featured {
  border-color: var(--accent);
}

.service-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Section shell ---------- */

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.85rem;
}

.section-head .lede {
  color: var(--ink-muted);
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.section-alt {
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-light {
  background: var(--surface-sunken);
}

.section-navy {
  background: var(--navy);
}

.section-navy .section-head h2 {
  color: #f9f8f4;
}

.section-navy .section-head .lede {
  color: rgba(249, 248, 244, 0.65);
}

/* ---------- Problem list ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.problem-card {
  background: var(--surface-raised);
  padding: 1.9rem 1.7rem;
}

.problem-card .index {
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9rem;
  text-align: center;
}

.problem-card:nth-child(1) .index {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.problem-card:nth-child(2) .index {
  background: rgba(26, 111, 255, 0.12);
  color: var(--blue);
}

.problem-card:nth-child(3) .index {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.problem-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.7rem 0 0.55rem;
}

.problem-card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------- Process (alternating) ---------- */

.process-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.8rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.process-row:first-of-type {
  border-top: none;
}

.process-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.process-row h3 {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-row p {
  color: var(--ink-muted);
  max-width: 34rem;
}

/* ---------- Capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.cap-card {
  border: 1px solid rgba(249, 248, 244, 0.1);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  background: var(--navy-raised);
}

.cap-card .glyph {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.cap-card h3 {
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #f9f8f4;
}

.cap-card p {
  color: rgba(249, 248, 244, 0.65);
  font-size: 0.92rem;
}

/* ---------- Dashboard preview mockup ---------- */

.demo-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.2rem;
  align-items: center;
}

.dash-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface-raised);
}

.dash-mock-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}

.dash-mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dash-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.9fr;
}

.dash-col {
  border-right: 1px solid var(--line);
  padding: 0.75rem;
}

.dash-col:last-child {
  border-right: none;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.3rem;
  border-radius: 3px;
  margin-bottom: 0.3rem;
  font-size: 0.66rem;
}

.dash-row.active {
  background: var(--accent-tint);
}

.dash-row .chip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-row .txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.dash-bubble {
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.62rem;
  margin-bottom: 0.35rem;
  max-width: 82%;
}

.dash-bubble.in {
  background: var(--surface-sunken);
}

.dash-bubble.out {
  background: var(--navy);
  color: #f9f8f4;
  margin-left: auto;
}

.dash-btn {
  margin-top: 0.6rem;
  background: #1f7a52;
  color: #fff;
  font-size: 0.64rem;
  text-align: center;
  padding: 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

.dash-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

/* ---------- Audience tags ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--surface-raised);
}

/* ---------- Industry directory ---------- */

.industry-search {
  display: block;
  width: 100%;
  max-width: 26rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
}

.industry-search:focus {
  outline: none;
  border-color: var(--accent);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.industry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--surface-raised);
}

.industry-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.industry-examples {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.industry-card .tag {
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
}

.industry-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 2rem 0;
  max-width: 30rem;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  padding: 1.9rem 1.7rem;
  position: relative;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.plan-stamp {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.plan-tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.1rem;
  margin: 0.6rem 0 0.2rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-price sup {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.plan-retainer {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.plan-caption {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
  min-height: 2.6em;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
  border-top: 1px dashed var(--line-strong);
  padding-top: 1.2rem;
}

.plan-features li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.42rem 0;
}

.plan-features li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-footnote {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.pricing-footnote strong {
  color: var(--ink);
}

/* ---------- Enterprise banner ---------- */

.enterprise-banner {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.enterprise-main {
  padding: 2.2rem 2rem;
}

.enterprise-tier {
  color: var(--accent);
}

.enterprise-price {
  color: #f9f8f4;
}

.enterprise-price .plus {
  color: var(--accent);
}

.enterprise-caption {
  color: rgba(249, 248, 244, 0.72);
  font-size: 0.92rem;
  margin: 0.9rem 0 1.4rem;
  max-width: 26rem;
}

.enterprise-factors {
  padding: 2.2rem 2rem;
  background: var(--navy-raised);
  border-left: 1px solid rgba(249, 248, 244, 0.1);
}

.enterprise-factors h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #f9f8f4;
  margin-bottom: 0.6rem;
}

.enterprise-factors p {
  font-size: 0.86rem;
  color: rgba(249, 248, 244, 0.65);
  margin-bottom: 1.1rem;
}

.enterprise-factors .tag {
  background: transparent;
  border-color: rgba(249, 248, 244, 0.25);
  color: rgba(249, 248, 244, 0.85);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 1.2rem;
  color: var(--ink-muted);
  max-width: 38rem;
}

/* ---------- Final CTA ---------- */

.cta-band {
  background: var(--accent);
  color: var(--navy);
}

.cta-band .eyebrow {
  color: var(--navy);
}

.cta-band .eyebrow::before {
  background: var(--navy);
}

.cta-band h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.cta-band .lede {
  color: rgba(13, 25, 41, 0.75);
  max-width: 32rem;
  margin: 1rem 0 2rem;
  font-size: 1.02rem;
}

.cta-band .btn-primary {
  background: var(--navy);
  color: #f9f8f4;
  border-color: var(--navy);
}

.cta-band .btn-primary:hover {
  background: var(--navy-raised);
  border-color: var(--navy-raised);
}

.cta-band .btn-on-dark {
  color: var(--navy);
  border-color: rgba(13, 25, 41, 0.4);
}

.cta-band .btn-on-dark:hover {
  border-color: var(--navy);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(241, 238, 230, 0.65);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(241, 238, 230, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(241, 238, 230, 0.12);
}

.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  max-width: 20rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 238, 230, 0.45);
  margin-bottom: 0.9rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.55rem;
  color: rgba(241, 238, 230, 0.82);
}

.footer-col a:hover {
  color: #f9f8f4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: rgba(241, 238, 230, 0.45);
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Email modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 25, 41, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-raised);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.modal h3 {
  font-size: 1.2rem;
  padding-right: 1.5rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-field {
  display: block;
  margin-bottom: 1rem;
}

.form-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  text-align: center;
  color: var(--ink-muted);
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--red);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-layout .dash-mock {
    order: -1;
  }

  .problem-grid,
  .cap-grid,
  .service-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    border-bottom: 1px solid var(--line);
  }

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

  .enterprise-banner {
    grid-template-columns: 1fr;
  }

  .enterprise-factors {
    border-left: none;
    border-top: 1px solid rgba(249, 248, 244, 0.1);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3rem 0 3rem;
  }
}
