/* ==========================================================================
   HOMEPAGE DESIGN SYSTEM & STYLES (payroll.sg)
   Architecture: Pure Modern CSS, Fluid Desktop Layout (60-80px left/right margins)
   Visual Source of Truth: Reference Screenshot
   Typography: Fluid clamp(), High-contrast dark SaaS palette
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg-dark: #02080d;
  --bg-dark-secondary: #05101a;
  --bg-card: #081523;
  --bg-card-hover: #0d1e30;
  --bg-card-subtle: rgba(8, 21, 35, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --border-color-glow: rgba(34, 197, 94, 0.3);

  --accent-green: #22c55e;
  --accent-green-hover: #16a34a;
  --accent-green-bg: rgba(34, 197, 94, 0.1);
  --accent-green-glow: rgba(34, 197, 94, 0.25);

  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.1);

  --accent-blue: #38bdf8;
  --accent-blue-bg: rgba(56, 189, 248, 0.1);

  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  --bg-light: #ffffff;
  --border-light: #e2e8f0;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-handwriting: 'Caveat', cursive, 'Brush Script MT', cursive;

  --header-height: 72px;
  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --border-radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, body.homepage-body {
  font-family: var(--font-family);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Fluid Container (60-80px Margins on Desktop) --- */
.hp-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4.2vw, 80px);
  padding-right: clamp(20px, 4.2vw, 80px);
  box-sizing: border-box;
}

/* --- Standardized Typography --- */
.hp-title-card {
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem) !important; /* 17-19px */
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--text-white);
  margin-bottom: 4px;
}

.hp-desc-card {
  font-size: 1rem !important; /* 16px */
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--text-secondary);
}

.hp-section-heading {
  font-size: clamp(1.75rem, 2.3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hp-section-subheading {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.hp-text-center {
  text-align: center;
}
.hp-text-center .hp-section-subheading {
  margin-left: auto;
  margin-right: auto;
}

.hp-underline-green {
  position: relative;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: var(--accent-green);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* --- Buttons --- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem; /* 16px */
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.hp-btn-primary {
  background-color: #ffffff;
  color: #02080d;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}
.hp-btn-primary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
  color: #000000;
}

.hp-btn-outline {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}
.hp-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.hp-btn-green {
  background-color: var(--accent-green);
  color: #02080d;
  font-weight: 700;
  border: 1px solid var(--accent-green);
}
.hp-btn-green:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.hp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(2, 8, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.hp-header.scrolled {
  background: rgba(2, 8, 13, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.hp-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hp-nav {
  display: none;
}

@media (min-width: 1024px) {
  .hp-nav {
    display: flex;
    align-items: center;
    gap: 36px;
  }
}

.hp-nav-link {
  font-size: 1rem; /* 16px */
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 8px 0;
}

.hp-nav-link:hover, .hp-nav-link.active {
  color: var(--text-white);
}

.hp-dropdown {
  position: relative;
}

.hp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--border-radius-md);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.hp-dropdown:hover .hp-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  font-size: 1rem; /* 16px */
  font-weight: 500;
  transition: all var(--transition-fast);
}

.hp-dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-white);
  padding-left: 16px;
}

.hp-dropdown-item i {
  color: var(--accent-green);
  font-size: 13px;
}

.hp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1023px) {
  .hp-header .hp-logo-img,
  .hp-mobile-drawer .hp-logo-img {
    height: 36px;
  }

  .hp-header-actions {
    gap: 0;
  }

  /* The drawer retains these actions, so keep the compact header tap-safe. */
  .hp-header-actions > .hp-btn {
    display: none;
  }
}

.hp-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white);
}

.hp-hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .hp-hamburger-btn {
    display: none;
  }
}

/* Mobile Drawer */
.hp-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-dark-secondary);
  border-left: 1px solid var(--border-color-hover);
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.hp-mobile-drawer.open {
  right: 0;
}

.hp-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.hp-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.hp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hp-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hp-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-drawer-link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.hp-drawer-link:hover {
  color: var(--text-white);
}

.hp-drawer-resources {
  border-bottom: 1px solid var(--border-color);
}

.hp-drawer-resources summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.hp-drawer-resources summary::-webkit-details-marker {
  display: none;
}

.hp-drawer-resources summary i {
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.hp-drawer-resources[open] summary {
  color: var(--text-white);
}

.hp-drawer-resources[open] summary i {
  transform: rotate(180deg);
}

.hp-drawer-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 8px 14px;
}

.hp-drawer-subnav .hp-drawer-link {
  font-size: 0.9375rem;
  padding: 8px 0;
  border-bottom: 0;
}

body.hp-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   SECTION 1: HERO SECTION (SLIDER BANNER)
   ========================================================================== */
.hp-hero-section {
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 24px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hp-hero-slider-track {
  position: relative;
  width: 100%;
}

.hp-hero-slide {
  display: none;
  width: 100%;
  animation: hpSlideFade 0.5s ease-in-out forwards;
}

.hp-hero-slide.active {
  display: block;
}

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

/* Hero Slider Navigation Arrows (No dots as requested) */
.hp-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hp-hero-arrow:hover {
  background: var(--accent-green);
  color: #02080d;
  border-color: var(--accent-green);
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.4);
}

.hp-hero-prev {
  left: 14px;
}

.hp-hero-next {
  right: 14px;
}

@media (min-width: 1400px) {
  .hp-hero-prev { left: 24px; }
  .hp-hero-next { right: 24px; }
}

@media (max-width: 768px) {
  .hp-hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .hp-hero-prev { left: 6px; }
  .hp-hero-next { right: 6px; }
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hp-hero-grid {
    grid-template-columns: 40% 60%;
    gap: 32px;
  }
}

.hp-hero-content {
  z-index: 2;
}

.hp-hero-h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 16px;
}

.hp-hero-handwritten-block {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  font-family: var(--font-handwriting);
  font-size: clamp(2.5rem, 4.1vw, 3.9rem);
  letter-spacing: 0.01em;
}

.hp-hero-work-underline {
  color: #ffffff;
  position: relative;
  display: inline-block;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--accent-green);
  text-underline-offset: 8px;
  text-decoration-thickness: 4px;
}

.hp-hero-subtitle-block {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.hp-hero-desc {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 520px;
}

.hp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hp-hero-badge i {
  color: var(--accent-green);
  font-size: 13px;
}

/* Hero Media: Singapore Skyline + Merlion seamlessly integrated */
.hp-hero-media {
  position: relative;
  width: 100%;
  height: clamp(260px, 34vw, 560px);
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

@media (max-width: 640px) {
  .hp-hero-media {
    height: 260px;
  }
}

.hp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #02080d 0%, rgba(2, 8, 13, 0.85) 18%, rgba(2, 8, 13, 0.2) 45%, transparent 70%),
              linear-gradient(180deg, transparent 80%, #02080d 100%);
  pointer-events: none;
}

/* ==========================================================================
   SECTION 2: PROBLEM (Payroll day again?)
   ========================================================================== */
.hp-problem-section {
  padding: 16px 0 6px;
}

.hp-problem-card {
  background: linear-gradient(90deg, rgba(58, 11, 27, 0.75) 0%, rgba(21, 15, 24, 0.90) 35%, rgba(8, 17, 24, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 28px 36px 32px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hp-problem-header-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  align-self: flex-start;
}

.hp-problem-tag {
  font-family: var(--font-handwriting);
  font-size: clamp(1.75rem, 2.2vw, 2.15rem);
  font-weight: 600;
  font-style: italic;
  color: #f6f1f3;
  display: block;
  line-height: 1.1;
}

.hp-problem-brush-underline {
  display: block;
  margin-top: 2px;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.hp-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 12px;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 640px) {
  .hp-problem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .hp-problem-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.hp-problem-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  position: relative;
}

@media (min-width: 1024px) {
  .hp-problem-col {
    padding: 0 20px;
  }

  .hp-problem-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 110px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

.hp-problem-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hp-problem-icon-wrap svg,
.hp-problem-icon-wrap img {
  max-width: 62px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hp-problem-icon-wrap i {
  font-size: 34px;
  color: #ff435f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-problem-col-title {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); /* 17-20px */
  font-weight: 650;
  color: #ffffff;
  line-height: 1.25;
  text-align: center;
  max-width: 160px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION 3: 8 FEATURE CARDS (4x2 GRID)
   ========================================================================== */
.hp-features-section {
  padding: clamp(32px, 5vw, 48px) 0;
  margin-top: 0;
}

.hp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hp-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .hp-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.hp-feature-card {
  background: #081219;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 22px 20px;
  min-height: 155px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  transition: all var(--transition-fast);
}

.hp-feature-card:hover {
  background: #0b1923;
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hp-feature-card {
    padding: 16px 14px;
    min-height: auto;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .hp-feature-card .hp-feature-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .hp-feature-card .hp-feature-icon-box svg,
  .hp-feature-card .hp-feature-icon-box img {
    max-width: 36px;
    max-height: 36px;
  }

  .hp-feature-info {
    min-width: 0;
  }

  .hp-feature-title,
  .hp-feature-desc {
    overflow-wrap: anywhere;
  }
}

.hp-feature-icon-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 8px;
  background: rgba(14, 28, 30, 0.85);
  border: 1px solid rgba(125, 177, 128, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-feature-icon-box svg,
.hp-feature-icon-box img {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hp-feature-icon-box i {
  font-size: 26px;
  color: #8da882;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-feature-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-feature-title {
  font-size: clamp(1rem, 1.15vw, 1.125rem); /* 16-18px */
  font-weight: 650;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hp-feature-desc {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 4: PAYROLL SHOWCASE & DASHBOARD
   ========================================================================== */
.hp-showcase-section {
  padding: 24px 0 28px;
}

.hp-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hp-showcase-grid {
    grid-template-columns: 24% 76%;
    gap: 32px;
  }
}

.hp-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.hp-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
}

.hp-checklist-item i {
  color: var(--accent-green);
  font-size: 13px;
}

.hp-showcase-link {
  color: var(--accent-green);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.hp-showcase-link:hover {
  color: var(--accent-green-hover);
  text-decoration: underline;
}

/* Right Dashboard Graphic (Clean and wide) */
.hp-dashboard-img-wrap {
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: var(--bg-card);
}

.hp-dashboard-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SECTION 5: WHY SMES CHOOSE PAYROLL.SG (FULL-WIDTH WHITE SECTION)
   ========================================================================== */
.hp-why-us-wrapper {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  padding: 40px 0 20px;
  margin-top: 24px;
}


.hp-why-us-heading {
  font-size: clamp(1.75rem, 2.3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 32px;
  text-align: center;
}

.hp-why-us-heading span {
  color: #16a34a;
}

.hp-why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 14px;
}

@media (min-width: 640px) {
  .hp-why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .hp-why-us-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .hp-why-col {
    padding: 0 28px;
    border-right: 1px solid #e2e8f0;
  }

  .hp-why-col:first-child {
    padding-left: 0;
  }

  .hp-why-col:last-child {
    padding-right: 0;
    border-right: none;
  }
}

.hp-why-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 18px;
  margin-bottom: 12px;
}

.hp-why-num {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hp-why-col h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.hp-why-col p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hp-why-us-wrapper {
    padding: 28px 0 16px;
  }
  .hp-why-us-heading {
    margin-bottom: 22px;
  }
  .hp-why-num {
    font-size: 2.25rem;
    margin-bottom: 6px;
  }
  .hp-why-icon-circle {
    width: 38px;
    height: 38px;
    font-size: 15px;
    margin-bottom: 8px;
  }
  .hp-why-col h3 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .hp-why-col p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
}

/* ==========================================================================
   SECTION 6: OUR APPROACH TO AI (ATTACHED TO FLOW)
   ========================================================================== */
.hp-ai-section {
  width: 100%;
  background: #ffffff;
  padding: 10px 0 48px;
}

.hp-ai-card {
  background: linear-gradient(135deg, #240b15 0%, #15111d 40%, #081d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 28px 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hp-ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hp-ai-grid {
    grid-template-columns: 58% 42%;
  }
}

.hp-ai-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hp-ai-icon-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  background: rgba(3, 8, 14, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .hp-ai-card {
    padding: 20px 18px;
  }
  .hp-ai-left {
    gap: 14px;
  }
  .hp-ai-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 17px;
  }
}

.hp-ai-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.hp-ai-heading {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 4px;
}

.hp-ai-sub {
  font-size: 1rem;
  color: var(--text-secondary);
}

.hp-ai-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-ai-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
}

.hp-ai-check-item i {
  color: var(--accent-green);
  font-size: 14px;
}

/* ==========================================================================
   SECTION 7: SIMPLE PRICING
   ========================================================================== */
.hp-pricing-section {
  padding: clamp(36px, 5vw, 56px) 0;
}

.hp-pricing-box-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .hp-pricing-box-container {
    grid-template-columns: 3fr 1.15fr;
    gap: 20px;
    align-items: stretch;
  }
}

.hp-pricing-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hp-pricing-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.hp-pricing-tier-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-md);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-fast);
}

.hp-pricing-tier-card:hover {
  background: var(--bg-card-hover);
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.hp-tier-range {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.hp-tier-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hp-tier-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.hp-tier-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hp-pricing-perks-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-md);
  padding: 24px 24px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.hp-pricing-perks-box:hover {
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hp-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hp-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
}

.hp-perk-item i {
  color: var(--accent-green);
  font-size: 13px;
}

.hp-pricing-footer-bar {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

/* ==========================================================================
   SECTION 8: BEFORE / AFTER SPLIT
   ========================================================================== */
.hp-comparison-section {
  padding: clamp(32px, 5vw, 48px) 0;
}

.hp-comparison-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  background: transparent;
  border: none;
}

@media (min-width: 1024px) {
  .hp-comparison-card {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.hp-comp-col {
  padding: 32px 32px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
}

@media (max-width: 640px) {
  .hp-comp-col {
    padding: 22px 18px;
  }
}

.hp-comp-before {
  background: linear-gradient(135deg, rgba(60, 15, 22, 0.85) 0%, rgba(20, 8, 12, 0.95) 100%);
}

.hp-comp-before:hover {
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

.hp-comp-after {
  background: linear-gradient(135deg, rgba(10, 45, 25, 0.85) 0%, rgba(6, 24, 15, 0.95) 100%);
}

.hp-comp-after:hover {
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.hp-comp-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-comp-before .hp-comp-heading {
  color: #f87171;
}

.hp-comp-after .hp-comp-heading {
  color: var(--accent-green);
}

.hp-comp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-comp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.hp-comp-before .hp-comp-item i {
  color: #ef4444;
}

.hp-comp-after .hp-comp-item i {
  color: var(--accent-green);
}

.hp-comp-arrow-badge {
  display: none;
}

@media (min-width: 1024px) {
  .hp-comp-arrow-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #02080d;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-white);
    font-size: 15px;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  }
}

/* ==========================================================================
   SECTION 9: TESTIMONIALS (HORIZONTAL MARQUEE CAROUSEL)
   ========================================================================== */
.hp-testimonials-section {
  padding: clamp(36px, 5vw, 56px) 0;
}

.hp-testimonials-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hp-testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: hpMarquee var(--marquee-duration, 40s) linear infinite;
}

.hp-testimonials-marquee:hover .hp-testimonials-track,
.hp-testimonials-marquee.paused .hp-testimonials-track {
  animation-play-state: paused;
}

@keyframes hpMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hp-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .hp-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hp-testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hp-testimonial-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  width: 290px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .hp-testimonial-card {
    width: 250px;
    min-height: 130px;
    padding: 18px 16px;
  }
}

.hp-testimonial-card:hover {
  position: relative;
  z-index: 10;
  background: var(--bg-card-hover);
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.hp-testimonial-quote-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent-green);
  font-family: Georgia, serif;
  margin-bottom: 6px;
}

.hp-testimonial-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.hp-testimonial-author {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hp-pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hp-dot:hover {
  background: #64748b;
  transform: scale(1.25);
}

.hp-dot.active {
  background: var(--accent-green);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

/* ==========================================================================
   SECTION 10: FINAL CTA BANNER
   ========================================================================== */
.hp-cta-section {
  padding: 16px 0 20px;
}

.hp-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .hp-cta-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.hp-cta-title {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 4px;
}

.hp-cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.hp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   FOOTER (REBUILT & COMPACT)
   ========================================================================== */
.hp-footer {
  background: #02060b;
  position: relative;
  border-top: 1px solid var(--border-color);
  padding: 36px 0 24px;
  overflow: hidden;
}

.hp-footer-bg-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.35;
  pointer-events: none;
}

.hp-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 11, 0.75) 0%, rgba(2, 6, 11, 0.98) 70%, #02060b 100%);
  pointer-events: none;
}

.hp-footer-inner {
  position: relative;
  z-index: 2;
}

.hp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hp-footer-grid {
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  }
}

.hp-footer-brand p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.5;
}

.hp-footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 14px;
}

.hp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-footer-link {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.hp-footer-link:hover {
  color: var(--text-white);
}

.hp-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hp-footer-bottom {
    flex-direction: row;
  }
}

.hp-scroll-top-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.hp-scroll-top-btn:hover {
  background: #ffffff;
  color: #02080d;
  transform: translateY(-2px);
}
