/* Congress-iQ – Home page, design B ("Bold Congress-iQ purple")
   Responsive HTML/CSS template. Colours and type from the Congress-iQ joint design system. */

:root {
  --purple: #3D2382;
  --lime: #A8C935;
  --navy: #12283F;
  --navy-2: #1A3654;
  --petrol: #0F4C6E;
  --blue: #1A8FCF;
  --aqua: #5BC2CA;
  --gold: #DCA41C;
  --green: #2A8C42;
  --white: #FFFFFF;
  --lilac: #EEEAF6;
  --mist: #E6EDF3;
  --slate: #A9B6C3;
  --grey: #5B6B7A;
  --rule: #D9DEE4;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(56px, 8vw, 96px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
a { color: var(--petrol); }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--navy); padding: 8px 16px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.text-lime { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { color: var(--navy); }
.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { color: var(--white); }
.btn--outline { color: var(--white); border: 1px solid var(--white); }
.btn--outline:hover { color: var(--white); background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Header + hero band ---------- */
.band--purple { background: var(--purple); color: var(--white); }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px; position: relative;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  color: var(--white); text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand--purple { color: var(--purple); font-size: 24px; }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.site-nav a:not(.btn) { color: var(--white); text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; color: var(--white); }
.site-nav__cta { margin-left: 16px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle__btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--white); cursor: pointer; border: 1px solid rgba(255,255,255,.4);
}

.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px);
}
.hero__copy { flex: 1 1 560px; min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.06; font-weight: 700; letter-spacing: -0.01em;
}
.hero__lede { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--lilac); max-width: 600px; }
.hero__dots {
  flex: 0 1 360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.dot { aspect-ratio: 1; border-radius: 999px; }
.dot--lime { background: var(--lime); }
.dot--aqua { background: var(--aqua); }
.dot--blue { background: var(--blue); }
.dot--navy { background: var(--petrol); }
.dot--gold { background: var(--gold); }
.dot--green { background: var(--green); }
.dot--square { background: var(--white); border-radius: var(--radius-lg); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section-gap); }
.section--last { padding-bottom: var(--section-gap); }
.section__title { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; }

.statement {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.3; max-width: 980px;
}
.source { margin-top: 20px; font-size: 16px; color: var(--grey); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Dark panel ---------- */
.panel { border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); }
.panel--dark { background: var(--navy); color: var(--white); }
.panel h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; font-weight: 700; }
.tech-grid { margin-top: 36px; }
.tech-card { background: var(--navy-2); border-radius: var(--radius-md); padding: 32px; }
.tech-card__icon { display: block; width: 40px; height: 40px; border-radius: 999px; }
.tech-card__icon--aqua { background: var(--aqua); }
.tech-card__icon--blue { background: var(--blue); }
.tech-card__owner { margin-top: 20px; font-size: 14px; color: var(--slate); }
.tech-card h3 { margin-top: 4px; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; }
.tech-card p:last-child { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--mist); }
.panel__note { margin-top: 28px; font-size: 17px; line-height: 1.55; color: var(--mist); }

/* ---------- Six reasons ---------- */
.reasons {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 32px;
}
.reasons li { display: flex; gap: 20px; }
.reasons__num {
  font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--purple);
  flex: 0 0 auto; min-width: 56px;
}
.reasons h3 { font-size: 20px; line-height: 1.3; }
.reasons p { margin-top: 6px; font-size: 15px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta {
  background: var(--lime); color: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta__copy { flex: 1 1 520px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.16; font-weight: 700; }
.cta p { margin-top: 12px; font-size: 18px; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-footer__from { font-size: 13px; color: var(--grey); }
.site-footer__rule { width: 2px; height: 32px; background: var(--lime); }
.logo--tm { height: 20px; width: auto; }
.invo-group { display: inline-flex; align-items: center; }
.logo--invo-mark { height: 40px; width: auto; }
.logo--invo-word { height: 28px; width: auto; }
.site-footer__contact { font-size: 14px; color: var(--grey); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero__dots { flex-basis: 100%; max-width: 280px; }
  .reasons { column-gap: 40px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle__btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--purple); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,.2);
  }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav__cta { margin: 16px 0 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }

  .hero { gap: 40px; }
  .hero__dots { max-width: 220px; gap: 12px; }
  .grid--2, .reasons { grid-template-columns: 1fr; }
  .reasons { row-gap: 28px; }
  .reasons__num { font-size: 32px; min-width: 44px; }
  .btn-row .btn, .cta .btn { width: 100%; }
  .site-footer__rule { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
