/* LDV Systems — Homepage Redesign (auth0-style layout)
   Loaded on index.html after styles.css. Self-contained homepage styles
   that don't leak into sub-pages. Reuses --blue / --navy / --bg-section
   tokens from styles.css. */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(0, 150, 199, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(0, 95, 153, 0.45), transparent 60%),
    linear-gradient(180deg, #0D1B2E 0%, #102A47 100%);
  color: #fff;
  /* 96px top clears the fixed navbar; 90px bottom is breathing room
     before the next section */
  padding: 96px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

/* ── Hero video banner (full-width, with floating badges) ────────────────── */
.hp-hero-video {
  position: relative;
  width: 100%;
  margin-bottom: 70px;
}
.hp-hero-poster,
.hp-hero-video video {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
/* Poster <img> is the LCP element. The video loads after page load, stays
   hidden (opacity:0 — not a paint candidate, so it never steals LCP), and
   fades in only once it can play. */
.hp-hero-video video {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hp-hero-video video.is-ready {
  opacity: 1;
}
.hp-hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(9, 21, 37, 0.9);
  border: 1px solid rgba(0, 95, 153, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(0, 95, 153, 0.18), 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: hpHeroBadgeFloat 4s ease-in-out infinite;
}
.hp-hero-badge--tl { top: 20px;    left:  24px; }
.hp-hero-badge--br { bottom: 20px; right: 24px; animation-delay: 2s; }
.hp-hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hp-hero-badge-dot--green {
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}
.hp-hero-badge-dot--blue {
  background: var(--sky);
  box-shadow: 0 0 10px rgba(0, 150, 199, 0.75);
  animation: hpHeroBadgePulse 2s ease-in-out infinite;
}
.hp-hero-badge-label { font-size: 0.8rem;  font-weight: 600; color: #fff;                       line-height: 1.2; }
.hp-hero-badge-sub   { font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); line-height: 1.2; margin-top: 2px; }

@keyframes hpHeroBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes hpHeroBadgePulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 10px rgba(0, 150, 199, 0.75); }
  50%      { opacity: 0.6; box-shadow: 0 0 18px rgba(0, 150, 199, 0.95); }
}
.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
  opacity: 0.6;
  z-index: -1;
  animation: hpHeroDrift 22s linear infinite;
}
@keyframes hpHeroDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, -80px -80px; }
}

.hp-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #DCE9F5;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hp-hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}
.hp-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 22px;
  color: #fff;
}
.hp-hero h1 .accent {
  background: linear-gradient(120deg, #6FD7FF 0%, #B0E5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hp-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: rgba(220, 233, 245, 0.85);
  max-width: 640px;
  margin: 0 auto 38px;
}
.hp-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: #0D1B2E;
  border: 1px solid #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px rgba(0, 95, 153, 0.25);
}
.hp-btn-primary:hover { background: #DCEEFD; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 95, 153, 0.32); color: #0D1B2E; }
.hp-btn-primary svg { width: 18px; height: 18px; }

.hp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.hp-btn-ghost svg { width: 16px; height: 16px; }

/* ── Client / industry marquee strip ─────────────────────────────────────── */
.hp-strip {
  background: #fff;
  padding: 36px 0 30px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hp-strip-label {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hp-strip-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: hpStripScroll 36s linear infinite;
  width: max-content;
}
.hp-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.hp-strip-item:hover { opacity: 1; }
.hp-strip-item svg { width: 22px; height: 22px; color: var(--blue); }
@keyframes hpStripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats bar (3 metrics) ───────────────────────────────────────────────── */
.hp-stats {
  background: #fff;
  padding: 70px 0;
}
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}
.hp-stat {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.hp-stat:last-child { border-right: none; }
.hp-stat-num {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hp-stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Tabbed industries ───────────────────────────────────────────────────── */
.hp-tabs-section {
  background: var(--bg-section);
  padding: 100px 0;
}
.hp-tabs-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.hp-tabs-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.hp-tabs-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hp-tabs-sub {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.hp-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
}
.hp-tab-trigger {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hp-tab-trigger:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.hp-tab-trigger.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.hp-tab-panels { position: relative; }
.hp-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: 0 10px 40px rgba(13, 27, 46, 0.06);
}
.hp-tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  animation: hpPanelFade 0.35s ease both;
}
@keyframes hpPanelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hp-tab-content h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.hp-tab-content p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 18px;
}
.hp-tab-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-tab-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-body);
}
.hp-tab-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  display: inline-block;
}
.hp-tab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.hp-tab-tag {
  background: var(--bg-section);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.hp-tab-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
}
.hp-tab-cta:hover { color: var(--blue-hover); }
.hp-tab-cta svg { width: 14px; height: 14px; transition: transform 0.18s; }
.hp-tab-cta:hover svg { transform: translateX(3px); }

.hp-tab-visual {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-section);
}
.hp-tab-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Embedded explorer card ──────────────────────────────────────────────── */
.hp-explorer-section {
  background: #fff;
  padding: 100px 0;
}
.hp-explorer-card {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, #F7FAFD 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(13, 27, 46, 0.08);
}
.hp-explorer-card-header { text-align: center; margin-bottom: 30px; }
.hp-explorer-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.hp-explorer-card-header h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.hp-explorer-card-header p {
  font-size: 0.98rem;
  color: var(--text-body);
}
.hp-explorer-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hp-explorer-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hp-explorer-tile:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 95, 153, 0.1);
  color: var(--text-dark);
}
.hp-explorer-tile-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-section);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hp-explorer-tile-icon svg { width: 22px; height: 22px; }
.hp-explorer-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-explorer-tile-label { font-weight: 700; font-size: 0.98rem; }
.hp-explorer-tile-desc { font-size: 0.82rem; color: var(--text-muted); }
.hp-explorer-tile-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.18s, color 0.18s;
}
.hp-explorer-tile:hover .hp-explorer-tile-arrow { transform: translateX(4px); color: var(--blue); }
.hp-explorer-tile-arrow svg { width: 18px; height: 18px; }

/* ── Testimonials carousel (marquee) ─────────────────────────────────────── */
.hp-testimonials {
  background: var(--bg-section);
  padding: 100px 0 80px;
  overflow: hidden;
}
.hp-testimonials-header { text-align: center; margin-bottom: 50px; }
.hp-testimonials-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hp-testimonials-header p {
  font-size: 1rem;
  color: var(--text-body);
}

.hp-testimonials-track-wrap { overflow: hidden; }
.hp-testimonials-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: hpTestiScroll 60s linear infinite;
}
.hp-testimonials-track:hover { animation-play-state: paused; }
@keyframes hpTestiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hp-testi-card {
  flex: 0 0 auto;
  width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 20px rgba(13, 27, 46, 0.06);
  display: flex; flex-direction: column; gap: 14px;
}
.hp-testi-stars { color: #F5A623; letter-spacing: 2px; font-size: 0.95rem; }
.hp-testi-quote {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-body);
}
.hp-testi-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hp-testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hp-testi-author-meta { display: flex; flex-direction: column; gap: 2px; }
.hp-testi-author-name { font-weight: 700; font-size: 0.92rem; color: var(--text-dark); }
.hp-testi-author-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── Resources grid ──────────────────────────────────────────────────────── */
.hp-resources {
  background: #fff;
  padding: 100px 0;
}
.hp-resources-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hp-resources-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hp-resources-header p {
  font-size: 1rem;
  color: var(--text-body);
}

.hp-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hp-resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hp-resource-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 95, 153, 0.1);
  color: var(--text-dark);
}
.hp-resource-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-section);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.hp-resource-thumb svg { width: 44px; height: 44px; }
.hp-resource-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hp-resource-tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  align-self: flex-start;
}
.hp-resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
.hp-resource-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.hp-resource-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
}
.hp-resource-arrow svg { width: 14px; height: 14px; transition: transform 0.18s; }
.hp-resource-card:hover .hp-resource-arrow svg { transform: translateX(3px); }

/* ── Bottom CTA banner (deep navy full-width) ────────────────────────────── */
.hp-cta-band {
  background: linear-gradient(135deg, #0D1B2E 0%, #1A3A5C 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hp-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 150, 199, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(0, 95, 153, 0.4), transparent 60%);
  pointer-events: none;
}
.hp-cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hp-cta-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6FD7FF;
  margin-bottom: 14px;
}
.hp-cta-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.hp-cta-sub {
  font-size: 1rem;
  color: rgba(220, 233, 245, 0.85);
  line-height: 1.55;
  margin-bottom: 32px;
}
.hp-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hp-tab-panel.is-active {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px;
  }
  .hp-tab-visual { aspect-ratio: 16 / 9; }
  .hp-resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hp-hero-poster { height: 360px; }
}

@media (max-width: 720px) {
  .hp-hero { padding: 96px 0 70px; }
  .hp-hero-video { margin-bottom: 50px; }
  .hp-hero-poster { height: 260px; }
  .hp-hero-badge { padding: 8px 12px; }
  .hp-hero-badge--tl { top: 12px;    left:  12px; }
  .hp-hero-badge--br { bottom: 12px; right: 12px; }
  .hp-hero-badge-label { font-size: 0.74rem; }
  .hp-hero-badge-sub   { font-size: 0.66rem; }
  .hp-stats { padding: 56px 0; }
  .hp-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
  .hp-stat:last-child { border-bottom: none; padding-bottom: 0; }

  .hp-tabs-section,
  .hp-explorer-section,
  .hp-testimonials,
  .hp-resources { padding: 70px 0; }

  .hp-explorer-card { padding: 30px 22px; }
  .hp-explorer-tiles { grid-template-columns: 1fr; }

  .hp-testi-card { width: 300px; padding: 22px; }

  .hp-resources-grid { grid-template-columns: 1fr; }

  .hp-cta-band { padding: 70px 0; }

  .hp-tab-panel.is-active { padding: 26px 22px; }
}
