/* ─── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:         #ffffff;
  --bg-soft:    rgba(243, 245, 247, 0.35);
  --surface:    #ffffff;
  --text:       #1f242e;   /* hsl(220 20% 15%) */
  --muted:      #677080;   /* hsl(220 10% 45%) */
  --muted-lt:   #8a96a3;   /* hsl(220 10% 60%) */
  --line:       #e2e6e9;   /* hsl(210 15% 90%) */
  --brand:      #0d4d59;   /* hsl(190 75% 20%) */
  --brand-dark: #0a3d47;
  --accent-bg:  #e8f7f8;   /* hsl(190 75% 95%) */
  --radius:     8px;
  --shadow-sm:  0 1px 2px rgba(31,36,46,.04);
  --shadow:     0 4px 6px -1px rgba(31,36,46,.05), 0 2px 4px -2px rgba(31,36,46,.03);
}

/* ─── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3 {
  margin: 0 0 0.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; text-align: center; }
h3 { font-size: 1.1rem; font-weight: 600; }

.left-title { text-align: left; }

p { margin: 0 0 1rem; color: var(--muted); }
a { color: inherit; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  background: #fff; padding: .5rem .75rem;
  border: 1px solid var(--line); border-radius: 8px;
}

/* ─── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.brand-badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: .8rem;
  color: #fff;
  background: var(--brand);
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s;
}

.nav a[aria-current="page"],
.nav a:hover,
.nav a:focus-visible { color: var(--brand); }

.nav-cta { margin-left: .5rem; }

.menu-toggle { display: none; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  min-height: 44px;
  padding: .6rem 1.25rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--brand-dark); }

.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: #b8c4cc; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  background: linear-gradient(180deg, hsl(210, 20%, 98%) 0%, #ffffff 100%);
}

.about-hero { padding: 6rem 0 3.5rem; }

.hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-inner h1 { margin-bottom: .75rem; }

.accent { color: var(--brand); }

.lead {
  font-size: 1.15rem;
  max-width: 58ch;
  margin: 0 auto 1.75rem;
  color: var(--muted);
}

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

.eyebrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted-lt);
  margin: 0;
  letter-spacing: .02em;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 5rem 0; }

.section-muted { background: var(--bg-soft); }

.section-intro {
  text-align: center;
  max-width: 60ch;
  margin: .5rem auto 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ─── Card grids ─────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1rem; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card, .panel-card, .about-pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3, .panel-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }

/* Feature cards (product modules) */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.feature-card .card-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}

.feature-card .card-title-row h3 { margin: 0; }

.feature-card ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .9rem;
}

.feature-card ul li { margin: .2rem 0; }

/* Feature / deliverable icons */
.feature-icon, .deliverable-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--brand);
  flex-shrink: 0;
}

.feature-icon svg, .deliverable-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── How it works – timeline ────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

/* Connecting line — runs dot-centre to dot-centre.
   With 5 equal columns the centres sit at 10%, 30%, 50%, 70%, 90%.
   So left: 10%  right: 10% spans exactly first → last centre. */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 15px;          /* half of 30px dot height */
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step-col {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centres the dot horizontally */
  padding: 0 1rem;
  position: relative;
}

/* Dot */
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.step-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.step-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted-lt);
  letter-spacing: .04em;
  display: block;
  margin-bottom: .35rem;
  text-align: center;
  width: 100%;
}

.step-col h3 {
  font-size: .975rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.step-col p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  text-align: center;
  width: 100%;
}

/* ─── Who it's for ───────────────────────────────────────────── */
.who-section { text-align: center; }
.who-section h2 { margin-bottom: .75rem; }
.who-section .section-intro { margin-bottom: 1.5rem; }

.industries-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-lt);
  margin: 0 0 1.5rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.industry-card h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.industry-card p  { font-size: .875rem; color: var(--muted); margin: 0; }

/* ─── Deliverables ───────────────────────────────────────────── */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.deliverable-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.deliverable-card .deliverable-icon { flex-shrink: 0; }

.deliverable-card-body { flex: 1; }
.deliverable-card-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.deliverable-card-body p  { font-size: .875rem; color: var(--muted); margin: 0; }

/* ─── Case study tabs ────────────────────────────────────────── */
.tabs {
  display: flex;
  justify-content: center;
  gap: .25rem;
  background: #eef2f5;
  border: 1px solid #dfe5ea;
  width: fit-content;
  padding: .3rem;
  border-radius: 10px;
  margin: 0 auto 2rem;
}

.tab {
  border: 0; cursor: pointer;
  padding: .55rem 1.1rem;
  border-radius: 7px;
  font: 600 .9rem/1 "Inter", sans-serif;
  color: var(--muted);
  background: transparent;
  transition: background .15s, color .15s;
}

.tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px #dfe5ea;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}

.panel-grid-insights { grid-template-columns: 1fr .85fr; }

.stack { display: grid; gap: 1rem; align-content: start; }

.image-card h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-lt);
  font-weight: 700;
  margin-bottom: .85rem;
}

/* Stats rows */
.stats-list { margin: 0; }
.stats-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.stats-list dt, .stats-list dd { margin: 0; }
.stats-list dt { color: var(--muted); }
.stats-list dd { font-weight: 700; color: var(--text); text-align: right; }

/* Score bars */
.score-bars { margin: .5rem 0 0; padding: 0; list-style: none; }
.score-bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .75rem;
  align-items: center;
  margin: .65rem 0;
  font-size: .875rem;
}
.score-bars li span { color: var(--text); }
.score-bars li strong { font-weight: 600; color: var(--text); }
.score-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand) calc(var(--value) * 1%), #dde5eb 0);
}

/* Clean list */
.clean-list {
  padding-left: 0;
  list-style: none;
  margin: .75rem 0 0;
  display: grid;
  gap: .6rem;
}
.clean-list li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* ─── Key Insights list ─────────────────────────────────────── */
.insights-list {
  display: grid;
  gap: .75rem;
  max-width: 780px;
  margin: 0 auto;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.insight-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--brand);
  font-weight: 800;
  font-size: .95rem;
  display: grid;
  place-items: center;
  margin-top: .1rem;
}

.insight-card h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.insight-card p {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Contact section ────────────────────────────────────────── */
.contact-section { background: var(--bg-soft); }

.contact-section h2 { margin-bottom: .5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.form-field { display: flex; flex-direction: column; gap: .35rem; }

label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem .8rem;
  font: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--text);
  transition: border-color .15s;
}

input::placeholder, textarea::placeholder { color: var(--muted-lt); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-full { grid-column: 1 / -1; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--muted);
}
.consent input { width: auto; margin-top: .2rem; flex-shrink: 0; }

.form-submit-btn {
  width: 100%;
  margin-top: .5rem;
  min-height: 46px;
  font-size: .95rem;
}

.form-status { min-height: 1.2rem; margin: .25rem 0 0; color: var(--brand); font-weight: 600; font-size: .875rem; }

/* Contact sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 1rem; }

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

.contact-info-card h3 { font-size: 1rem; margin-bottom: .75rem; }

.contact-info-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.contact-info-row svg {
  width: 18px; height: 18px;
  stroke: var(--brand); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.contact-info-row a { text-decoration: none; color: inherit; }
.contact-info-row a:hover { color: var(--brand); }

.contact-alt-card {
  background: var(--accent-bg);
  border: 1px solid rgba(13,77,89,.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-alt-card h3 { font-size: .95rem; color: var(--brand); margin-bottom: .4rem; }
.contact-alt-card p  { font-size: .875rem; color: var(--muted); margin: 0; }

/* ─── About page ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.about-mission-grid { align-items: center; }
.about-pillars { display: grid; gap: 1rem; }
.about-pillar h3 {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--muted-lt);
  margin-bottom: .4rem;
}
.about-pillar p { margin: 0; font-weight: 700; color: var(--text); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 0 1.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: .4rem 0; }
.footer-grid a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid h3 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text); margin-bottom: .75rem; }
.footer-grid p { font-size: .875rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .825rem; color: var(--muted-lt); margin: 0; }

/* ─── Demo widget ────────────────────────────────────────────── */
.demo-widget { position: fixed; inset: 0; z-index: 40; }
.demo-overlay { position: absolute; inset: 0; background: rgba(15, 23, 32, .5); }
.demo-panel {
  position: absolute;
  top: 76px; right: max(3vw, 16px);
  width: min(480px, 93vw);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(8, 28, 40, .2);
  padding: 1.5rem;
}
.demo-close {
  display: block; margin-left: auto;
  border: 1px solid var(--line);
  background: #fff; border-radius: 7px;
  min-height: 32px; padding: 0 .75rem;
  font: 600 .85rem "Inter", sans-serif;
  color: var(--text); cursor: pointer;
  margin-bottom: 1rem;
}
.demo-panel h2 { font-size: 1.4rem; margin-bottom: .3rem; }

.compact-form { display: grid; gap: .75rem; margin-top: .75rem; }
.compact-form label { font-size: .85rem; font-weight: 600; }
.compact-form input, .compact-form select, .compact-form textarea { font-size: .875rem; }
.compact-form .consent { font-size: .825rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid  { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .steps-grid::before { display: none; }
  .industry-grid, .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .panel-grid, .panel-grid-insights, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    min-height: 38px;
    padding: 0 .75rem;
    font: 600 .9rem "Inter", sans-serif;
    color: var(--text);
    cursor: pointer;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem 0 .5rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-cta { margin-left: 0; }
}

@media (max-width: 640px) {
  .hero { padding: 5rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .card-grid-4, .card-grid-3, .industry-grid, .deliverables-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tabs { width: calc(100% - 2px); overflow-x: auto; }
}
