.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 17vh 2rem 4vh;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(17, 24, 39, 0.28) 0%,
      rgba(17, 24, 39, 0.54) 48%,
      rgba(17, 24, 39, 0.88) 100%
    ),
    radial-gradient(
      circle at 50% 28%,
      rgba(212, 175, 55, 0.055),
      transparent 38%
    ),
    url("../images/moat-background.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), var(--hm-bg));
  pointer-events: none;
}

.hero-background-motif {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background-image: url("../images/hated-moats-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  min-height: 79vh;
  min-height: 79svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.super-title {
  margin: 0 0 5rem;
  color: #7a7a7a;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: clamp(8px, 1.25vw, 18px);
  text-transform: uppercase;
  opacity: 0.42;
}

.hero-headline-story {
  margin: 0 0 6.4rem;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.1vw, 4.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.55);
}

.hero-headline-story span {
  display: inline-block;
}

.headline-white {
  color: #cfcfcf;
}

.headline-gold {
  color: #c7aa3d;
}

.hero-subtitle {
  max-width: 58ch;
  margin: 0 auto;
  color: #cccccc;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.8;
}

.hero-lead {
  display: block;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: #d8d8d8;
}

.accent-text {
  color: #c7aa3d;
  font-weight: 700;
}

.tagline {
  display: block;
  margin-top: 6.2rem;
  color: #b0b0b0;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5rem;
  padding-top: 0;
}

/* ================================
   Hero animation
   Matches section fade-in reveal style
   ================================ */

.hero-story-title,
.hero-line-one,
.hero-line-two,
.hero-story-subtitle,
.hero-story-buttons {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  animation: heroSectionReveal 950ms ease forwards;
  will-change: opacity, transform, filter;
}

.hero-story-title {
  animation-delay: 90ms;
}

.hero-line-one,
.hero-line-two {
  animation-delay: 190ms;
}

.hero-story-subtitle {
  animation-delay: 310ms;
}

.hero-story-buttons {
  animation-delay: 410ms;
}

@keyframes heroSectionReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }

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

/* What You Get */

.what-you-get-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(212, 175, 55, 0.06),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 82%,
      rgba(255, 103, 25, 0.035),
      transparent 30%
    ),
    var(--hm-bg);
}

.what-you-get-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 12%,
    black 78%,
    transparent
  );
}

.value-section-header {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  margin-bottom: 54px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--hm-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.value-lede {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--hm-muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.value-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.value-card {
  position: relative;
  min-height: 270px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 86% 10%,
      rgba(212, 175, 55, 0.085),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(22, 34, 56, 0.88), rgba(11, 18, 32, 0.96));
  box-shadow: var(--hm-shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    transparent 42%
  );
  opacity: 0.36;
}

.value-card::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.62),
    transparent
  );
  opacity: 0.55;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(
      circle at 86% 10%,
      rgba(212, 175, 55, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(22, 34, 56, 0.95), rgba(11, 18, 32, 0.98));
}

.value-card--featured {
  grid-column: span 6;
  min-height: 430px;
}

.value-card--wide {
  grid-column: span 6;
  min-height: 430px;
}

.value-card--third {
  grid-column: span 4;
}

.value-eyebrow {
  position: relative;
  margin: 0 0 20px;
  color: var(--hm-gold-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.value-card h3 {
  position: relative;
  max-width: 720px;
  margin: 0;
  color: var(--hm-text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.value-card--third h3 {
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
}

.value-card p:not(.value-eyebrow) {
  position: relative;
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--hm-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.value-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.value-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.075);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Analyses */

.analyses-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.analysis-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--hm-border);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(22, 34, 56, 0.82),
    rgba(11, 18, 32, 0.96)
  );
  box-shadow: var(--hm-shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.analysis-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.34);
  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(212, 175, 55, 0.09),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(22, 34, 56, 0.92), rgba(11, 18, 32, 0.98));
}

.analysis-tag {
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: var(--hm-gold-bright);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-card h4 {
  margin: 0;
  color: var(--hm-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.12;
}

.analysis-card p {
  margin: 16px 0 0;
  color: var(--hm-muted);
  font-size: 0.96rem;
}

.read-more {
  margin-top: auto;
  padding-top: 24px;
  color: var(--hm-gold-bright);
  font-weight: 800;
}

.cta-container {
  margin-top: 42px;
  text-align: center;
}

.cta-button-deep-dive {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--hm-gold-bright);
}

.cta-button-deep-dive:hover {
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.16);
}

.analysis-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.analysis-card--with-image {
  padding: 0;
  overflow: hidden;
  min-height: 430px;
}

.analysis-card--with-image .analysis-card-content {
  padding: 26px 28px 28px;
}

.analysis-thumbnail {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(212, 175, 55, 0.12),
      transparent 38%
    ),
    rgba(5, 7, 13, 0.38);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.analysis-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.analysis-card--with-image:hover .analysis-thumbnail img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.analysis-card--with-image .read-more {
  margin-top: auto;
}

/* About */

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

.about-content {
  padding: 46px;
  border: 1px solid var(--hm-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 0%, rgba(212, 175, 55, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(22, 34, 56, 0.86), rgba(11, 18, 32, 0.94));
  box-shadow: var(--hm-shadow-soft);
}

.about-content p {
  color: var(--hm-text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* CTA */

.cta-section {
  position: relative;
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(212, 175, 55, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, #111827, #0b1220);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cta-section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta-section p {
  max-width: 660px;
  margin: 18px auto 30px;
  color: var(--hm-muted);
  font-size: 1.06rem;
}

/* Responsive */

@media (max-width: 980px) {
  .value-grid,
  .analyses-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .value-card--featured,
  .value-card--wide,
  .value-card--third,
  .analysis-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .value-card {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .hero-headline-story {
    white-space: normal;
  }

  .hero-headline-story span {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    min-height: 92svh;
    align-items: flex-start;
    padding: 14vh 1.25rem 3rem;
  }

  .hero-content {
    min-height: auto;
    display: block;
  }

  .super-title {
    margin-bottom: 3.4rem;
    letter-spacing: 8px;
  }

  .hero-headline-story {
    margin-bottom: 3.4rem;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .tagline {
    margin-top: 3rem;
  }

  .hero-buttons {
    margin-top: 3rem;
  }

  .about-content {
    padding: 30px 22px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .hero-story-title,
  .hero-line-one,
  .hero-line-two,
  .hero-story-subtitle,
  .hero-story-buttons {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}
