/* ============================================
   FluxFront Homepage V2 — Premium Styles
   Scoped to body.is-home only where overriding shared classes.
   New classes use h- prefix to avoid collisions.
   ============================================ */

/* ---- NOISE TEXTURE OVERLAY ---- */
body.is-home::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

/* ---- FLOATING GLOW DOTS ---- */
.h-float-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: h-floatIn 2s ease forwards, h-float 25s ease-in-out infinite 2s;
}
.h-float-dot--1 {
  width: 3px; height: 3px;
  background: rgba(0, 212, 170, 0.5);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
  top: 20%; left: 8%;
  animation-duration: 2s, 28s;
}
.h-float-dot--2 {
  width: 2px; height: 2px;
  background: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  top: 45%; right: 5%;
  animation-duration: 2s, 22s;
  animation-delay: 0.5s, 2.5s;
}
.h-float-dot--3 {
  width: 4px; height: 4px;
  background: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
  top: 70%; left: 12%;
  animation-duration: 2s, 32s;
  animation-delay: 1s, 3s;
}
.h-float-dot--4 {
  width: 2px; height: 2px;
  background: rgba(0, 212, 170, 0.4);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.2);
  top: 85%; right: 15%;
  animation-duration: 2s, 26s;
  animation-delay: 1.5s, 3.5s;
}

@keyframes h-floatIn {
  to { opacity: 1; }
}
@keyframes h-float {
  0%, 100% { transform: translate(0, 0); }
  25%  { transform: translate(30px, -20px); }
  50%  { transform: translate(-15px, 15px); }
  75%  { transform: translate(20px, 10px); }
}

/* ---- GRADIENT SECTION DIVIDERS ---- */
.h-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.12) 30%, rgba(59, 130, 246, 0.08) 70%, transparent);
  margin: 0;
}

/* ---- SECTION SPACING UPGRADE ---- */
body.is-home .section {
  padding-top: 120px;
  padding-bottom: 120px;
}


/* ---- NAV ENHANCEMENTS ---- */
body.is-home .nav {
  background: rgba(11, 13, 17, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
body.is-home .nav.scrolled {
  background: rgba(11, 13, 17, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.is-home .nav__logo {
  transition: text-shadow 0.3s ease;
}
body.is-home .nav__logo:hover {
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.35), 0 0 40px rgba(0, 212, 170, 0.12);
}


/* ---- HERO BACKGROUND IMAGE ---- */
.h-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

/* ---- HERO GRADIENT MESH ---- */
.h-hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.h-hero-mesh__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  animation: h-meshFloat 20s ease-in-out infinite alternate;
}
.h-hero-mesh__orb--teal {
  width: 600px; height: 600px;
  background: rgba(0, 212, 170, 0.12);
  top: -10%; left: 10%;
  animation-duration: 18s;
}
.h-hero-mesh__orb--blue {
  width: 500px; height: 500px;
  background: rgba(59, 130, 246, 0.10);
  top: 20%; right: 5%;
  animation-duration: 22s;
  animation-delay: -5s;
}
.h-hero-mesh__orb--purple {
  width: 400px; height: 400px;
  background: rgba(139, 92, 246, 0.06);
  bottom: -10%; left: 40%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes h-meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(30px, -10px) scale(1.05); }
}

/* Hero grid overlay */
.h-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Hero particles */
.h-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.h-hero-particles::before,
.h-hero-particles::after {
  content: '';
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.5);
}
.h-hero-particles::before {
  top: 15%; left: 5%;
  box-shadow:
    120px 60px 0 rgba(0,212,170,0.25),
    350px 120px 0 rgba(59,130,246,0.2),
    580px 40px 0 rgba(0,212,170,0.15),
    800px 160px 0 rgba(139,92,246,0.15),
    1050px 90px 0 rgba(59,130,246,0.12),
    200px 250px 0 rgba(0,212,170,0.1),
    500px 300px 0 rgba(59,130,246,0.15),
    750px 230px 0 rgba(139,92,246,0.1);
  animation: h-particleDrift1 40s ease-in-out infinite;
}
.h-hero-particles::after {
  top: 30%; left: 10%;
  box-shadow:
    80px 100px 0 rgba(59,130,246,0.2),
    300px 170px 0 rgba(0,212,170,0.15),
    520px 60px 0 rgba(139,92,246,0.15),
    700px 250px 0 rgba(0,212,170,0.1),
    1100px 130px 0 rgba(59,130,246,0.12),
    400px 350px 0 rgba(0,212,170,0.08);
  animation: h-particleDrift2 35s ease-in-out infinite;
}
@keyframes h-particleDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-25px, -15px); }
}
@keyframes h-particleDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -12px); }
}


/* ---- HERO SPLIT LAYOUT ---- */
.h-hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
}
.h-hero-text {
  flex: 1;
  min-width: 0;
}
.h-hero-split .hero__sub {
  margin-left: 0;
  margin-right: 0;
}
.h-hero-split .hero__cta {
  justify-content: flex-start;
}

/* iPhone container */
.h-hero-phone {
  flex: 0 0 300px;
  transform: perspective(1200px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)) drop-shadow(0 0 40px rgba(0,212,170,0.06));
}
.h-hero-phone:hover {
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
}

/* iPhone Frame */
.h-phone-frame {
  width: 280px;
  background: #000;
  border-radius: 44px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.h-phone-frame::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 44px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0,212,170,0.2), transparent 40%, rgba(59,130,246,0.15) 80%, transparent);
  pointer-events: none;
  z-index: 10;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Dynamic Island */
.h-phone-island {
  width: 100px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  margin: 4px auto 6px;
  position: relative;
  z-index: 5;
}

/* Phone Screen */
.h-phone-screen {
  background: #0b0d11;
  border-radius: 34px;
  overflow: hidden;
  padding: 10px 14px 16px;
}

/* Status bar */
.h-phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.h-phone-statusbar__time {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* Dashboard header */
.h-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.h-phone-logo {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.h-phone-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

/* Stat cards in phone */
.h-phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.h-phone-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
}
.h-phone-stat__num {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.h-phone-stat__num--teal { color: var(--teal); }
.h-phone-stat__num--blue { color: var(--blue); }
.h-phone-stat__num--gold { color: #f59e0b; }
.h-phone-stat__label {
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: block;
}

/* Mini calendar header */
.h-phone-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.h-phone-cal-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.h-phone-cal-date {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
}

/* Appointment list in phone */
.h-phone-appts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.h-phone-appt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.h-phone-appt:last-child { border-bottom: none; }
.h-phone-appt__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.h-phone-appt__dot--teal { background: var(--teal); }
.h-phone-appt__dot--blue { background: var(--blue); }
.h-phone-appt__dot--purple { background: #8b5cf6; }
.h-phone-appt__time {
  font-size: 10px;
  color: var(--teal);
  font-weight: 600;
  width: 38px;
  flex-shrink: 0;
}
.h-phone-appt__name {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-phone-appt__service {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}


/* Gradient headline text */
.h-gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow button — enhanced */
.h-glow-btn {
  position: relative;
  z-index: 1;
}
.h-glow-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  opacity: 0;
  filter: blur(16px);
  z-index: -1;
  transition: opacity 0.35s ease, filter 0.35s ease;
  pointer-events: none;
}
.h-glow-btn:hover::after {
  opacity: 0.5;
  filter: blur(20px);
}


/* ---- LIVE DEMO BADGE ---- */
.h-live-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  gap: 12px;
}
.h-live-badge__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.2);
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  position: relative;
}
.h-live-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  position: relative;
  flex-shrink: 0;
}
.h-live-badge__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: h-livePulse 2s ease-out infinite;
}
.h-live-badge__arrow {
  color: rgba(255,255,255,0.25);
  animation: h-arrowBounce 2s ease-in-out infinite;
}

@keyframes h-livePulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes h-arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}


/* ---- VOICE ZONE ENHANCEMENTS ---- */
body.is-home .voice-zone {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* ---- BENTO GRID ---- */
.h-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.h-bento__card {
  grid-column: span 2;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
  cursor: default;
}
.h-bento__card--wide {
  grid-column: span 4;
}
.h-bento__card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Bento inner content */
.h-bento__inner {
  position: relative;
  z-index: 2;
  padding: 40px;
}

/* Wide card flex layout for mockups */
.h-bento__card--wide .h-bento__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.h-bento__content {
  flex: 1;
  min-width: 0;
}
.h-bento__mockup {
  flex: 0 0 auto;
}

.h-bento__inner .feature__icon {
  margin-bottom: 16px;
}
.h-bento__inner .feature__title {
  font-size: 22px;
  margin-bottom: 10px;
}
.h-bento__inner .feature__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 600px;
}

/* Animated gradient border on hover */
.h-bento__border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(0, 212, 170, 0.3) 40%,
    transparent 50%,
    rgba(59, 130, 246, 0.2) 70%,
    transparent 90%
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.h-bento__card:hover .h-bento__border {
  opacity: 1;
  animation: h-borderGlow 3s linear infinite;
}

@keyframes h-borderGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mouse-following glow */
.h-bento__glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.h-bento__card:hover .h-bento__glow {
  opacity: 1;
}


/* ---- MINI CALL UI (Voice AI bento card) ---- */
.h-mini-call {
  width: 170px;
  background: rgba(0,0,0,0.35);
  border-radius: 24px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.h-mini-call__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.h-mini-call__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.h-mini-call__status {
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 18px;
}
.h-mini-call__btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.h-mini-call__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.h-mini-call__btn--accept {
  background: #22c55e;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.h-mini-call__btn--decline {
  background: #ef4444;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

/* ---- MINI CHAT UI (Chat Agent bento card) ---- */
.h-mini-chat {
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-mini-chat__msg {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 88%;
}
.h-mini-chat__msg--bot {
  background: rgba(0, 212, 170, 0.1);
  color: rgba(0, 212, 170, 0.9);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.h-mini-chat__msg--user {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(120, 170, 255, 0.95);
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.h-mini-chat__typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.h-mini-chat__typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.4);
  animation: h-typingDot 1.4s ease-in-out infinite;
}
.h-mini-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.h-mini-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes h-typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}


/* ---- MODERN TIMELINE ---- */
.h-timeline {
  position: relative;
  padding-left: 60px;
  max-width: 640px;
  margin: 0 auto;
}
.h-timeline__line {
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
}
.h-timeline__line-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  border-radius: 1px;
  transition: height 0.15s linear;
}

.h-timeline__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}
.h-timeline__node {
  position: absolute;
  left: -60px;
  top: 24px;
  z-index: 2;
  flex-shrink: 0;
}
.h-timeline__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(0, 212, 170, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.h-timeline__step.is-visible .h-timeline__num {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.h-timeline__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 170, 0.2);
  opacity: 0;
  pointer-events: none;
}
.h-timeline__step.is-visible .h-timeline__pulse {
  animation: h-nodePulse 2s ease-out infinite;
}

@keyframes h-nodePulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.h-timeline__card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 28px;
  flex: 1;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.h-timeline__step:hover .h-timeline__card {
  border-color: rgba(0, 212, 170, 0.12);
  transform: translateX(4px);
}
.h-timeline__title {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.h-timeline__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}


/* ---- INDUSTRY CARDS ---- */
.h-industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.h-ind-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  cursor: default;
}
.h-ind-card:not(.h-ind-card--soon) {
  cursor: pointer;
}
.h-ind-card:not(.h-ind-card--soon):hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.h-ind-card--soon {
  opacity: 0.55;
}

/* Industry card background images */
.h-ind-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
  transition: opacity 0.5s ease;
}
.h-ind-card:not(.h-ind-card--soon):hover .h-ind-card__img {
  opacity: 0.22;
}

.h-ind-card__inner {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  text-align: center;
}

/* Animated gradient border */
.h-ind-card__border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 212, 170, 0.4) 25%,
    transparent 30%,
    rgba(59, 130, 246, 0.3) 55%,
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.h-ind-card:hover .h-ind-card__border {
  opacity: 1;
}

/* Badges */
.h-ind-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.h-ind-card__badge--live {
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal);
  border: 1px solid rgba(0, 212, 170, 0.2);
}
.h-ind-card__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
  display: inline-block;
}
.h-ind-card__badge--soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Industry icon */
.h-ind-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.h-ind-card--soon .h-ind-card__icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
}

.h-ind-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.h-ind-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}


/* ---- STATS ENHANCEMENT ---- */
.h-stats-section .stats {
  gap: 24px;
}
.h-stats-section .stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 40px 32px;
}
.h-stats-section .stat__num,
.h-stats-section .stat__suffix {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
}
.h-stats-section .stat__row {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ---- CTA MESH ---- */
.h-cta-section {
  position: relative;
  overflow: hidden;
}
.h-cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 50%, rgba(0, 212, 170, 0.07), transparent),
    radial-gradient(ellipse 500px 400px at 70% 50%, rgba(59, 130, 246, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}
.h-cta-section .cta {
  position: relative;
  z-index: 1;
}


/* ---- VIBE UPGRADES ---- */
body.is-home .hero__title {
  color: #fff;
}
body.is-home .hero__sub {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1.75;
  max-width: 520px;
}
body.is-home .pill--lg {
  padding: 16px 36px;
  font-size: 16px;
}
body.is-home .cta__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
body.is-home .cta__sub {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
}


/* ---- FOOTER ENHANCEMENT ---- */
body.is-home .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* ============================================
   FIREFOX FALLBACK — no backdrop-filter support
   ============================================ */
@supports not (backdrop-filter: blur(1px)) {
  .h-bento__card,
  .h-ind-card {
    background: rgba(18, 21, 28, 0.92);
  }
  body.is-home .nav {
    background: rgba(11, 13, 17, 0.92);
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .h-bento__card--wide {
    grid-column: span 2;
  }
  .h-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .h-industries {
    grid-template-columns: repeat(2, 1fr);
  }
  .h-hero-phone {
    flex: 0 0 260px;
  }
  .h-phone-frame {
    width: 250px;
  }
  .h-hero-split {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  body.is-home .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Hero stacks vertically */
  .h-hero-split {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .h-hero-text {
    order: 1;
  }
  .h-hero-phone {
    order: 2;
    flex: none;
    transform: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  }
  .h-hero-phone:hover {
    transform: none;
  }
  .h-hero-split .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
  .h-hero-split .hero__cta {
    justify-content: center;
  }
  .h-phone-frame {
    width: 260px;
    margin: 0 auto;
  }

  /* Bento */
  .h-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .h-bento__card,
  .h-bento__card--wide {
    grid-column: span 1;
  }
  .h-bento__inner {
    padding: 28px;
  }
  .h-bento__card--wide .h-bento__inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .h-bento__mockup {
    align-self: center;
  }

  /* Industries */
  .h-industries {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Timeline */
  .h-timeline {
    padding-left: 50px;
  }
  .h-timeline__node {
    left: -50px;
  }
  .h-timeline__num {
    width: 34px; height: 34px;
    font-size: 13px;
  }
  .h-timeline__card {
    padding: 20px;
  }
  .h-timeline__title {
    font-size: 17px;
  }

  /* Reduce hero mesh for performance */
  .h-hero-mesh__orb {
    filter: blur(70px);
  }
  .h-hero-mesh__orb--teal { width: 360px; height: 360px; }
  .h-hero-mesh__orb--blue { width: 300px; height: 300px; }
  .h-hero-mesh__orb--purple { width: 250px; height: 250px; }

  .h-hero-grid {
    display: none;
  }
  .h-hero-particles {
    display: none;
  }

  .h-stats-section .stat {
    max-width: 100%;
  }

  /* Hide floating dots on mobile */
  .h-float-dot {
    display: none;
  }
}

@media (max-width: 480px) {
  .h-industries {
    grid-template-columns: 1fr;
  }
  .h-ind-card__inner {
    padding: 24px 20px;
  }
  .h-timeline {
    padding-left: 44px;
  }
  .h-timeline__node {
    left: -44px;
  }
  .h-timeline__num {
    width: 30px; height: 30px;
    font-size: 12px;
  }
  .h-timeline__step {
    padding: 18px 0;
  }
  .h-bento__inner .feature__title {
    font-size: 19px;
  }
  .h-phone-frame {
    width: 240px;
  }
  .h-phone-screen {
    padding: 8px 10px 12px;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .h-hero-mesh__orb,
  .h-timeline__pulse,
  .h-bento__border,
  .h-ind-card__border,
  .h-hero-particles::before,
  .h-hero-particles::after,
  .h-float-dot,
  .h-live-badge__dot::after,
  .h-live-badge__arrow,
  .h-mini-chat__typing span {
    animation: none !important;
  }
  .h-timeline__line-fill {
    height: 100% !important;
    transition: none !important;
  }
  .h-bento__card,
  .h-ind-card,
  .h-timeline__card,
  .h-hero-phone {
    transition: none !important;
  }
  .h-float-dot {
    opacity: 1 !important;
  }
}
