:root {
  --hp-primary-dark: #0a1d3a;
  --hp-primary-gold: #c0986f;
  --hp-light-bg: #f7f7f5;
  --hp-dark-section: #07111f;
  --hp-hover-blue: #d8ae82;
  --hp-soft-gold-hover: #d8ae82;
  --hp-text-gray: #5b6472;
  --hp-line: #e5e2dc;
  --hp-surface: #fffdfa;
}

.home-preview {
  max-width: 1380px;
  margin: 0.7rem auto 0;
  padding: 0 1rem 2.5rem;
  color: var(--hp-primary-dark);
}

.home-preview section {
  border-radius: 20px;
}

.hp-hero {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: 1.4rem;
  padding: 1.8rem 2rem 1.9rem;
  background: linear-gradient(165deg, var(--hp-light-bg) 0%, #ffffff 56%);
  border: 1px solid var(--hp-line);
  box-shadow: 0 16px 42px rgba(10, 29, 58, 0.1);
}

.hp-hero-copy {
  padding-top: 0.35rem;
}

.hp-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(192, 152, 111, 0.55);
  background: rgba(192, 152, 111, 0.12);
  color: var(--hp-primary-gold);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.hp-hero-copy h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.01;
  letter-spacing: -0.02em;
}

.hp-hero-copy h1 span {
  color: var(--hp-primary-gold);
}

.hp-hero-copy > p {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  color: var(--hp-text-gray);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hp-hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hp-btn {
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
}

.hp-btn-primary {
  background: linear-gradient(135deg, #102a54 0%, var(--hp-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 29, 58, 0.28);
}

.hp-btn-ghost {
  background: #fff;
  color: var(--hp-primary-gold);
  border-color: rgba(192, 152, 111, 0.85);
}

.hp-btn-primary:hover {
  background: var(--hp-soft-gold-hover);
}

.hp-btn-ghost:hover {
  background: var(--hp-soft-gold-hover);
  border-color: var(--hp-soft-gold-hover);
  color: var(--hp-primary-dark);
}

.hp-mini-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--hp-text-gray);
  font-size: 0.74rem;
  font-weight: 600;
}

.hp-mini-points span {
  padding-left: 0.95rem;
  position: relative;
}

.hp-mini-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.43em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--hp-primary-gold);
}

.hp-hero-media {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  min-height: 350px;
  position: relative;
  box-shadow: 0 16px 34px rgba(10, 29, 58, 0.22);
}

.hp-floating-phone {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  width: 74px;
  height: 134px;
  border-radius: 20px;
  border: 3px solid var(--hp-primary-dark);
  background: linear-gradient(165deg, var(--hp-light-bg) 0%, #e8d6c2 52%, var(--hp-primary-gold) 100%);
  box-shadow: 0 8px 20px rgba(5, 23, 71, 0.4);
}

.hp-floating-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(10, 29, 58, 0.8);
}

.hp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(216, 174, 130, 0.5) 0%, transparent 34%),
    radial-gradient(circle at 75% 65%, rgba(192, 152, 111, 0.6) 0%, transparent 32%),
    linear-gradient(145deg, var(--hp-primary-dark) 0%, var(--hp-dark-section) 100%);
}

.hp-services,
.hp-featured,
.hp-blog,
.hp-process,
.hp-social-proof {
  margin-top: 1.05rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--hp-line);
}

.hp-services {
  text-align: center;
}

.hp-section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-primary-gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.hp-services h2,
.hp-featured h2,
.hp-process h2,
.hp-why h2,
.hp-cta h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.hp-service-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.hp-service-card {
  border: 1px solid #ece7df;
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--hp-light-bg) 100%);
  display: grid;
  grid-template-columns: 2.45rem 1fr;
  column-gap: 0.72rem;
  row-gap: 0.2rem;
  text-align: left;
}

.hp-service-icon {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(192, 152, 111, 0.55);
  border-radius: 11px;
  color: var(--hp-primary-dark);
  display: inline-grid;
  place-items: center;
  background: rgba(192, 152, 111, 0.14);
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
}

.hp-service-icon svg {
  width: 1.38rem;
  height: 1.38rem;
}

.hp-service-icon img {
  width: 1.38rem;
  height: 1.38rem;
  object-fit: contain;
  display: block;
}

.hp-service-card h3 {
  margin: 0.62rem 0 0;
  font-size: 0.92rem;
  line-height: 1.26;
  grid-column: 2;
}

.hp-service-card p {
  margin: 0.48rem 0 0;
  color: var(--hp-text-gray);
  font-size: 0.8rem;
  line-height: 1.4;
  grid-column: 2;
}

.hp-service-card a {
  margin-top: 0.62rem;
  display: inline-block;
  text-decoration: none;
  color: var(--hp-primary-gold);
  font-size: 0.8rem;
  font-weight: 700;
  grid-column: 2;
}

.hp-service-card a:hover {
  color: var(--hp-soft-gold-hover);
}

.hp-stats {
  margin-top: 1.05rem;
  background: linear-gradient(115deg, var(--hp-dark-section) 0%, var(--hp-primary-dark) 70%, #0e284e 100%);
  border: 1px solid #13294a;
  padding: 0.85rem 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.hp-stats article {
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0.05rem 0.5rem 0.05rem 0.2rem;
}

.hp-stats article:last-child {
  border-right: 0;
}

.hp-stats strong {
  display: block;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hp-stats span {
  color: rgba(235, 243, 255, 0.92);
  font-size: 0.78rem;
  line-height: 1.3;
}

.hp-why {
  margin-top: 1.05rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 0;
}

.hp-why-has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hp-why-has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 14, 28, 0.06) 35%, rgba(6, 14, 28, 0.45) 100%);
  z-index: 1;
}

.hp-why-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 20% 20%, rgba(216, 174, 130, 0.5) 0%, transparent 34%),
    radial-gradient(circle at 75% 65%, rgba(192, 152, 111, 0.6) 0%, transparent 32%),
    linear-gradient(145deg, var(--hp-primary-dark) 0%, var(--hp-dark-section) 100%);
}

.hp-why-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(35%, 520px);
  max-width: 35%;
  min-height: 340px;
  padding: 1.2rem 1.3rem 1.35rem;
  background: linear-gradient(90deg, rgba(255, 253, 250, 0.97) 0%, rgba(255, 253, 250, 0.92) 58%, rgba(255, 253, 250, 0.46) 84%, rgba(255, 253, 250, 0) 100%);
}

.hp-why-copy > * {
  max-width: 100%;
}

.hp-why-copy ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem 0.9rem;
}

.hp-why-copy li {
  position: relative;
  padding-left: 1rem;
  color: var(--hp-text-gray);
  font-size: clamp(0.85rem, 0.6vw, 0.95rem);
  line-height: 1.5;
}

.hp-why-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--hp-primary-gold);
}

.hp-featured-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.hp-featured {
  text-align: center;
}

.hp-featured-card {
  border: 1px solid #ece7df;
  border-radius: 12px;
  padding: 0.45rem;
  background: #fff;
}

.hp-featured-media {
  border-radius: 9px;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.hp-featured-fallback {
  background: linear-gradient(135deg, #e9ddce 0%, #d8ae82 45%, #b88b5e 100%);
}

.hp-featured-card h3 {
  margin: 0.52rem 0 0;
  font-size: 0.84rem;
  line-height: 1.25;
}

.hp-featured-card a {
  margin-top: 0.35rem;
  display: inline-block;
  color: var(--hp-primary-gold);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.hp-featured-card a:hover {
  color: var(--hp-soft-gold-hover);
}

.hp-blog h2 {
  margin: 0.4rem 0 0;
}

.hp-blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hp-blog-view-all {
  text-decoration: none;
  color: var(--hp-primary-gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.hp-blog-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 0.72rem;
}

.hp-blog-feature-card {
  border: 1px solid #ece7df;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--hp-light-bg) 100%);
  display: grid;
  grid-template-rows: 230px 1fr;
}

.hp-blog-feature-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-blog-fallback {
  background:
    radial-gradient(circle at 22% 22%, rgba(216, 174, 130, 0.48) 0%, transparent 38%),
    linear-gradient(145deg, var(--hp-primary-dark) 0%, #15335f 100%);
}

.hp-blog-feature-body {
  padding: 0.82rem;
  display: grid;
  gap: 0.48rem;
}

.hp-blog-meta {
  margin: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8f6f4d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hp-blog-feature-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.hp-blog-feature-body p {
  margin: 0;
  color: var(--hp-text-gray);
  font-size: 0.86rem;
  line-height: 1.48;
}

.hp-blog-feature-body a {
  justify-self: flex-start;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hp-primary-gold);
}

.hp-blog-feature-body a:hover {
  color: #a87746;
}

.hp-blog-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hp-blog-side-card {
  border: 1px solid #ece7df;
  border-radius: 12px;
  padding: 0.45rem;
  background: #fff;
}

.hp-blog-side-media {
  border-radius: 9px;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.hp-blog-side-body h3 {
  margin: 0.52rem 0 0;
  font-size: 0.84rem;
  line-height: 1.25;
}

.hp-blog-side-body a {
  margin-top: 0.35rem;
  display: inline-block;
  color: var(--hp-primary-gold);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.hp-blog-side-body a:hover {
  color: var(--hp-soft-gold-hover);
}

.hp-process {
  background: linear-gradient(125deg, var(--hp-dark-section) 0%, var(--hp-primary-dark) 60%, #102a54 100%);
  border-color: #13294a;
  color: #fff;
}

.hp-process .hp-section-kicker {
  color: var(--hp-soft-gold-hover);
}

.hp-process h2 {
  color: #fff;
}

.hp-process-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.hp-process-grid article {
  border: 1px solid rgba(180, 204, 255, 0.35);
  border-radius: 12px;
  padding: 0.7rem;
}

.hp-step-number {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--hp-primary-dark);
  font-weight: 800;
  font-size: 0.86rem;
}

.hp-process-grid h3 {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.hp-process-grid p {
  margin: 0.35rem 0 0;
  font-size: 0.79rem;
  color: rgba(229, 239, 255, 0.95);
  line-height: 1.35;
}

.hp-social-proof {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.7rem;
}

.hp-testimonial,
.hp-partners {
  border: 1px solid #dfebff;
  border-radius: 14px;
  padding: 1rem;
  background: #fdfefe;
}

.hp-testimonial blockquote {
  margin: 0.6rem 0 0;
  color: #344969;
  font-size: 0.94rem;
  line-height: 1.6;
}

.hp-quote-author {
  margin: 0.65rem 0 0;
  color: #5d7090;
  font-size: 0.8rem;
}

.hp-partner-grid {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hp-partner-grid span {
  border: 1px solid #e8e1d8;
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.75rem;
  color: var(--hp-primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.hp-cta {
  margin-top: 1.05rem;
  background: linear-gradient(120deg, var(--hp-dark-section) 0%, var(--hp-primary-dark) 65%, #102a54 100%);
  color: #fff;
  border: 1px solid #13294a;
  padding: 1.15rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.hp-cta p {
  margin: 0.4rem 0 0;
  color: rgba(237, 243, 255, 0.97);
}

.hp-cta-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hp-cta .hp-btn-primary {
  background: var(--hp-primary-gold);
  color: var(--hp-primary-dark);
}

.hp-cta .hp-btn-ghost {
  border-color: rgba(216, 174, 130, 0.9);
  color: #fff;
  background: transparent;
}

.hp-cta .hp-btn-primary:hover {
  background: var(--hp-soft-gold-hover);
}

.hp-cta .hp-btn-ghost:hover {
  background: rgba(216, 174, 130, 0.2);
  color: #fff;
}

@media (max-width: 1200px) {
  .hp-service-grid,
  .hp-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-preview {
    padding: 0 0.7rem 2rem;
  }

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

  .hp-why {
    min-height: 0;
  }

  .hp-why-copy {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 1.05rem;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.95) 0%, rgba(255, 253, 250, 0.88) 100%);
  }

  .hp-hero {
    padding: 1.15rem;
  }

  .hp-hero-copy {
    padding-top: 0;
  }

  .hp-floating-phone {
    width: 60px;
    height: 112px;
  }

  .hp-service-grid,
  .hp-featured-grid,
  .hp-stats,
  .hp-why-copy ul,
  .hp-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-blog-layout {
    grid-template-columns: 1fr;
  }

  .hp-blog-side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.7rem;
  }
}

@media (max-width: 640px) {
  .hp-service-grid,
  .hp-featured-grid,
  .hp-stats,
  .hp-why-copy ul,
  .hp-process-grid {
    grid-template-columns: 1fr;
  }

  .hp-blog-side-grid {
    grid-template-columns: 1fr;
  }

  .hp-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
