/* ==========================================================================
   Legacy Four Solutions LLC — site styles
   Palette sampled from the winged-shield logo (purple / royal blue / magenta)
   ========================================================================== */

:root {
  /* Brand */
  --ink:          #150A3F;
  --indigo-900:   #1E0E5E;
  --indigo-700:   #2A1178;
  --violet:       #6B3FD4;
  --violet-light: #A56FDA;
  --royal:        #2F62C8;
  --magenta:      #C63FBE;

  /* Surfaces & text */
  --paper:        #FFFFFF;
  --paper-2:      #F8F6FD;
  --paper-3:      #F1ECFB;
  --line:         #E6E0F5;
  --head:         #1A1140;
  --body:         #4E4867;
  --muted:        #7A7391;

  --grad: linear-gradient(100deg, #A56FDA 0%, #6B3FD4 26%, #2F62C8 58%, #C63FBE 100%);
  --grad-soft: linear-gradient(135deg, #2A1178 0%, #4A2AA8 45%, #7B2FBE 100%);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 1px 2px rgba(21, 10, 63, .04), 0 12px 32px -12px rgba(42, 17, 120, .16);
  --shadow-lg: 0 2px 4px rgba(21, 10, 63, .05), 0 32px 64px -24px rgba(42, 17, 120, .30);

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 40px);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, .display {
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  color: var(--head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--paper-2); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--body); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 .9em;
}
.eyebrow--on-dark { color: var(--violet-light); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  height: 3px;
  border: 0;
  margin: 0;
  background: var(--grad);
  opacity: .9;
}

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(107, 63, 212, .75);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(107, 63, 212, .85); }
.btn--ghost { border-color: var(--line); color: var(--head); background: #fff; }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--light { background: #fff; color: var(--indigo-700); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

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

/* --------------------------------------------------------------- logo -- */
.logo-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-lockup:hover { text-decoration: none; }
.logo-lockup svg { width: 46px; height: auto; flex: none; }
.logo-word {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: .96rem;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--head);
  display: grid;
}
.logo-word .lw-2 {
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .3em;
  color: var(--violet);
}
.on-dark .logo-word { color: #fff; }
.on-dark .logo-word .lw-2 { color: var(--violet-light); }

/* ------------------------------------------------------------ top bar -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
}
.topbar.is-stuck::after { opacity: 1; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: var(--head);
  padding: .55em .9em;
  border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--paper-3); color: var(--violet); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--violet); background: var(--paper-3); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--head);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .85em 1em; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------- hero -- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero__aura {
  position: absolute;
  left: 50%;
  top: -18%;
  width: min(1100px, 128vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(198, 63, 190, .20), transparent 70%) 22% 30% / 62% 62% no-repeat,
    radial-gradient(closest-side, rgba(47, 98, 200, .20), transparent 70%) 78% 26% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(107, 63, 212, .18), transparent 70%) 50% 68% / 70% 70% no-repeat;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__mark { width: clamp(160px, 22vw, 232px); margin: 0 auto clamp(20px, 3vw, 30px); }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero .lede { margin-top: 1.1em; }
.hero .btn-row { margin-top: 2.1em; }

/* --------------------------------------------------------- trust strip -- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 26px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Montserrat, sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--head);
  line-height: 1.3;
}
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--violet); }

/* -------------------------------------------------------------- cards -- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--body); font-size: .97rem; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  color: var(--violet);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

.card__list { list-style: none; margin: 14px 0 0; padding: 0; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: .93rem;
  margin-bottom: .45em;
  color: var(--body);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------------------------------------------------------- dark band -- */
.band {
  background: var(--grad-soft);
  color: rgba(255, 255, 255, .84);
  position: relative;
  overflow: hidden;
}
.band h2, .band h3 { color: #fff; }
.band::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -35%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(198, 63, 190, .5), transparent 72%);
  pointer-events: none;
}
.band > .wrap { position: relative; z-index: 1; }
.band .lede { color: rgba(255, 255, 255, .84); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.stat__num {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__label { font-size: .9rem; margin-top: .6em; color: rgba(255, 255, 255, .74); }

/* -------------------------------------------------------------- chips -- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.chips li {
  font-family: Montserrat, sans-serif;
  font-size: .87rem;
  font-weight: 600;
  color: var(--head);
  background: #fff;
  border: 1px solid var(--line);
  padding: .6em 1.1em;
  border-radius: 999px;
}
.band .chips li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }

/* --------------------------------------------------------------- steps -- */
.steps { counter-reset: step; display: grid; gap: 4px; margin-top: 10px; }
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  counter-increment: step;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .35em; }
.step p { font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------ split -- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.split--top { align-items: start; }

.callout {
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  background: var(--paper-2);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.02rem;
  color: var(--head);
}
.callout strong { color: var(--indigo-700); }

/* ----------------------------------------------------- personal note -- */
.note {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.note::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}
.note__mark { width: 74px; margin: 0 auto 20px; }
.note p {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.55;
  color: var(--head);
  letter-spacing: -.01em;
  max-width: 34ch;
  margin-inline: auto;
}
.note__sign {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.note__name {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--head);
  letter-spacing: -.01em;
}
.note__role {
  font-size: .84rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: .02em;
}
.band .note {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}
.band .note p, .band .note__name { color: #fff; }
.band .note__sign { border-top-color: rgba(255, 255, 255, .2); }
.band .note__role { color: rgba(255, 255, 255, .68); }

/* --------------------------------------------------------------- form -- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: Montserrat, sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: .01em;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--head);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8em 1em;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(107, 63, 212, .14);
}
.field__hint { font-size: .82rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 3px; }
.contact-list b {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-list a, .contact-list span { color: var(--head); font-size: 1.02rem; font-weight: 500; }
.contact-list a:hover { color: var(--violet); }

/* ----------------------------------------------------------- cta band -- */
.cta {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 7vw, 84px) 0;
}
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 56ch; margin-inline: auto; }

/* ------------------------------------------------------------- footer -- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 34px;
}
.footer h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1em;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.footer a { color: rgba(255, 255, 255, .62); }
.footer a:hover { color: #fff; }
.footer__bar {
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .48);
}
.footer__note { max-width: 42ch; margin-top: 1.1em; font-size: .88rem; }

/* -------------------------------------------------------------- misc -- */
.skip {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--head);
  padding: .8em 1.2em;
  border-radius: 0 0 12px 0;
  z-index: 200;
  font-weight: 700;
}
.skip:focus { left: 0; top: 0; }

/* Reveal-on-scroll fails SAFE: content is visible unless JS has confirmed it can
   animate (html.reveal-ready, set by an inline script in <head>). No JS, slow JS,
   or a dead observer therefore means "everything visible", never "blank page". */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}
