/* ===== Tokens ===== */
:root {
  --ink: #12333d;
  --ink-soft: #3d5760;
  --teal-900: #0a4a4a;
  --teal-700: #0e6b64;
  --teal-500: #159a82;
  --green-400: #34c98d;
  --mist: #eef6f4;
  --mist-2: #e3f0ed;
  --white: #ffffff;
  --line: #d9e7e3;
  --shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1240px;
  --gradient: linear-gradient(135deg, var(--teal-900), var(--teal-500) 60%, var(--green-400));
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
}

.section--tint { background: var(--mist); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--teal-900);
  color: var(--white);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover { background: #0d5a5a; transform: translateY(-1px); }

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

.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn-on-dark {
  background: var(--white);
  color: var(--teal-900);
}

.btn-on-dark:hover { background: var(--mist); transform: translateY(-1px); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--teal-700); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
}

.hero-copy p {
  margin-top: 20px;
  font-size: 18px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual .blob {
  position: absolute;
  inset: -10%;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.18;
  z-index: 0;
}

.hero-visual figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img { width: 100%; height: 420px; object-fit: cover; }

.dot-grid {
  position: absolute;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--teal-500) 1.6px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.35;
  z-index: 0;
}

.dot-grid--hero { top: -24px; right: -20px; }

/* ===== Stat strip ===== */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 24px;
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 20px; height: 20px; color: var(--teal-700); }

.stat-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.stat p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ===== Problem section (pills) ===== */
.problem-copy {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.problem-copy h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.18; }
.problem-copy p { margin-top: 18px; font-size: 17px; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 4px;
}

.pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.pill .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Workflow steps ===== */
.workflow-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.workflow-head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; }
.workflow-head p { margin-top: 16px; font-size: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 4px solid var(--white);
}

.step h3 { font-size: 15px; }
.step p { font-size: 13px; margin: 6px 0 0; max-width: 16ch; }

/* ===== Capabilities bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.18);
}

.bento-card.feature:hover {
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.4);
}

.bento-card.wide { grid-column: span 2; }
.bento-card.feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--teal-900);
  color: var(--mist);
  justify-content: space-between;
}

.bento-card.feature h3 { color: var(--white); }
.bento-card.feature p { color: #cfe7e2; }

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-head svg { width: 20px; height: 20px; color: var(--teal-700); flex-shrink: 0; }
.bento-card.feature .card-head svg { color: var(--white); }

.bento-card h3 { font-size: 17px; }
.bento-card p { font-size: 14.5px; margin: 0; }
.bento-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.bento-card li { margin-bottom: 4px; }

/* ===== Integration split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split > * { min-width: 0; }

.split figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split img { width: 100%; height: 380px; object-fit: cover; }

.split h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.18; }
.split p { margin-top: 18px; font-size: 16px; }

.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  background: var(--teal-700);
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Personas ===== */
.persona-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
  box-shadow: var(--shadow);
}

.persona-banner img { width: 100%; height: 300px; object-fit: cover; }

.persona-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,74,74,0.82) 0%, rgba(10,74,74,0.35) 55%, rgba(10,74,74,0) 100%);
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.persona-banner .overlay h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  max-width: 18ch;
  line-height: 1.2;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.persona-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.persona-card h3 { font-size: 16px; }
.persona-card p { font-size: 14px; margin: 8px 0 0; }

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 72px 48px;
  text-align: center;
  color: var(--white);
  isolation: isolate;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,74,74,0.94), rgba(21,154,130,0.9));
  z-index: -1;
}

.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; margin: 0 auto; }
.cta-band p { margin: 18px auto 0; max-width: 50ch; color: #dff2ec; font-size: 17px; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-actions a.plain { color: #dff2ec; text-decoration: underline; font-size: 15px; font-weight: 500; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #b9ccd1;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer .logo { color: var(--white); }
.footer-about p { font-size: 14.5px; margin-top: 14px; max-width: 34ch; }

.footer h3 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; color: #b9ccd1; font-size: 14.5px; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: #8ba3a9;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 2; }
  .bento-card.feature { grid-column: span 2; grid-row: span 1; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .stat-strip .wrap { grid-template-columns: 1fr; gap: 20px; }
  .workflow-head { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split figure { order: -1; }
  .persona-banner .overlay { padding: 0 24px; background: linear-gradient(180deg, rgba(10,74,74,0.55), rgba(10,74,74,0.85)); }
}

@media (max-width: 400px) {
  .logo { font-size: 16px; gap: 8px; }
  .nav .wrap { gap: 12px; }
  .nav-actions { gap: 12px; }
  .btn { padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide, .bento-card.feature { grid-column: span 1; }
  .persona-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 56px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--white);
  z-index: 49;
  padding: 24px;
  display: none;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.mobile-nav a {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.mobile-nav .btn { margin-top: 24px; width: 100%; }
