:root {
  --navy: #0e2344;
  --navy-deep: #07162d;
  --navy-soft: #17365f;
  --gold: #c89b2c;
  --gold-bright: #e0ad2c;
  --light: #f7f9fc;
  --white: #ffffff;
  --gray: #5f6b7a;
  --line: #dfe5ee;
  --shadow: 0 24px 70px rgba(14, 35, 68, 0.13);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.12;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 80px;
  border-bottom: 1px solid rgba(14, 35, 68, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 36px;
}

.brand img {
  width: 270px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding-block: 8px;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(200, 155, 44, 0.24);
  font-size: 0.9rem;
  font-weight: 800;
  gap: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--gold-bright);
  box-shadow: 0 14px 34px rgba(200, 155, 44, 0.32);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("assets/cofiad-hero.png") center right / cover no-repeat;
  animation: heroReveal 900ms ease both;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 45, 0.98) 0%, rgba(7, 22, 45, 0.93) 38%, rgba(7, 22, 45, 0.47) 66%, rgba(7, 22, 45, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 22, 45, 0.32), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 110px 90px;
}

.hero-content > * {
  max-width: 680px;
  animation: contentUp 700ms ease both;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-content h1 span {
  color: var(--gold-bright);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 630px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.6vw, 1.17rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  padding-block: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  margin-top: 52px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  font-weight: 600;
  gap: 18px 28px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-points span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 155, 44, 0.15);
}

.trust-strip {
  position: relative;
  z-index: 3;
  color: var(--white);
  background: var(--navy);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-grid div {
  display: grid;
  padding: 30px 6%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  gap: 2px;
}

.trust-grid div:first-child {
  padding-left: 0;
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong {
  color: var(--gold);
  font-size: 1rem;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.section {
  padding-block: 110px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-heading h2,
.product-copy h2,
.cta-card h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.product-copy > p,
.cta-card > div > p:last-child {
  color: var(--gray);
}

.benefits {
  background: var(--light);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  position: relative;
  min-height: 340px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.benefit-card:hover {
  border-color: rgba(200, 155, 44, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.featured-card {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.featured-card p {
  color: rgba(255, 255, 255, 0.7);
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 65px;
  place-items: center;
  border-radius: 17px;
  color: var(--gold);
  background: rgba(200, 155, 44, 0.12);
}

.card-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-number {
  position: absolute;
  top: 30px;
  right: 32px;
  color: rgba(14, 35, 68, 0.16);
  font-size: 2.6rem;
  font-weight: 800;
}

.featured-card .card-number {
  color: rgba(255, 255, 255, 0.12);
}

.benefit-card h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.benefit-card > p:last-child {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.featured-card > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.product-view {
  overflow: hidden;
  background: var(--white);
}

.product-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 72px;
}

.product-copy > p {
  margin-bottom: 28px;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.dark-link {
  color: var(--navy);
  border-color: rgba(14, 35, 68, 0.28);
  gap: 12px;
}

.dashboard {
  position: relative;
  width: min(740px, 100%);
  overflow: hidden;
  border: 1px solid rgba(14, 35, 68, 0.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 34px 90px rgba(14, 35, 68, 0.2);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.dashboard::before {
  position: absolute;
  z-index: -1;
  inset: 20% -16% -18% 16%;
  border-radius: 50%;
  content: "";
  background: rgba(200, 155, 44, 0.22);
  filter: blur(55px);
}

.dashboard-top {
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  gap: 16px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9dee7;
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 0.62rem;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 410px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 24px;
  background: var(--navy);
  gap: 22px;
}

.nav-mark {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 9px;
  color: var(--navy);
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-nav i {
  width: 20px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.dashboard-nav i.active {
  background: var(--gold);
}

.dashboard-content {
  padding: 30px;
  background: #f7f9fc;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  gap: 14px;
}

.metric,
.chart-panel {
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  background: var(--white);
}

.metric {
  display: grid;
  padding: 18px;
  gap: 3px;
}

.metric span,
.metric small,
.panel-title span {
  color: #8590a0;
  font-size: 0.62rem;
}

.metric strong {
  font-size: 1.05rem;
}

.metric small {
  color: #429272;
}

.chart-panel {
  padding: 22px 24px 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: 0.76rem;
}

.bars {
  display: flex;
  align-items: end;
  height: 180px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 44px, rgba(14, 35, 68, 0.055) 45px);
  gap: 8%;
}

.bars i {
  width: 9%;
  height: var(--height);
  border-radius: 6px 6px 0 0;
  background: #cbd4e0;
}

.bars i.current {
  background: var(--gold);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 0;
  color: #9ba4b1;
  font-size: 0.58rem;
}

.modules {
  background: var(--light);
}

.heading-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  max-width: none;
  gap: 80px;
}

.heading-split h2 {
  margin-bottom: 0;
}

.heading-split > p {
  margin-bottom: 4px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.module-card {
  min-height: 270px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.module-card:hover {
  position: relative;
  z-index: 1;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-5px);
}

.module-card > span {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
}

.module-card h3 {
  margin-bottom: 13px;
  font-size: 1.08rem;
}

.module-card p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.78rem;
}

.module-card:hover p {
  color: rgba(255, 255, 255, 0.68);
}

.module-highlight {
  color: var(--white);
  background: var(--navy);
}

.module-highlight p {
  color: rgba(255, 255, 255, 0.68);
}

.reviews {
  overflow: hidden;
  background: var(--light);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 74px;
}

.reviews-intro > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--gray);
}

.google-rating {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 18px;
}

.google-rating-score {
  color: var(--navy);
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.review-stars,
.review-card-stars {
  color: var(--gold-bright);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.google-rating p {
  margin: 6px 0 0;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
}

.review-button {
  min-height: 50px;
  font-size: 0.82rem;
}

.review-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(14, 35, 68, 0.1);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.review-panel::before {
  position: absolute;
  z-index: 0;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(200, 155, 44, 0.25);
  border-radius: 50%;
  content: "";
}

.review-panel-top,
.review-list,
.review-status {
  position: relative;
  z-index: 1;
}

.review-panel-top {
  display: flex;
  align-items: center;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: 9px;
}

.review-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 155, 44, 0.14);
}

.review-list {
  display: grid;
  max-height: none;
  margin-top: 20px;
  overflow: visible;
  padding-right: 4px;
  gap: 14px;
}

.review-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfe;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.review-card-head strong,
.review-card-head div > span {
  display: block;
}

.review-card-head strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.review-card-head div > span {
  margin-top: 1px;
  color: #8290a0;
  font-size: 0.67rem;
}

.review-card-stars {
  margin-left: auto;
  font-size: 0.76rem;
  white-space: nowrap;
}

.review-card blockquote {
  margin: 18px 0 0;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

.review-status {
  margin: 17px 0 0;
  color: #8190a0;
  font-size: 0.7rem;
}

.implementation {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.implementation::after {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(200, 155, 44, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(200, 155, 44, 0.035), 0 0 0 160px rgba(200, 155, 44, 0.02);
}

.implementation .container {
  position: relative;
  z-index: 2;
}

.light-heading {
  max-width: 900px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.steps article {
  padding: 38px 32px 10px 0;
}

.steps article + article {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 55px;
  place-items: center;
  border: 1px solid rgba(200, 155, 44, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

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

.cta-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  padding: 68px;
  border-radius: 30px;
  background: var(--light);
  box-shadow: inset 0 0 0 1px var(--line);
  gap: 70px;
}

.cta-card h2 {
  margin-bottom: 15px;
}

.cta-card p {
  margin-bottom: 0;
}

.cta-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.cta-actions .button {
  width: 100%;
}

.cta-actions > span {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-footer {
  padding-block: 34px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-inner img {
  width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.footer-inner p {
  margin: 0;
  color: var(--gray);
  font-size: 0.72rem;
}

.footer-inner p:last-child {
  margin-left: auto;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes contentUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .hero {
    min-height: 760px;
  }

  .hero-image {
    background-position: 64% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 22, 45, 0.98), rgba(7, 22, 45, 0.84) 62%, rgba(7, 22, 45, 0.48));
  }

  .product-layout,
  .heading-split,
  .cta-card,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .product-layout {
    gap: 56px;
  }

  .dashboard {
    margin-inline: auto;
    transform: none;
  }

  .heading-split {
    gap: 24px;
  }

  .reviews-layout {
    gap: 44px;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps article:nth-child(3) {
    border-left: 0;
  }

  .cta-card {
    padding: 54px;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1180px);
    --radius: 20px;
  }

  .site-header {
    height: 70px;
  }

  .brand img {
    width: 190px;
    height: 44px;
  }

  .button-small {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 0.7rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 22, 45, 0.98), rgba(7, 22, 45, 0.82)),
      linear-gradient(0deg, rgba(7, 22, 45, 0.75), transparent);
  }

  .hero-content {
    padding-block: 82px 64px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-points {
    margin-top: 40px;
  }

  .trust-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 78px;
  }

  .benefit-card {
    min-height: 300px;
  }

  .dashboard-body {
    grid-template-columns: 46px 1fr;
  }

  .dashboard-content {
    padding: 16px;
  }

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

  .metric:nth-child(2),
  .metric:nth-child(3) {
    display: none;
  }

  .bars {
    height: 140px;
    gap: 7%;
  }

  .module-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 235px;
  }

  .module-card > span {
    margin-bottom: 48px;
  }

  .steps article,
  .steps article + article {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .steps span {
    margin-bottom: 28px;
  }

  .cta-card {
    padding: 38px 25px;
  }

  .review-panel {
    padding: 22px;
  }

  .review-card {
    padding: 18px;
  }

  .review-card-stars {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner p:last-child {
    margin-left: 0;
  }
}
