/* ==========================================================================
   CoderLyft Homepage Premium — AI-first mid-page experience
   Palette: #0F4C81 · #0B1020 · #14213D · #7C3AED · #3B82F6 · #06B6D4
   ========================================================================== */

.home-premium {
  --hp-primary: #0F4C81;
  --hp-dark: #0B1020;
  --hp-secondary: #14213D;
  --hp-purple: #7C3AED;
  --hp-blue: #3B82F6;
  --hp-cyan: #06B6D4;
  --hp-success: #10B981;
  --hp-bg: #F8FAFC;
  --hp-card: #FFFFFF;
  --hp-border: #E5E7EB;
  --hp-muted: #64748B;
  --hp-ink: #0B1020;
  --hp-radius: 24px;
  --hp-shadow: 0 24px 60px rgba(11, 16, 32, 0.08);
  --hp-shadow-sm: 0 10px 30px rgba(11, 16, 32, 0.06);
  background: var(--hp-bg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.home-premium .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Hero polish only — layout preserved */
.home-premium .hero {
  letter-spacing: -0.01em;
}
.home-premium .hero-copy.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-premium .hero-cta-bar a {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.home-premium .hero-cta-bar a:hover {
  transform: translateY(-2px);
}

/* Shared section chrome */
.hp-section {
  padding: 120px 0;
  position: relative;
}
.hp-section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.hp-section-head.centered {
  margin-inline: auto;
  text-align: center;
}
.hp-section-head.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.hp-section-head.split > div { max-width: 640px; }
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-border);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  color: var(--hp-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hp-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-cyan), var(--hp-purple));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.hp-eyebrow.light {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
}
.hp-section-head h2,
.hp-cta h2 {
  margin: 0 0 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--hp-ink);
  text-wrap: balance;
}
.hp-section-head.light h2 { color: #fff; }
.hp-section-head p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--hp-muted);
}
.hp-section-head.light p { color: rgba(226, 232, 240, 0.72); }

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.hp-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s ease;
}
.hp-link:hover svg { transform: translate(3px, -3px); }

/* ---------- Trust marquee ---------- */
.hp-trust {
  padding: 36px 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--hp-border);
}
.hp-trust-label {
  margin: 0 0 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94A3B8;
}
.hp-trust-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hp-trust-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: hpMarquee 38s linear infinite;
}
.hp-trust-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #94A3B8;
  opacity: 0.85;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.hp-trust-logo:hover { color: var(--hp-ink); opacity: 1; }
@keyframes hpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Bento: What we build ---------- */
.hp-build { background: var(--hp-bg); }
.hp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}
.hp-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--hp-radius);
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.hp-bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.hp-bento-card:hover {
  transform: translateY(-6px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  box-shadow: var(--hp-shadow);
  border-color: rgba(59, 130, 246, 0.35);
}
.hp-bento-card:hover::before { opacity: 1; }
.hp-bento-wide { grid-column: span 2; }
.hp-bento-tall { grid-row: span 2; }
.hp-bento-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hp-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(15, 76, 129, 0.08), rgba(124, 58, 237, 0.1));
  color: var(--hp-primary);
}
.hp-bento-icon svg { width: 22px; height: 22px; }
.hp-bento-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #F1F5F9;
  color: var(--hp-ink);
  opacity: 0;
  transform: translate(6px, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hp-bento-card:hover .hp-bento-arrow {
  opacity: 1;
  transform: none;
}
.hp-bento-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.hp-bento-card h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}
.hp-bento-card > p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--hp-muted);
  flex: 1;
}
.hp-mini-dash {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #F8FAFC, #EEF2FF);
  border: 1px solid var(--hp-border);
}
.hp-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 42px;
  margin-bottom: 10px;
}
.hp-mini-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--hp-blue), var(--hp-purple));
  opacity: 0.55;
  animation: hpBar 2.4s ease-in-out infinite;
}
.hp-mini-bars i:nth-child(1) { height: 35%; animation-delay: 0s; }
.hp-mini-bars i:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.hp-mini-bars i:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.hp-mini-bars i:nth-child(4) { height: 78%; animation-delay: 0.3s; }
.hp-mini-bars i:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.hp-mini-bars i:nth-child(6) { height: 90%; animation-delay: 0.5s; }
@keyframes hpBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.82); }
}
.hp-mini-meta { display: flex; gap: 8px; }
.hp-mini-meta span {
  height: 8px;
  border-radius: 999px;
  background: #CBD5E1;
}
.hp-mini-meta span:first-child { width: 42%; }
.hp-mini-meta span:last-child { width: 28%; }

/* ---------- Why compare ---------- */
.hp-why { background: #fff; }
.hp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.hp-compare-card {
  padding: 36px 32px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-border);
  background: var(--hp-card);
  box-shadow: var(--hp-shadow-sm);
}
.hp-compare-good {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.12), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.1), transparent 40%),
    #fff;
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.12);
}
.hp-compare-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-compare-badge.bad { background: #FEE2E2; color: #B91C1C; }
.hp-compare-badge.good { background: #D1FAE5; color: #047857; }
.hp-compare-card h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.hp-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.hp-compare-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #334155;
}
.hp-x, .hp-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.hp-x { background: #FEE2E2; color: #DC2626; }
.hp-check { background: #D1FAE5; color: #059669; }
.hp-compare-good .hp-link { margin-top: 28px; }

/* ---------- AI Innovation ---------- */
.hp-ai {
  background: var(--hp-dark);
  overflow: hidden;
}
.hp-ai-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 60%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.25), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.2), transparent 50%);
  filter: blur(20px);
  animation: hpGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hpGlow {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(30px) scale(1.08); opacity: 1; }
}
.hp-ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hp-ai-grid-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hp-ai-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--hp-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.hp-ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2), 0 20px 50px rgba(124, 58, 237, 0.25);
}
.hp-ai-orb {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.hp-ai-card:hover .hp-ai-orb {
  opacity: 1;
  transform: scale(1.25);
}
.hp-ai-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.hp-ai-card p {
  position: relative;
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.7);
}
.hp-ai-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hp-cyan);
}
.hp-ai-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- Impact ---------- */
.hp-impact { background: #fff; }
.hp-impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.hp-impact-card {
  padding: 36px 20px;
  text-align: center;
  border-radius: var(--hp-radius);
  background: linear-gradient(180deg, #fff, #F8FAFC);
  border: 1px solid var(--hp-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}
.hp-impact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--hp-primary), var(--hp-purple), var(--hp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-impact-card > span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--hp-muted);
}

/* ---------- Case studies ---------- */
.hp-cases { background: var(--hp-bg); }
.hp-case-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  margin-bottom: 22px;
}
.hp-case-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.15), transparent 50%),
    linear-gradient(145deg, #0B1020, #14213D);
  border-radius: 24px;
  overflow: hidden;
}
.hp-macbook {
  width: min(92%, 420px);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}
.hp-mac-screen {
  border: 10px solid #1e293b;
  border-bottom-width: 6px;
  border-radius: 12px 12px 4px 4px;
  background: #0f172a;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.hp-mac-ui {
  display: grid;
  grid-template-columns: 48px 1fr;
  height: 100%;
  background: #111827;
}
.hp-mac-ui aside {
  background: #0B1020;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.hp-mac-ui > div { padding: 14px; }
.hp-mac-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.hp-mac-kpis b {
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}
.hp-mac-chart {
  height: 70%;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.hp-mac-chart path {
  fill: rgba(124, 58, 237, 0.35);
  stroke: #a78bfa;
  stroke-width: 2;
}
.hp-mac-base {
  height: 10px;
  margin: 0 auto;
  width: 70%;
  border-radius: 0 0 10px 10px;
  background: #334155;
}
.hp-phone {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 110px;
  padding: 16px 12px 14px;
  border-radius: 22px;
  background: #fff;
  border: 3px solid #0f172a;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  animation: hpFloat 4.5s ease-in-out infinite;
}
@keyframes hpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hp-phone-notch {
  width: 36px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #0f172a;
}
.hp-phone strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
}
.hp-phone small { color: var(--hp-muted); font-size: 11px; }
.hp-phone-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 12px;
}
.hp-phone-bars i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--hp-cyan), var(--hp-blue));
}
.hp-phone-bars i:nth-child(1) { height: 40%; }
.hp-phone-bars i:nth-child(2) { height: 65%; }
.hp-phone-bars i:nth-child(3) { height: 50%; }
.hp-phone-bars i:nth-child(4) { height: 85%; }
.hp-phone-bars i:nth-child(5) { height: 70%; }

.hp-case-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-purple);
}
.hp-case-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hp-case-copy > p {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hp-muted);
}
.hp-case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.hp-case-results div {
  padding: 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid var(--hp-border);
}
.hp-case-results strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
}
.hp-case-results span {
  font-size: 0.82rem;
  color: var(--hp-muted);
}

.hp-before-after { margin-bottom: 24px; }
.hp-ba-track {
  position: relative;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hp-border);
  background: #FEE2E2;
}
.hp-ba-before,
.hp-ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  font-size: 0.85rem;
}
.hp-ba-before { color: #7F1D1D; }
.hp-ba-after {
  background: linear-gradient(90deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border-right: 3px solid #fff;
  box-shadow: 4px 0 20px rgba(16, 185, 129, 0.25);
}
.hp-ba-before span,
.hp-ba-after span {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hp-ba-track input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 2;
}

.hp-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hp-case-mini {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: var(--hp-radius);
  background: #fff;
  border: 1px solid var(--hp-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-case-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow);
}
.hp-case-mini-art {
  border-radius: 18px;
  background: linear-gradient(145deg, #0B1020, #1e3a5f);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}
.hp-case-mini-art span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.hp-case-mini-art strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hp-case-mini small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hp-case-mini h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* ---------- Industries ---------- */
.hp-industries { background: #fff; }
.hp-industry-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-industry-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  text-decoration: none;
  color: var(--hp-ink);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hp-industry-chip span {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
}
.hp-industry-chip strong {
  flex: 1;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.hp-industry-chip svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hp-industry-chip:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--hp-shadow-sm);
}
.hp-industry-chip:hover svg {
  opacity: 1;
  transform: none;
}

/* ---------- Process timeline ---------- */
.hp-process { background: var(--hp-bg); }
.hp-timeline { position: relative; overflow-x: auto; padding-bottom: 8px; }
.hp-timeline-line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hp-border);
}
.hp-timeline-line i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hp-blue), var(--hp-purple), var(--hp-cyan));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-timeline.is-drawn .hp-timeline-line i { width: 100%; }
.hp-timeline-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 12px;
  min-width: 980px;
}
.hp-timeline-steps li {
  padding-top: 8px;
}
.hp-timeline-steps li > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hp-blue);
  color: var(--hp-primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
}
.hp-timeline-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.hp-timeline-steps p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--hp-muted);
}

/* ---------- Tech stack ---------- */
.hp-stack {
  background: var(--hp-secondary);
  padding-bottom: 80px;
  overflow: hidden;
}
.hp-stack-marquee {
  margin-top: 8px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hp-stack-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: hpMarquee 42s linear infinite;
}
.hp-stack-track span {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Testimonials ---------- */
.hp-testimonials { background: #fff; }
.hp-rating-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-rating-lockup strong {
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-rating-lockup span {
  display: grid;
  color: #F59E0B;
  font-size: 1rem;
  line-height: 1.2;
}
.hp-rating-lockup small {
  color: var(--hp-muted);
  font-size: 12px;
}
.hp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-testimonial-card {
  padding: 22px;
  border-radius: var(--hp-radius);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--hp-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--hp-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hp-shadow);
}
.hp-video-frame {
  position: relative;
  height: 140px;
  margin-bottom: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(124, 58, 237, 0.75)),
    #0B1020;
  overflow: hidden;
}
.hp-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--hp-ink);
  display: grid;
  place-items: center;
  cursor: default;
}
.hp-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.hp-stars {
  margin-bottom: 10px;
  color: #F59E0B;
  letter-spacing: 2px;
}
.hp-testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
}
.hp-testimonial-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}
.hp-testimonial-card footer strong {
  display: block;
  font-size: 0.95rem;
  color: var(--hp-ink);
}
.hp-testimonial-card footer small {
  color: var(--hp-muted);
  font-size: 12px;
}
.hp-testimonial-card footer b {
  font-size: 0.8rem;
  color: var(--hp-primary);
  white-space: nowrap;
}

/* ---------- Insights magazine ---------- */
.hp-insights { background: var(--hp-bg); }
.hp-magazine {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
.hp-mag-featured {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}
.hp-mag-art {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: 260px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.45), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.35), transparent 40%),
    linear-gradient(145deg, #0B1020, #0F4C81);
}
.hp-mag-art span,
.hp-mag-secondary .hp-mag-art span {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hp-mag-featured small,
.hp-mag-secondary small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hp-mag-featured h3 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hp-mag-featured h3 a,
.hp-mag-secondary h3 a {
  color: inherit;
  text-decoration: none;
}
.hp-mag-featured h3 a:hover,
.hp-mag-secondary h3 a:hover { color: var(--hp-primary); }
.hp-mag-featured p {
  margin: 0 0 16px;
  color: var(--hp-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}
.hp-mag-secondary {
  display: grid;
  gap: 14px;
}
.hp-mag-secondary article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--hp-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hp-mag-secondary article:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-sm);
}
.hp-mag-secondary .hp-mag-art {
  min-height: 96px;
}
.hp-mag-secondary h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.insight-software { background: linear-gradient(145deg, #14213D, #3B82F6); }
.insight-cloud { background: linear-gradient(145deg, #0B1020, #06B6D4); }
.insight-growth { background: linear-gradient(145deg, #0F4C81, #7C3AED); }

/* ---------- Final CTA ---------- */
.hp-cta {
  position: relative;
  padding: 140px 0;
  background: var(--hp-dark);
  overflow: hidden;
  text-align: center;
}
.hp-cta-glow {
  position: absolute;
  inset: 10% 20%;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.4), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.25), transparent 50%);
  filter: blur(30px);
  pointer-events: none;
}
.hp-cta-inner { position: relative; max-width: 780px; }
.hp-cta h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin-bottom: 18px;
}
.hp-cta p {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.72);
}
.hp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Footer spacing polish on homepage */
.home-premium .site-footer {
  letter-spacing: -0.01em;
}
.home-premium .footer-cta h2 {
  letter-spacing: -0.03em;
}

/* Reveal defaults for homepage */
.home-premium .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-premium .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-bento { grid-template-columns: repeat(2, 1fr); }
  .hp-bento-wide, .hp-bento-tall { grid-column: span 2; grid-row: auto; }
  .hp-ai-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .hp-impact-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-industry-bento { grid-template-columns: repeat(3, 1fr); }
  .hp-case-feature,
  .hp-magazine,
  .hp-section-head.split { grid-template-columns: 1fr; display: grid; }
  .hp-section-head.split { align-items: start; }
}

@media (max-width: 800px) {
  .hp-section { padding: 88px 0; }
  .hp-compare,
  .hp-case-grid,
  .hp-testimonial-grid,
  .hp-magazine { grid-template-columns: 1fr; }
  .hp-case-feature { padding: 22px; }
  .hp-case-mini { grid-template-columns: 1fr; }
  .hp-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-industry-bento { grid-template-columns: repeat(2, 1fr); }
  .hp-cta { padding: 100px 0; }
  .home-premium .container { width: min(1180px, calc(100% - 32px)); }
}

@media (max-width: 560px) {
  .hp-bento,
  .hp-ai-grid-cards,
  .hp-impact-grid,
  .hp-industry-bento { grid-template-columns: 1fr; }
  .hp-bento-wide { grid-column: auto; }
  .hp-case-results { grid-template-columns: 1fr; }
  .hp-mag-secondary article { grid-template-columns: 1fr; }
  .hp-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-trust-track,
  .hp-stack-track,
  .hp-mini-bars i,
  .hp-phone,
  .hp-ai-glow {
    animation: none !important;
  }
  .home-premium .reveal {
    opacity: 1;
    transform: none;
  }
}
