:root {
  --navy: #0a2b45;
  --blue: #0f5f73;
  --mint: #dff3ef;
  --gold: #d99a1e;
  --gold-soft: #fff3d9;
  --green: #2f8a64;
  --ink: #18232d;
  --muted: #5f6c78;
  --line: #dce7e9;
  --panel: #f4f9f8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(10, 43, 69, 0.12);
  --shadow-strong: 0 28px 78px rgba(10, 43, 69, 0.18);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(223, 243, 239, 0.5), transparent 34%),
    linear-gradient(315deg, rgba(255, 243, 217, 0.62), transparent 30%),
    #fbfefd;
  background-attachment: fixed;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 233, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(10, 43, 69, 0.04);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(10, 43, 69, 0.1);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(10, 43, 69, 0.08));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #354958;
  font-weight: 850;
}

.nav-links a:not(.button) {
  position: relative;
  padding: 10px 8px;
}

.nav-links a:not(.button)::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 5px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:not(.button):hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-links a:focus-visible,
.faq-sidebar a:focus-visible {
  outline: 3px solid rgba(217, 154, 30, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue) 70%, var(--green));
  box-shadow: 0 16px 32px rgba(10, 43, 69, 0.2);
}

.button-secondary {
  color: var(--navy);
  border-color: rgba(15, 95, 115, 0.22);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(10, 43, 69, 0.06);
}

.button-secondary:hover {
  border-color: rgba(217, 154, 30, 0.65);
  box-shadow: 0 18px 36px rgba(10, 43, 69, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 82px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(244, 249, 248, 0.7) 55%, rgba(10, 43, 69, 0.18) 100%),
    linear-gradient(145deg, rgba(217, 154, 30, 0.18) 0 10%, transparent 10% 100%),
    linear-gradient(325deg, transparent 0 58%, rgba(47, 138, 100, 0.16) 58% 100%),
    url("assets/home-equity-hero.png") center right / cover no-repeat;
  background-size: auto, 120% 120%, 120% 120%, cover;
  animation: heroBackground 16s ease-in-out infinite alternate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 43, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 43, 69, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridMove 18s linear infinite;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

.hero::after {
  right: -16%;
  bottom: -34%;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(15, 95, 115, 0.16);
  border-radius: 50%;
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  animation: heroEnter 740ms ease both;
}

.hero-copy h1,
.hero-copy .lead {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.74);
}

.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.6vw, 5.25rem);
  letter-spacing: 0;
}

.lead {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.72;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 670px;
  margin-top: 34px;
}

.hero-proof div {
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(10, 43, 69, 0.06);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--navy);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.hero-proof span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.quote-card,
.panel,
.step,
.faq-item,
.feature,
.stat,
.faq-sidebar,
.faq-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quote-card {
  position: relative;
  padding: 30px;
  animation: cardEnter 820ms 120ms ease both;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--blue), var(--gold));
  background-size: 220% 100%;
  animation: accentSweep 6s ease-in-out infinite;
}

.quote-card h2 {
  font-size: 1.45rem;
}

.card-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card p {
  margin: 10px 0 20px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: #334653;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.form input,
.form select,
.form textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #fbfefd;
  font: 700 0.96rem/1.25 Inter, Arial, sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form select {
  cursor: pointer;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid rgba(217, 154, 30, 0.24);
  border-color: var(--gold);
  background: var(--white);
}

.form-honey {
  display: none;
}

.form-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section-muted {
  background:
    linear-gradient(90deg, rgba(15, 95, 115, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    var(--panel);
  background-size: 84px 84px, auto, auto;
  animation: mutedBackground 20s linear infinite;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

.section-heading p,
.panel p,
.feature p,
.step p,
.faq-item p,
.stat p,
.faq-cta p,
.use-cases p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 46px;
  align-items: center;
}

.panel {
  padding: 30px;
  border-top: 5px solid var(--gold);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #334653;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(-45deg);
}

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

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 95, 115, 0.16);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 900;
}

.steps,
.features,
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.step,
.feature,
.stat {
  min-height: 210px;
  padding: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.step:hover,
.feature:hover,
.stat:hover,
.faq-item:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 154, 30, 0.42);
  box-shadow: var(--shadow-strong);
}

.feature span,
.step span,
.stat span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.feature span {
  margin-bottom: 36px;
  color: var(--green);
  font-size: 1rem;
}

.feature h3,
.step h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.section-accent {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(10, 43, 69, 0.97), rgba(15, 95, 115, 0.94)),
    linear-gradient(120deg, rgba(217, 154, 30, 0.2) 0 18%, transparent 18% 100%),
    linear-gradient(300deg, transparent 0 66%, rgba(223, 243, 239, 0.12) 66% 100%),
    url("assets/home-equity-background.svg") right 6% center / min(42vw, 520px) auto no-repeat;
  background-size: auto, 125% 125%, 125% 125%, min(42vw, 520px) auto;
  animation: accentBackground 18s ease-in-out infinite alternate;
}

.section-accent .kicker,
.section-accent h2 {
  color: var(--white);
}

.section-accent .section-heading p {
  color: #d7e1ec;
}

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

.use-cases article {
  min-height: 158px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.16);
  transition: background-position 260ms ease, border-color 220ms ease, transform 220ms ease;
}

.use-cases article:hover {
  border-color: rgba(255, 243, 217, 0.38);
  transform: translateY(-4px);
}

.use-cases h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.15rem;
}

.use-cases p {
  color: #d7e1ec;
}

.cta-section {
  padding-top: 0;
  background: var(--panel);
}

.cta-section .faq-cta {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.faq-sidebar .kicker {
  margin-bottom: 8px;
}

.faq-sidebar a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #334653;
  font-weight: 900;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.faq-sidebar a:hover {
  color: var(--navy);
  background: var(--gold-soft);
  transform: translateX(3px);
}

.faq-content {
  display: grid;
  gap: 58px;
}

.faq-group {
  scroll-margin-top: 120px;
}

.faq-group .section-heading {
  margin-bottom: 22px;
}

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

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  font-family: Inter, Arial, sans-serif;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 24px 24px;
}

.faq-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.faq-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.site-footer {
  padding: 64px 0 28px;
  color: #d7e1ec;
  background:
    linear-gradient(135deg, rgba(10, 43, 69, 0.98), rgba(7, 31, 49, 0.97)),
    linear-gradient(120deg, rgba(217, 154, 30, 0.1) 0 16%, transparent 16% 100%),
    url("assets/homeequity-solution-logo.svg") right 8% top 56px / 380px auto no-repeat;
  background-size: auto, 120% 120%, 380px auto;
  animation: footerBackground 22s ease-in-out infinite alternate;
  border-top: 5px solid var(--gold);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.45fr) minmax(210px, 0.55fr);
  gap: 54px;
  align-items: start;
}

.footer-brand p,
.footer-bottom p {
  margin: 0;
}

.footer-brand img {
  width: 250px;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.footer-brand p {
  max-width: 560px;
  color: #d7e1ec;
  font-size: 1rem;
  line-height: 1.75;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: #d7e1ec;
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  color: var(--gold-soft);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(215, 225, 236, 0.14);
  color: #aebdce;
  font-size: 0.82rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-24px, 18px, 0);
  }
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroBackground {
  from {
    background-position: center, 0% 0%, 100% 100%, center right;
  }

  to {
    background-position: center, 8% 12%, 88% 92%, center center;
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes accentSweep {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes mutedBackground {
  from {
    background-position: 0 0, center, center;
  }

  to {
    background-position: 84px 0, center, center;
  }
}

@keyframes accentBackground {
  from {
    background-position: center, 0% 0%, 100% 100%, right 6% center;
  }

  to {
    background-position: center, 10% 6%, 90% 96%, right 3% center;
  }
}

@keyframes footerBackground {
  from {
    background-position: center, 0% 0%, right 8% top 56px;
  }

  to {
    background-position: center, 8% 10%, right 6% top 68px;
  }
}

@media (max-width: 900px) {
  .nav,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .faq-layout,
  .split,
  .steps,
  .features,
  .stats,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    background-size: auto, 120% 120%, 120% 120%, cover;
    background-position: center, 0% 0%, 100% 100%, right center;
  }

  .section-accent {
    background-size: auto, 125% 125%, 125% 125%, 520px auto;
    background-position: center, 0% 0%, 100% 100%, right -210px center;
  }

  .faq-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq-sidebar .kicker {
    grid-column: 1 / -1;
  }

  .faq-cta {
    grid-template-columns: 1fr;
  }

  .faq-cta .button {
    width: fit-content;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .brand img {
    width: 220px;
  }

  .nav {
    gap: 16px;
    min-height: 76px;
  }

  .nav-links {
    gap: 8px;
    padding-bottom: 6px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 64px 0 48px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.91) 54%, rgba(244, 249, 248, 0.82) 100%),
      linear-gradient(145deg, rgba(217, 154, 30, 0.18) 0 10%, transparent 10% 100%),
      linear-gradient(325deg, transparent 0 58%, rgba(47, 138, 100, 0.16) 58% 100%),
      url("assets/home-equity-hero.png") center top / cover no-repeat;
    background-position: center, 0% 0%, 100% 100%, center top;
  }

  h1 {
    font-size: 2.75rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .faq-sidebar a {
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .faq-content {
    gap: 44px;
  }

  .faq-cta {
    padding: 22px;
  }

  .button,
  .faq-cta .button {
    width: 100%;
  }

  .quote-card,
  .panel,
  .step,
  .feature,
  .stat,
  .use-cases article {
    padding: 22px;
  }

  .trust-row span {
    width: 100%;
  }

  .site-footer {
    padding-top: 46px;
    background-size: auto, 120% 120%, 300px auto;
    background-position: center, 0% 0%, right -120px top 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand img {
    width: 220px;
  }
}

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