:root {
  --blue: #0879c9;
  --blue-strong: #0473c5;
  --blue-dark: #153c65;
  --cyan: #28b6d3;
  --cyan-soft: #eaf8fc;
  --ink: #112233;
  --muted: #5f7182;
  --line: #d9e6ee;
  --bg: #ffffff;
  --surface: #f7fbfd;
  --shadow: 0 20px 55px rgba(18, 60, 101, 0.12);
  --radius: 22px;
  --shell: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 9999;
  background: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 10px; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #eef3f6;
  font-size: 14px;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { text-decoration: none; color: #2e9dcc; }

.site-header {
  background: rgba(255,255,255,.97);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16,53,88,.08);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 220px;
  height: auto;
}
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a {
  text-decoration: none;
  font-size: 16px;
  color: #111;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(40,182,211,.14), transparent 30%),
    linear-gradient(180deg, #fafdff 0%, #f3f9fc 100%);
  border-bottom: 1px solid #e4edf3;
}
.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  left: -260px;
  bottom: -300px;
  background: rgba(8,121,201,.08);
  filter: blur(10px);
}
.hero-inner {
  min-height: 660px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 68px;
  position: relative;
  z-index: 2;
  padding: 72px 0 78px;
}
.hero h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.04;
  margin: 0 0 26px;
  max-width: 720px;
  font-weight: 520;
  color: var(--blue-dark);
  letter-spacing: -.04em;
}
.hero-copy > p {
  font-size: 20px;
  max-width: 650px;
  color: #40596d;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue-strong);
  color: #fff;
  box-shadow: 0 14px 32px rgba(8,121,201,.2);
}
.btn-primary:hover { background: #056ab4; }
.btn-secondary {
  border: 1px solid #c5d9e6;
  color: var(--blue-dark);
  background: #fff;
}
.btn-secondary:hover { box-shadow: 0 12px 28px rgba(18,60,101,.1); }
.btn-light { background: #fff; color: var(--blue-dark); white-space: nowrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust span {
  padding: 8px 12px;
  border: 1px solid #d7e6ee;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #456074;
  font-size: 13px;
}
.hero-media {
  margin: 0;
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px 20px 24px -16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(8,121,201,.14), rgba(40,182,211,.06));
  z-index: -1;
}
.hero-media-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(23,76,113,.13);
  box-shadow: 0 28px 72px rgba(18,60,101,.2);
  background: #dbeef5;
}
.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.hero-media figcaption {
  font-size: 13px;
  color: #6c8090;
  margin-top: 12px;
  text-align: right;
}

.intro-section { padding: 92px 0; }
.intro-grid { display:grid; grid-template-columns: .85fr 1.15fr; gap:100px; align-items:center; }
.intro-grid h2, .section-heading h2, .collaboration-card h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height:1.12;
  margin: 0;
  font-weight:500;
  letter-spacing:-.03em;
  color: var(--blue-dark);
}
.intro-grid p { font-size: 20px; margin: 0; color: #364c60; }

.eyebrow, .section-kicker {
  display: inline-block;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}
.tools-section { background: var(--surface); padding: 95px 0 110px; border-top: 1px solid #e8f0f4; }
.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading h2 { margin-top: 10px; }
.section-heading p { font-size:19px; color:var(--muted); }
.section-heading.compact { margin-bottom: 34px; }
.tool-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.tool-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:32px;
  min-height: 520px;
  display:flex;
  flex-direction:column;
  box-shadow: 0 12px 34px rgba(17,34,51,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color:#b9d9ea; }
.tool-card.featured { border-top:4px solid var(--blue); }
.tool-topline { display:flex; align-items:center; justify-content:space-between; }
.tool-number { color:#9db1c1; font-weight:800; font-size:13px; }
.badge { font-size:11px; font-weight:800; letter-spacing:.08em; border-radius:999px; padding:6px 9px; }
.badge.live { background:#e8f8f2; color:#147a60; }
.badge.soon { background:#eef4f8; color:#61788a; }
.tool-icon {
  width:62px; height:62px; border-radius:18px;
  margin:30px 0 22px;
  display:grid; place-items:center;
  background:linear-gradient(140deg,#edf8fc,#dceff8);
  color:var(--blue-dark); font-weight:900; font-size:15px;
}
.roster-icon { background:linear-gradient(140deg,var(--blue),var(--cyan)); color:white; }
/* Helix carries its own navy-to-cyan, so the two live tools read as a set
   without the second one looking like a copy of the first. The label is a word
   rather than initials, so it needs a smaller type size to sit in the tile. */
.helix-icon {
  background:linear-gradient(140deg,var(--blue-dark),var(--cyan));
  color:white; font-size:12px; letter-spacing:.06em;
}
.tool-card h3 { font-size:30px; margin:0 0 5px; color:var(--blue-dark); }
.tool-subtitle { font-weight:700; color:#36546b !important; }
.tool-card p { color:var(--muted); margin:10px 0; }
.tool-card ul { margin: 14px 0 28px; padding-left:19px; color:#344b5d; }
.card-link { margin-top:auto; color:var(--blue); font-weight:800; text-decoration:none; }
.card-link span { display:inline-block; transition:transform .2s; }
.card-link:hover span { transform:translateX(4px); }
.card-link.muted { color:#8a99a5; }

.principles-section { padding:100px 0; }
.principles-heading { margin-bottom: 28px; }
.principles-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.principle { padding:34px 26px 36px; border-right:1px solid var(--line); }
.principle:first-child { padding-left:0; }
.principle:last-child { border-right:none; }
.principle-index { font-weight:900; color:var(--cyan); font-size:13px; }
.principle h3 { font-size:22px; color:var(--blue-dark); margin:16px 0 8px; }
.principle p { color:var(--muted); margin:0; }

.collaboration-section { padding: 20px 0 110px; }
.collaboration-card {
  background:linear-gradient(115deg,var(--blue-dark),#0f6098 58%,var(--blue));
  border-radius:30px;
  padding:52px 58px;
  color:#fff;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:44px;
  box-shadow: 0 24px 70px rgba(18,60,101,.18);
}
.section-kicker.light { color:#aeefff; }
.collaboration-card h2 { color:#fff; margin-top: 10px; }
.collaboration-card p { max-width:800px; color:rgba(255,255,255,.82); font-size:18px; margin-bottom:0; }

.site-footer { background:var(--cyan); color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.3fr .85fr .85fr 1fr; gap:70px; padding:58px 0 50px; }
.footer-brand img {
  width:220px;
  background:#fff;
  padding:10px 12px;
  border-radius:6px;
}
.footer-brand p { max-width:340px; margin-top:22px; }
.site-footer h4 { margin:0 0 18px; font-size:15px; text-transform:uppercase; letter-spacing:.04em; }
.site-footer a, .site-footer span { display:block; text-decoration:none; margin:7px 0; color:#fff; }
.site-footer a:hover { text-decoration:underline; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.28); }
.footer-bottom-inner { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-bottom-inner div { display:flex; gap:20px; }

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns:1fr; gap:42px; }
  .hero-media { max-width:780px; width:100%; }
  .hero-media img { height:480px; }
  .intro-grid { grid-template-columns:1fr; gap:20px; }
  .tool-grid { grid-template-columns:1fr; }
  .tool-card { min-height:unset; }
  .principles-grid { grid-template-columns:repeat(2,1fr); }
  .principle:nth-child(2) { border-right:none; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width:min(100% - 28px, var(--shell)); }
  .topbar-inner { justify-content:center; }
  .topbar-contact { gap:10px; flex-wrap:wrap; justify-content:center; padding:7px 0; }
  .nav-wrap { min-height:78px; }
  .brand img { width:185px; }
  .nav-toggle {
    display:block;
    border:0;
    background:transparent;
    font-size:26px;
    color:var(--blue-dark);
  }
  .primary-nav {
    display:none;
    position:absolute;
    left:14px; right:14px; top:82px;
    background:#fff;
    padding:18px;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch;
  }
  .primary-nav.open { display:flex; }
  .hero-inner { min-height:auto; padding:60px 0 70px; }
  .hero h1 { font-size:46px; }
  .hero-copy > p { font-size:18px; }
  .hero-media img { height:auto; }
  .hero-media figcaption { text-align:left; }
  .intro-section, .tools-section, .principles-section { padding:70px 0; }
  .principles-grid { grid-template-columns:1fr; }
  .principle, .principle:first-child { padding:28px 0; border-right:none; border-bottom:1px solid var(--line); }
  .principle:last-child { border-bottom:none; }
  .collaboration-section { padding-bottom:76px; }
  .collaboration-card { grid-template-columns:1fr; padding:38px 28px; }
  .footer-grid { grid-template-columns:1fr; gap:35px; }
  .footer-bottom-inner { flex-direction:column; align-items:flex-start; padding:20px 0; }
}

@media (max-width: 520px) {
  .hero h1 { font-size:40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width:100%; }
}

/* Responsive refinement v4 */
:focus-visible {
  outline: 3px solid rgba(8, 121, 201, .35);
  outline-offset: 3px;
}

.hero-trust span {
  font-weight: 700;
  color: #34536a;
}

@media (max-width: 1180px) {
  :root { --shell: 1120px; }
  .hero-inner {
    grid-template-columns: .92fr 1.08fr;
    gap: 42px;
    min-height: 610px;
  }
  .hero h1 { font-size: clamp(46px, 5vw, 64px); }
  .hero-media img { height: 470px; }
  .tool-grid { gap: 18px; }
  .tool-card { padding: 28px; }
  .footer-grid { gap: 44px; }
}

@media (max-width: 980px) {
  .topbar-inner { justify-content: flex-end; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding: 58px 0 68px;
  }
  .hero-copy { max-width: 800px; }
  .hero-media { max-width: 900px; width: 100%; }
  .hero-media img { height: min(56vw, 500px); }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: none; }
  .principle:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.15fr 1fr; gap: 42px 56px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .shell { width: min(100% - 30px, var(--shell)); }

  .topbar { font-size: 12px; }
  .topbar-inner { min-height: 34px; justify-content: center; }
  .topbar-contact {
    width: 100%;
    gap: 8px 16px;
    justify-content: center;
    padding: 5px 0;
  }

  .site-header { position: sticky; top: 0; }
  .nav-wrap { min-height: 76px; position: relative; }
  .brand { max-width: calc(100% - 64px); }
  .brand img { width: min(205px, 58vw); }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 24px;
    color: var(--blue-dark);
    cursor: pointer;
  }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }
  .primary-nav a:hover { background: var(--surface); }

  .hero-inner { padding: 48px 0 58px; gap: 34px; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.06;
    margin-bottom: 20px;
    letter-spacing: -.035em;
  }
  .hero-copy > p { font-size: 17px; line-height: 1.65; }
  .hero-actions { margin: 28px 0 24px; }
  .hero-trust { gap: 8px; }
  .hero-trust span { font-size: 12px; padding: 7px 10px; }
  .hero-media::before { inset: -10px 10px 18px -10px; border-radius: 22px; }
  .hero-media-frame { border-radius: 20px; }
  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 58% center;
  }
  .hero-media figcaption { text-align: left; font-size: 12px; }

  .intro-section { padding: 62px 0; }
  .intro-grid h2, .section-heading h2, .collaboration-card h2 {
    font-size: clamp(32px, 8.5vw, 42px);
  }
  .intro-grid p, .section-heading p { font-size: 17px; }

  .tools-section, .principles-section { padding: 66px 0; }
  .section-heading { margin-bottom: 34px; }
  .tool-card { padding: 24px; border-radius: 18px; }
  .tool-card h3 { font-size: 26px; }
  .tool-icon { width: 56px; height: 56px; margin: 24px 0 18px; }
  .tool-card ul { margin-bottom: 22px; }

  .principles-grid { grid-template-columns: 1fr; }
  .principle,
  .principle:first-child {
    padding: 26px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .principle:last-child { border-bottom: none; }

  .collaboration-section { padding: 10px 0 72px; }
  .collaboration-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 24px;
    border-radius: 22px;
  }
  .collaboration-card p { font-size: 16px; }
  .btn-light { justify-self: stretch; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 38px;
  }
  .footer-brand img { width: min(235px, 72vw); }
  .footer-bottom-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 24px;
    gap: 12px;
  }
  .footer-bottom-inner div { flex-wrap: wrap; gap: 12px 18px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .topbar-contact a:last-child { display: none; }
  .brand img { width: min(180px, 58vw); }
  .hero-inner { padding-top: 38px; }
  .hero h1 { font-size: clamp(34px, 10.8vw, 42px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn { width: 100%; min-height: 50px; padding-inline: 18px; }
  .hero-trust { display: grid; grid-template-columns: 1fr; }
  .hero-trust span { width: fit-content; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 63% center; }
  .intro-section { padding: 54px 0; }
  .tools-section, .principles-section { padding: 58px 0; }
  .tool-card { padding: 22px 20px; }
  .tool-topline { gap: 10px; align-items: flex-start; }
  .badge { text-align: center; }
  .collaboration-card { padding: 30px 20px; }
  .footer-brand p { font-size: 15px; }
}

@media (max-width: 380px) {
  .topbar-contact a { font-size: 11px; }
  .brand img { width: 160px; }
  .nav-wrap { min-height: 70px; }
  .hero h1 { font-size: 32px; }
  .hero-trust span { font-size: 11px; }
  .tool-card h3 { font-size: 24px; }
  .footer-bottom-inner { font-size: 13px; }
}

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