/* =========================================
   HOME PAGE — hp-* component styles
   Depends on: common.css (design tokens)
   ========================================= */

/* ── Page-level dark theme ────────────────────── */

body.is-home {
  background: var(--home-bg);
  color: var(--home-text);
}

/* Override header on home for fully dark look */
body.is-home .site-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Override footer on home */
body.is-home .site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

/* ── Sections ─────────────────────────────────── */

.hp-hero,
.hp-section {
  background: var(--home-bg);
  font-family: var(--font-brand);
}

.hp-hero {
  padding: 4.8rem 0 4rem;
  background-image:
    radial-gradient(circle at 88% 10%, rgba(87, 50, 250, 0.2), transparent 35%),
    radial-gradient(circle at 8% 90%, rgba(124, 250, 195, 0.12), transparent 28%);
}

.hp-section {
  padding: 6rem 0;
}

.hp-section-tight {
  padding-top: 5rem;
}

.hp-section + .hp-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.hp-section + .hp-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 180px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.hp-section + .hp-section::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--home-coral);
}

/* ── Typography helpers ───────────────────────── */

.hp-section h2 {
  margin-bottom: 1rem;
  color: var(--home-text);
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.hp-eyebrow {
  color: var(--home-violet);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hp-eyebrow-yellow { color: var(--home-violet); }
.hp-eyebrow-coral  { color: var(--home-violet); }
.hp-eyebrow-violet { color: var(--home-violet); }

.hp-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(87, 50, 250, 0.15);
  letter-spacing: 0;
  text-transform: none;
}

.hp-eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--home-coral);
}

.hp-hero-lead,
.hp-intro {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  line-height: 1.7;
}

/* Color helpers used inline in headings */
.mint   { color: var(--home-violet); }
.yellow { color: var(--home-violet); }
.violet { color: var(--home-violet); }
.coral  { color: var(--home-violet); }

/* ── Hero layout ──────────────────────────────── */

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

.hp-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--home-text);
}

.hp-hero-cta {
  display: flex;
  gap: 1rem;
  margin: 1.8rem 0;
}

.hp-metrics {
  display: flex;
  gap: 2rem;
}

.hp-metrics strong {
  display: block;
  color: var(--home-violet);
  font-size: 2rem;
  line-height: 1;
}

.hp-metrics span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Hero media ───────────────────────────────── */

.hp-hero-media {
  position: relative;
}

.hp-hero-illustration {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.hp-hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.hp-hero-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-media-pill {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--home-yellow);
  color: #000;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.hp-media-badge {
  position: absolute;
  left: -28px;
  bottom: -18px;
  background: rgba(87, 50, 250, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  max-width: 240px;
}

.hp-media-badge strong {
  font-size: 13px;
  display: block;
}

.hp-media-badge span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ── Buttons (homepage specific) ─────────────── */

.hp-btn {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--home-text);
  transition: background 0.2s, transform 0.15s;
}

.hp-btn-primary {
  background: linear-gradient(169deg, var(--home-violet) 0%, var(--color-purple) 100%);
}

.hp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
}

.hp-btn:hover {
  transform: translateY(-2px);
}

/* ── Checklist ────────────────────────────────── */

.hp-checklist {
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
}

.hp-checklist li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 0.55rem;
  position: relative;
  padding-left: 1.75rem;
}

.hp-checklist li::before {
  content: "\2713";
  color: var(--home-violet);
  position: absolute;
  left: 0;
}

/* ── Shared card surface (dark) ──────────────── */

.hp-panel,
.hp-testimonial,
.hp-tech-card,
.hp-blog-card,
.hp-client {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

/* ── Services grid ────────────────────────────── */

.hp-services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr 1fr;
}

.hp-panel {
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--panel-accent, var(--home-violet));
  --panel-accent: var(--home-violet);
  --panel-link:   var(--home-violet);
  --panel-icon-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: var(--panel-accent);
  background: rgba(255, 255, 255, 0.05);
}

.hp-panel[data-accent="mint"]   { --panel-accent: var(--home-mint);   --panel-link: var(--home-violet); --panel-icon-color: #000; }
.hp-panel[data-accent="yellow"] { --panel-accent: var(--home-yellow); --panel-link: var(--home-coral);  --panel-icon-color: #000; }
.hp-panel[data-accent="violet"] { --panel-accent: var(--home-violet); --panel-link: var(--home-violet); --panel-icon-color: #fff; }
.hp-panel[data-accent="coral"]  { --panel-accent: var(--home-coral);  --panel-link: var(--home-coral);  --panel-icon-color: #fff; }

.hp-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-accent);
  color: var(--panel-icon-color);
  transition: transform 0.3s ease;
}

.hp-panel:hover .hp-panel-icon {
  transform: scale(1.1) rotate(4deg);
}

.hp-panel-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hp-panel h3,
.hp-blog-body h3 {
  color: var(--home-text);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.hp-panel p,
.hp-testimonial p,
.hp-blog-body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
}

.hp-panel-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hp-panel-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hp-panel-features li svg {
  width: 14px;
  height: 14px;
  color: var(--panel-accent);
  flex-shrink: 0;
}

.hp-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--panel-accent);
  padding-bottom: 2px;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.hp-panel:hover .hp-panel-link {
  gap: 0.6rem;
}

.hp-panel-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Chips ────────────────────────────────────── */

.hp-chip {
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.chip-mint   { background: rgba(124, 250, 195, 0.18); color: #000; }
.chip-yellow { background: rgba(250, 224, 25, 0.2);   color: #000; }
.chip-coral  { background: rgba(250, 101, 75, 0.14);  color: #fff; }
.chip-violet { background: rgba(87, 50, 250, 0.18);   color: #fff; }

/* ── Clients upgraded cards ───────────────────── */

.hp-clients-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .hp-clients-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .hp-clients-container {
    grid-template-columns: 1fr;
  }
}

.hp-client-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.hp-client-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(87, 50, 250, 0.4);
  transform: translateY(-3px);
}

.hp-client-logo-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.hp-client-card:hover .hp-client-logo-wrapper {
  transform: scale(1.05) rotate(-2deg);
}

.hp-client-logo {
  display: block;
  max-width: 48px;
  max-height: 32px;
  object-fit: contain;
}

.hp-client-logo--invert {
  filter: brightness(0) invert(1);
}

.hp-client-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hp-client-info strong {
  font-size: 15px;
  color: var(--home-text);
  font-weight: 700;
  display: block;
}

.hp-client-info span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Testimonials carousel ────────────────────── */

.hp-testimonials-carousel {
  overflow: hidden;
}

.hp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hp-carousel-controls {
  display: flex;
  gap: 0.6rem;
}

.hp-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hp-carousel-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-carousel-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.hp-carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hp-testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.hp-testimonial {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.8rem;
}

.hp-testimonial .stars {
  color: var(--home-violet);
  margin-bottom: 1rem;
}

.hp-testimonial footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-testimonial footer strong {
  display: block;
  font-size: 14px;
}

.hp-testimonial footer span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.hp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.hp-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hp-carousel-dot.active {
  background: var(--home-coral);
  border-color: var(--home-coral);
}

/* ── Avatars ──────────────────────────────────── */

.hp-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

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

.hp-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(87, 50, 250, 0.95), rgba(124, 250, 206, 0.75));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hp-avatar--initials span {
  line-height: 1;
}

/* ── Technologies upgraded dashboard matrix ──── */

.hp-tech-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 960px) {
  .hp-tech-dashboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.hp-tech-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hp-tech-column:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(87, 50, 250, 0.35);
  transform: translateY(-4px);
}

.hp-tech-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tech-accent, var(--home-violet));
}

.hp-tech-column[data-accent="coral"] {
  --tech-accent: var(--home-coral);
}

.hp-tech-column[data-accent="yellow"] {
  --tech-accent: var(--home-yellow);
}

.hp-tech-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.25rem;
}

.hp-tech-column-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--home-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.hp-tech-column-header span {
  font-size: 11px;
  color: var(--tech-accent, var(--home-violet));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hp-tech-column-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-tech-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.hp-tech-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.hp-tech-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hp-tech-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tech-accent, var(--home-violet));
  flex-shrink: 0;
}

.hp-tech-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hp-tech-status {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Blog ─────────────────────────────────────── */

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

.hp-blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.hp-blog-card {
  overflow: hidden;
}

.hp-blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hp-blog-body {
  padding: 1.2rem 1.4rem 1.5rem;
}

.hp-blog-body small {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.hp-blog-body a,
.hp-inline-link a {
  color: var(--home-violet);
  font-weight: 600;
}

.hp-inline-link {
  margin-top: 1.4rem;
  font-size: 14px;
}

.link-yellow { color: var(--home-violet) !important; }
.link-coral  { color: var(--home-violet) !important; }
.link-violet { color: var(--home-violet) !important; }

/* ── Subscribe strip ──────────────────────────── */

.hp-subscribe {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(87, 50, 250, 0.3);
  border-radius: 12px;
  background: rgba(87, 50, 250, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hp-subscribe strong {
  font-size: 20px;
}

.hp-subscribe p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.hp-subscribe form {
  display: flex;
  gap: 0.6rem;
}

.hp-subscribe input,
.hp-consult-form input,
.hp-consult-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
}

.hp-subscribe input {
  padding: 0.8rem 1rem;
  min-width: 220px;
}

.hp-subscribe button,
.hp-consult-form button {
  border: 0;
  background: linear-gradient(169deg, var(--home-violet) 0%, var(--color-purple) 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

/* ── Consultation CTA ─────────────────────────── */

.hp-consult {
  border: 1px solid rgba(87, 50, 250, 0.3);
  border-radius: 24px;
  background: rgba(87, 50, 250, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hp-consult-copy {
  padding: 3.2rem;
  background: linear-gradient(131deg, rgba(87, 50, 250, 0.2) 0%, rgba(124, 250, 195, 0.05) 100%);
}

.hp-consult-form {
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hp-consult-form label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.hp-consult-form input,
.hp-consult-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 1rem;
}

.hp-consult-form textarea {
  min-height: 86px;
}

.hp-consult-form small {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 1080px) {
  .hp-hero-grid,
  .hp-consult,
  .hp-tech-grid,
  .hp-blog-grid,
  .hp-services-grid,
  .hp-clients-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hp-testimonial {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 768px) {
  .hp-hero,
  .hp-section {
    padding: 4rem 0;
  }

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

  .hp-hero-grid,
  .hp-services-grid,
  .hp-tech-grid,
  .hp-blog-grid,
  .hp-clients-grid,
  .hp-consult {
    grid-template-columns: 1fr;
  }

  .hp-testimonial {
    flex-basis: 100%;
  }

  .hp-blog-head,
  .hp-subscribe {
    display: block;
  }

  .hp-subscribe form {
    margin-top: 1rem;
    flex-direction: column;
  }

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

  .hp-media-badge {
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .hp-consult-copy,
  .hp-consult-form {
    padding: 1.4rem;
  }
}
