/* Homepage premium sections — scoped to .hp (header/footer unchanged) */

/* Scoped homepage — does not style .site-header or .site-footer */

.hp {
  --hp-white: #ffffff;
  --hp-gray-50: #f8f9fb;
  --hp-gray-100: #f5f7fa;
  --hp-gray-200: #e8ecf1;
  --hp-gray-400: #94a3b8;
  --hp-gray-600: #475569;
  --hp-gray-900: #0f172a;
  --hp-indigo: #4f46e5;
  --hp-indigo-light: #eef2ff;
  --hp-indigo-muted: rgba(79, 70, 229, 0.08);
  --hp-radius-sm: 12px;
  --hp-radius: 20px;
  --hp-radius-lg: 24px;
  --hp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --hp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --hp-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --hp-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --hp-section: clamp(4rem, 8vw, 6.5rem);
  --hp-container: min(100% - 2.5rem, 1180px);
  font-family: var(--hp-font);
  color: var(--hp-gray-900);
  background: var(--hp-white);
  overflow-x: hidden;
}

.hp *,
.hp *::before,
.hp *::after { box-sizing: border-box; }

.hp a.hp-btn,
.hp a.hp-service-card,
.hp a.hp-case-card {
  text-decoration: none;
  color: inherit;
}

.hp a.hp-btn--primary { color: #fff; }
.hp a.hp-btn--primary:hover { color: #fff; }
.hp a.hp-service-link { color: var(--hp-indigo); }
.hp a.hp-service-link:hover { color: #4338ca; }

.hp-container {
  width: var(--hp-container);
  margin-inline: auto;
}

.hp-section {
  padding-block: var(--hp-section);
}

.hp-section--muted {
  background: var(--hp-gray-50);
}

.hp-section--soft {
  background: linear-gradient(180deg, var(--hp-gray-100) 0%, var(--hp-white) 100%);
}

/* Typography */
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-indigo);
  background: var(--hp-indigo-muted);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hp-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--hp-gray-900);
}

.hp-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.hp-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--hp-gray-600);
  margin: 0 0 2rem;
  max-width: 52ch;
}

.hp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.hp-section-head .hp-lead {
  margin-inline: auto;
}

/* Buttons */
.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.hp-btn--primary {
  background: var(--hp-indigo);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.hp-btn--primary:hover {
  background: #4338ca;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.hp-btn--secondary {
  background: var(--hp-white);
  color: var(--hp-gray-900);
  border: 1px solid var(--hp-gray-200);
  box-shadow: var(--hp-shadow-sm);
}

.hp-btn--secondary:hover {
  border-color: var(--hp-indigo);
  color: var(--hp-indigo);
}

.hp-btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Reveal */
.hp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-reveal-delay-1 { transition-delay: 0.08s; }
.hp-reveal-delay-2 { transition-delay: 0.16s; }
.hp-reveal-delay-3 { transition-delay: 0.24s; }

/* —— Hero —— */
.hp-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--hp-white);
  position: relative;
}

.hp-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hp-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .hp-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
}

.hp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hp-gray-200);
}

.hp-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hp-trust-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-gray-900);
}

.hp-trust-item span {
  font-size: 0.8rem;
  color: var(--hp-gray-600);
  font-weight: 500;
}

/* Dashboard mockup */
.hp-mockup {
  background: var(--hp-gray-100);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--hp-shadow-lg);
}

.hp-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--hp-white);
  border-radius: var(--hp-radius-sm);
  margin-bottom: 0.75rem;
}

.hp-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hp-gray-200);
}

.hp-mockup-dot:nth-child(1) { background: #fca5a5; }
.hp-mockup-dot:nth-child(2) { background: #fcd34d; }
.hp-mockup-dot:nth-child(3) { background: #86efac; }

.hp-mockup-body {
  background: var(--hp-white);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  min-height: 320px;
}

.hp-mockup-body img {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 420px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hp-mockup-float {
  position: absolute;
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--hp-shadow);
  font-size: 0.8rem;
  font-weight: 600;
}

.hp-mockup-wrap {
  position: relative;
}

.hp-mockup-float--1 {
  bottom: 12%;
  left: -4%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hp-mockup-float--2 {
  top: 8%;
  right: -2%;
  color: #059669;
}

.hp-mockup-float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hp-indigo-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-indigo);
}

/* —— Brand trust —— */
.hp-trust-bar {
  padding: 2.5rem 0;
  border-block: 1px solid var(--hp-gray-200);
  background: var(--hp-gray-50);
}

.hp-trust-bar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.hp-trust-bar-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-gray-600);
}

.hp-stats-inline--compact {
  gap: 1.5rem 2rem;
}

.hp-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .hp-tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .hp-tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hp-tech-grid { grid-template-columns: repeat(6, 1fr); }
}

.hp-tech-grid--section {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .hp-tech-grid--section { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .hp-tech-grid--section { grid-template-columns: repeat(6, 1fr); }
}

.hp-tech-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-sm);
  box-shadow: var(--hp-shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hp-tech-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow);
  border-color: rgba(79, 70, 229, 0.25);
}

.hp-tech-item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.85;
}

.hp-tech-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hp-gray-900);
  line-height: 1.2;
}

.hp-tech-item--large {
  padding: 0.85rem 1rem;
}

.hp-tech-item--large img {
  width: 32px;
  height: 32px;
}

.hp-tech-item--large span {
  font-size: 0.875rem;
}

.hp-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.hp-stat-block strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hp-stat-block span {
  font-size: 0.85rem;
  color: var(--hp-gray-600);
}

/* —— Services —— */
.hp-services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hp-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hp-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.hp-service-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius);
  padding: 0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.hp-service-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-service-card-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--hp-gray-100);
}

.hp-service-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hp-service-card:hover .hp-service-card-photo img {
  transform: scale(1.04);
}

.hp-service-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--hp-shadow);
  transform: translateY(-4px);
  color: inherit;
}

.hp-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hp-service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hp-gray-600);
  margin: 0 0 1rem;
}

.hp-service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* —— Process —— */
.hp-process {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hp-process { grid-template-columns: repeat(4, 1fr); }
}

.hp-process-step {
  position: relative;
  padding: 1.75rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow-sm);
}

.hp-section--muted .hp-process-step {
  background: var(--hp-white);
}

.hp-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-indigo);
  background: var(--hp-indigo-muted);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.hp-process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hp-process-step p {
  font-size: 0.875rem;
  color: var(--hp-gray-600);
  margin: 0;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .hp-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    right: -0.75rem;
    width: 1.25rem;
    height: 2px;
    background: var(--hp-gray-200);
    z-index: 2;
  }
}

/* —— Benefits —— */
.hp-benefits-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hp-benefits-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hp-benefit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-benefit-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hp-benefit-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.hp-benefit-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.hp-benefit-list span {
  font-size: 0.875rem;
  color: var(--hp-gray-600);
  line-height: 1.5;
}

.hp-benefits-visual {
  background: var(--hp-gray-100);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-lg);
  padding: 2rem;
  box-shadow: var(--hp-shadow);
}

.hp-metric-cards {
  display: grid;
  gap: 1rem;
}

.hp-metric-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-sm);
  padding: 1.25rem 1.5rem;
}

.hp-metric-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hp-indigo);
  letter-spacing: -0.02em;
}

.hp-metric-card span {
  font-size: 0.85rem;
  color: var(--hp-gray-600);
}

/* —— Portfolio —— */
.hp-portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hp-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

.hp-case-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.hp-case-card:hover {
  box-shadow: var(--hp-shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.hp-case-img {
  aspect-ratio: 16/10;
  background: var(--hp-gray-100);
  overflow: hidden;
}

.hp-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hp-case-card:hover .hp-case-img img {
  transform: scale(1.03);
}

.hp-case-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.hp-case-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-indigo);
  margin-bottom: 0.5rem;
  display: block;
}

.hp-case-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hp-case-body p {
  font-size: 0.875rem;
  color: var(--hp-gray-600);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.hp-case-result {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* —— Testimonials —— */
.hp-testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .hp-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.hp-testimonial {
  background: var(--hp-white);
  border: 1px solid var(--hp-gray-200);
  border-radius: var(--hp-radius);
  padding: 1.75rem;
  box-shadow: var(--hp-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hp-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hp-testimonial blockquote {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hp-gray-600);
  flex: 1;
}

.hp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hp-gray-200);
}

.hp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-indigo), #7c3aed);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.hp-testimonial-author span {
  font-size: 0.8rem;
  color: var(--hp-gray-600);
}

/* —— FAQ —— */
.hp-faq {
  max-width: 720px;
  margin: 0 auto;
}

.hp-faq-item {
  border-bottom: 1px solid var(--hp-gray-200);
}

.hp-faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--hp-gray-900);
}

.hp-faq-item summary::-webkit-details-marker { display: none; }

.hp-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--hp-indigo);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hp-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.hp-faq-item p {
  padding: 0 0 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hp-gray-600);
}

/* —— Final CTA —— */
.hp-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  border-radius: var(--hp-radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.25);
}

.hp-cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.hp-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hp-cta a.hp-btn--primary,
.hp-cta .hp-btn--primary {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hp-cta a.hp-btn--primary:hover,
.hp-cta .hp-btn--primary:hover {
  background: #f8fafc;
  color: #3730a3;
  transform: translateY(-2px);
}

.hp-cta .hp-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hp-cta .hp-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.hp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* —— Responsive & fixes —— */
@media (max-width: 959px) {
  .hp-mockup-float {
    display: none;
  }

  .hp-mockup-wrap {
    margin-top: 0.5rem;
  }

  .hp-hero {
    padding-bottom: 3rem;
  }

  .hp-trust-row {
    gap: 1rem 1.5rem;
  }

  .hp-trust-bar-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hp-stats-inline--compact {
    justify-content: center;
    width: 100%;
  }

  .hp-process-step:not(:last-child)::after {
    display: none;
  }

  .hp-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-cta .hp-btn {
    width: 100%;
  }
}

@media (max-width: 639px) {
  .hp-container {
    width: min(100% - 1.5rem, 1180px);
  }

  .hp-h1 {
    font-size: 2rem;
  }

  .hp-trust-item strong {
    font-size: 1.25rem;
  }

  .hp-stat-block strong {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hp-service-card:hover,
  .hp-case-card:hover {
    transform: none;
  }
}
