:root {
  --navy: #071d3a;
  --navy-2: #0b2b54;
  --teal: #0fa3b1;
  --teal-2: #75d0d8;
  --aqua: #b7e1e6;
  --ink: #112033;
  --muted: #657384;
  --soft: #f6f9fb;
  --line: #d9e5ec;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(7, 29, 58, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Avenir Next, Montserrat, Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 229, 236, 0.82);
}

.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
}

.brand small {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.main-nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.main-nav a,
.nav-cta,
.button,
.text-link {
  text-decoration: none;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(7, 29, 58, 0.2);
}

.section-pad {
  padding: 96px 0;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 163, 177, 0.14), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(183, 225, 230, 0.7), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 45%, #edf7fa 100%);
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -20vw;
  width: 62vw;
  height: 62vw;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(7, 29, 58, 0.12), rgba(15, 163, 177, 0.14));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-copy,
.section-heading p,
.network-panel p {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 18px 40px rgba(7, 29, 58, 0.22);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 163, 177, 0.22);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 700;
}

.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 100%;
  margin: 0 auto 24px;
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}

.status-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.pulse {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal-2);
  box-shadow: 0 0 0 8px rgba(117, 208, 216, 0.16);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric-grid div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.metric-grid strong {
  color: var(--teal);
  font-size: 28px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.section-heading {
  max-width: 850px;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 44px rgba(7, 29, 58, 0.06);
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-card p,
.steps p,
.value-list span,
.site-footer p,
.form-note {
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: start;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 50px rgba(7, 29, 58, 0.06);
}

.steps span {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
}

.network-section {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(15, 163, 177, 0.3), transparent 28%),
    linear-gradient(135deg, var(--navy) 0%, #04142a 100%);
}

.network-section h2,
.network-section .eyebrow,
.network-section p {
  color: var(--white);
}

.network-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.network-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list div {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.value-list strong {
  color: var(--white);
  font-size: 18px;
}

.value-list span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-cards a {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 163, 177, 0.12);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  padding: 52px 0;
  background: #06172e;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.site-footer img {
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.legal-note {
  font-size: 13px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .network-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section-pad {
    padding: 70px 0;
  }

  .nav-wrap {
    height: 70px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-card,
  .contact-form {
    padding: 22px;
    border-radius: 24px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Avanta landing page conversion refresh */
.hero {
  min-height: 82svh;
}

.hero-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,249,251,0.97));
  box-shadow: 0 28px 90px rgba(7, 29, 58, 0.16);
}

.hero-card::before {
  content: "Referral support";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 163, 177, 0.28);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(15, 163, 177, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-logo {
  max-width: 330px;
  margin-left: 0;
}

.status-card {
  background: linear-gradient(135deg, var(--navy), #0d345e);
}

.network-section {
  background:
    radial-gradient(circle at top left, rgba(15, 163, 177, 0.16), transparent 32%),
    linear-gradient(135deg, #071d3a, #0b2b54);
}

.contact-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 163, 177, 0.12), transparent 26%),
    #f6f9fb;
}

.contact-form {
  border: 1px solid rgba(217, 229, 236, 0.95);
  box-shadow: 0 24px 80px rgba(7, 29, 58, 0.12);
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-logo {
    max-width: 280px;
  }
}

/* Avanta polish: crisp logo lockups, softer landing-page type, no crushed SVG text */
.avanta-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.avanta-lockup img {
  flex: 0 0 auto;
  object-fit: contain;
}

.avanta-lockup strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 0.92;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.avanta-lockup span {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.hero-lockup {
  justify-content: center;
  width: 100%;
  margin: 6px 0 28px;
}

.hero-lockup strong {
  font-size: clamp(30px, 3vw, 46px);
}

.hero-lockup span {
  font-size: clamp(12px, 1.2vw, 16px);
}

.footer-lockup {
  margin-bottom: 22px;
}

.site-footer .footer-lockup img {
  width: 70px;
  height: 70px;
  margin: 0;
  opacity: 1;
}

.site-footer .footer-lockup strong {
  color: #ffffff;
}

.site-footer .footer-lockup span {
  color: var(--teal-soft);
}

h1 {
  line-height: 1.04;
  letter-spacing: -0.042em;
  max-width: 760px;
}

.hero-lede {
  max-width: 720px;
  font-size: clamp(18px, 1.55vw, 23px);
}

.contact-cards span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(217, 229, 236, 0.95);
  border-radius: 16px;
  padding: 14px 18px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
}

.form-status {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 720px) {
  .avanta-lockup {
    gap: 10px;
  }

  .hero-lockup {
    justify-content: flex-start;
  }

  .avanta-lockup strong {
    font-size: 24px;
  }

  h1 {
    line-height: 1.07;
    letter-spacing: -0.035em;
  }
}

/* Avanta footer logo cleanup: no tiny text inside SVG */
.footer-clean-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-clean-brand img {
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  object-fit: contain;
  opacity: 1 !important;
}

.footer-clean-brand strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.footer-clean-brand span {
  display: block;
  margin-top: 8px;
  color: var(--teal-soft);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.24em;
  font-weight: 800;
}

.site-footer img[src="/assets/logo.svg"] {
  display: none !important;
}

@media (max-width: 720px) {
  .footer-clean-brand strong {
    font-size: 24px;
  }

  .footer-clean-brand span {
    font-size: 11px;
  }
}

/* Avanta footer final logo: pure CSS mark, no image dependency */
.footer-clean-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.08em;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.footer-clean-brand img {
  display: none !important;
}

.footer-clean-brand strong {
  color: #ffffff;
  letter-spacing: 0.16em;
}

.footer-clean-brand span:not(.footer-clean-mark) {
  color: var(--teal-soft);
}

@media (max-width: 720px) {
  .footer-clean-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 31px;
  }
}

/* Avanta footer final: text-only brand, no icon/image */
.footer-clean-brand,
.footer-clean-mark,
.footer-clean-brand img,
.site-footer img[src="/assets/logo.svg"] {
  display: none !important;
}

.footer-text-brand {
  display: block;
  margin-bottom: 26px;
}

.footer-text-brand strong {
  display: block;
  color: #ffffff;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 0.92;
  letter-spacing: 0.16em;
  font-weight: 950;
}

.footer-text-brand span {
  display: block;
  margin-top: 12px;
  color: var(--teal-soft);
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1;
  letter-spacing: 0.24em;
  font-weight: 850;
}

.site-footer p {
  max-width: 760px;
}

@media (max-width: 720px) {
  .footer-text-brand strong {
    font-size: 30px;
    letter-spacing: 0.13em;
  }

  .footer-text-brand span {
    font-size: 12px;
    letter-spacing: 0.18em;
  }
}

/* Avanta pro copy polish */
.contact-section h2 {
  font-size: clamp(42px, 4.8vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.contact-section .section-copy {
  max-width: 760px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.65;
}

.contact-cards {
  margin-top: 28px;
}

.contact-cards span,
.contact-cards a {
  font-size: 16px;
  border-radius: 999px;
}

.form-status {
  color: var(--navy);
  font-weight: 800;
}

.footer-text-brand strong {
  letter-spacing: 0.13em;
}

.footer-text-brand span {
  letter-spacing: 0.2em;
}
