/* ============================================
   LUZID — HOME PAGE STYLES
   ============================================ */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 72% 50%, rgba(232,51,42,0.05) 0%, transparent 65%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / 12 - 1px),
      rgba(13,13,13,0.025) calc(100% / 12 - 1px),
      rgba(13,13,13,0.025) calc(100% / 12)
    );
  will-change: transform;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding-top: 32px;
  padding-bottom: clamp(100px, 14vw, 160px);
  position: relative;
  width: 100%;
}

.hero__content .label {
  margin-bottom: 20px;
}

.hero__title {
  margin-bottom: 24px;
}

/* Each word of the split headline sits on its own line */
.hero__title .word-wrap {
  display: block;
}

.hero__sub {
  max-width: 500px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- HERO ILLUSTRATION CARD --- */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__card {
  width: 100%;
  max-width: 460px;
  background: var(--black);
  border-radius: 10px;
  padding: 24px;
  box-shadow:
    0 40px 80px rgba(13,13,13,0.18),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.7s var(--ease-out);
}

.hero__card:hover {
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
}

.hero__card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.hero__card-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero__card-dot:nth-child(1) { background: #ff5f57; }
.hero__card-dot:nth-child(2) { background: #febc2e; }
.hero__card-dot:nth-child(3) { background: #28c840; }

.hero__card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 72px 56px;
  gap: 8px;
  margin-bottom: 16px;
}

.hero__card-block {
  background: var(--gray-2);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.hero__card-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,51,42,0.12), transparent);
}

.hero__card-block--tall {
  grid-row: span 2;
  background: var(--red);
}

.hero__card-block--tall::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
}

.hero__card-bar {
  height: 8px;
  background: var(--gray-2);
  border-radius: 4px;
  margin-top: 10px;
}

.hero__card-bar--short { width: 55%; }

/* --- MARQUEE STRIP --- */
.marquee-strip {
  border-top: 1px solid var(--gray-6);
  border-bottom: 1px solid var(--gray-6);
  padding: 14px 0;
  overflow: hidden;
  background: var(--white);
}

.marquee {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
  width: max-content;
}

.marquee.paused { animation-play-state: paused; }

.marquee span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-4);
}

.marquee-dot {
  font-size: 5px !important;
  color: var(--red) !important;
}

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

/* --- INTRO --- */
.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.intro__left .label { margin-bottom: 14px; }

/* --- STATS --- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(36px, 5vw, 60px) clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--gray-2);
  position: relative;
}

.stat:last-child { border-right: none; }

/* Red top line animates in on reveal */
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.7s var(--ease-out) 0.2s;
}

.stat.visible::before { width: 100%; }

.stat__num {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat__label {
  font-size: 13px;
  color: var(--gray-4);
  line-height: 1.5;
  max-width: 140px;
}

/* --- SERVICES PREVIEW --- */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 3vw, 32px) 0;
  transition: padding-left 0.2s;
}

.service-row:hover .service-row__title { color: var(--red); }
.service-row:hover .service-row__arrow { transform: translate(4px, -4px); }

.service-row__num {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-5);
  letter-spacing: 0.06em;
}

.service-row__title {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.service-row__desc {
  font-size: 14px;
  color: var(--gray-3);
  margin-top: 5px;
  max-width: 400px;
  line-height: 1.5;
}

.service-row__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-row__arrow {
  width: 18px;
  height: 18px;
  color: var(--gray-4);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

/* --- PROCESS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.process-step {
  padding: 36px 32px;
  background: var(--white);
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.6s var(--ease-out);
}

.process-step.visible::before { width: 100%; }

.process-step__num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--gray-6);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.process-step__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-step__desc {
  font-size: 14px;
  color: var(--gray-3);
  line-height: 1.65;
}

/* --- CTA BAND --- */
.cta-band {
  background: var(--black);
  padding: clamp(72px, 9vw, 112px) 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================
   HOME — RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: 1px solid var(--gray-2);
    border-bottom: 1px solid var(--gray-2);
  }

  /* 2×2 grid: right col has no right border, bottom row has no bottom border */
  .stat:nth-child(2n)   { border-right: none; }
  .stat:nth-child(3),
  .stat:nth-child(4)    { border-bottom: none; }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .service-row__tags { display: none; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: clamp(80px, 14vw, 120px);
  }

  /* Hide decorative card on tablet/mobile — text is the focus */
  .hero__visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .intro__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-row {
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
  }

  .service-row__desc { display: none; }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 28px 24px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 28px 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .cta-band__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band__actions .btn {
    justify-content: center;
  }
}
