/* ---------- Design tokens ---------- */
:root {
  --navy: #0b3350;
  --blue-deep: #0e4a78;
  --blue: #1670a8;
  --blue-light: #eaf4fb;
  --teal: #0f9b8e;
  --teal-light: #14b8a6;
  --ink: #0f1b2d;
  --muted: #52667a;
  --line: #dde6ee;
  --bg-soft: #f5f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(11, 51, 80, 0.25);
  --shadow-sm: 0 4px 14px -8px rgba(11, 51, 80, 0.25);
  --max: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-light); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn-primary { background: var(--blue-deep); }
.nav-cta .btn-primary:hover { background: var(--blue); }
.nav-login { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 8px 4px; }
.nav-login:hover { color: var(--teal); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #123d63 0%, var(--navy) 45%, #082238 100%);
  color: var(--white);
  padding: 96px 0 110px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.82); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.hero-art {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-art .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.05); margin-bottom: 10px; font-size: 0.85rem; }
.hero-art .row:last-child { margin-bottom: 0; }
.hero-art .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.tag-teal { background: rgba(15,155,142,0.25); color: #7fe8dc; }
.tag-blue { background: rgba(22,112,168,0.3); color: #a9d7f4; }
.tag-amber { background: rgba(230,168,60,0.25); color: #f3cd88; }
.hero-art .caption { margin-top: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.55); text-align: center; }

/* ---------- Section shells ---------- */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Approach (Discover/Build/Adapt) ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.approach-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.approach-card .step-no {
  position: absolute; top: -16px; left: 26px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.approach-card h3 { margin-top: 8px; }
.approach-card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Contrast / comparison ---------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contrast .col { padding: 36px 32px; }
.contrast .col.old { background: var(--white); }
.contrast .col.new { background: var(--navy); color: var(--white); }
.contrast h3 { display: flex; align-items: center; gap: 10px; }
.contrast .col.new h3 { color: var(--white); }
.contrast ul { margin: 0; padding: 0; list-style: none; }
.contrast li { display: flex; gap: 12px; padding: 10px 0; font-size: 0.95rem; border-top: 1px solid var(--line); }
.contrast .col.new li { border-top: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); }
.contrast li:first-child { border-top: none; }
.contrast .col.old li { color: var(--muted); }
.ico { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tool-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Integrations strip ---------- */
.integrations-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.integrations-strip .wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: space-between; }
.integrations-strip .label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); flex: none; }
.integration-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.9rem; color: var(--navy);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-item { position: relative; padding: 24px 20px 0; }
.process-item::before {
  content: attr(data-n);
  display: block; font-size: 2.2rem; font-weight: 800;
  color: var(--blue-light); -webkit-text-stroke: 1px var(--blue-deep);
  margin-bottom: 6px;
}
.process-item h3 { font-size: 1.02rem; }
.process-item p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact / demo form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-points { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-point { display: flex; gap: 14px; }
.contact-point .ico { width: 22px; height: 22px; color: var(--teal); }
.contact-point strong { display: block; font-size: 0.95rem; }
.contact-point span { color: var(--muted); font-size: 0.9rem; }

form.demo-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 14px; font-size: 0.9rem; color: var(--teal); display: none; }
.form-status.visible { display: block; }
.demo-form .btn-primary { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid .brand { color: var(--white); }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; }
  .approach-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .contrast { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-outline, .nav-login { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 20px 24px;
    border-bottom: 1px solid var(--line); gap: 18px;
  }
  .approach-grid, .tools-grid, .process, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
