/* ========== Houz of App — Rich Motion Design ========== */

/* --- Background layers --- */
.mesh-gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(249, 115, 22, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(251, 146, 60, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 50% at 70% 80%, rgba(234, 88, 12, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(251, 146, 60, 0.05), transparent 50%);
  animation: meshShift 18s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  background: rgba(249, 115, 22, 0.15);
  top: -10%; left: -8%;
  animation-delay: 0s;
}
.orb-2 {
  width: 360px; height: 360px;
  background: rgba(251, 146, 60, 0.1);
  bottom: 10%; right: -5%;
  animation-delay: -4s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: rgba(234, 88, 12, 0.08);
  top: 45%; left: 40%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 15px); }
}

/* --- Hero decorative shapes --- */
.hero-shape {
  position: absolute;
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 24px;
  pointer-events: none;
}
.shape-1 {
  width: 180px; height: 180px;
  top: 10%; right: 8%;
  animation: shapeSpin 20s linear infinite;
  background: linear-gradient(135deg, rgba(249,115,22,0.05), transparent);
}
.shape-2 {
  width: 100px; height: 100px;
  bottom: 20%; right: 22%;
  border-radius: 50%;
  animation: shapeSpin 15s linear infinite reverse;
  border-color: rgba(251,146,60,0.2);
}
.shape-3 {
  width: 60px; height: 60px;
  top: 35%; right: 5%;
  border-radius: 12px;
  animation: shapeSpin 12s linear infinite;
  transform: rotate(45deg);
}
@keyframes shapeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 40%, #fdba74 70%, #fb923c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s ease infinite;
}
@keyframes gradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --- Section label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, #f97316, transparent);
  border-radius: 1px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  border-radius: 0.875rem;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Nav --- */
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}
.marquee-item .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,0.5);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Solution cards --- */
.solution-card {
  padding: 1.6rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.solution-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(249, 115, 22, 0.15);
}
.solution-card:hover::before { opacity: 1; }
.card-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fb923c;
  margin-bottom: 1.1rem;
  transition: all 0.3s ease;
}
.solution-card:hover .card-icon {
  background: rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
  transform: scale(1.05);
}

/* --- Product cards --- */
.product-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.product-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.product-glow {
  position: absolute;
  top: -40%; right: -20%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse, rgba(249,115,22,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.product-card:hover .product-glow { opacity: 1; }

.product-badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.02em;
}

.metric-pill {
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 1rem;
  transition: all 0.3s ease;
}
.product-card:hover .metric-pill {
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.15);
}
.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Grotesk", Inter, sans-serif;
  color: #fb923c;
  line-height: 1.2;
}
.metric-label {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.3;
}

.feature-tile {
  border-radius: 0.875rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  padding: 1rem;
  transition: all 0.3s ease;
}
.feature-tile:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(249,115,22,0.2);
  transform: translateY(-2px);
}
.feature-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

/* --- About panel --- */
.about-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), transparent);
}
.about-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 12px rgba(249,115,22,0.5);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* --- CTA --- */
.cta-panel {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(249,115,22,0.2);
  background: linear-gradient(145deg, rgba(249,115,22,0.08), rgba(2,6,23,0.9));
  padding: 3rem 2rem;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(249,115,22,0.15), transparent 70%);
  pointer-events: none;
}

/* --- Contact --- */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.contact-row:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(249,115,22,0.15);
}
.contact-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fb923c;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.contact-row:hover .contact-icon {
  background: rgba(249,115,22,0.2);
  box-shadow: 0 0 16px rgba(249,115,22,0.2);
}

.form-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 1.75rem;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s ease;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  outline: none;
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
  background: rgba(255,255,255,0.06);
}

/* --- Reveal animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-section, .reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.visible, .reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card { transition-delay: var(--delay, 0s); }

/* --- Scrollbar & selection --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
::selection { background: rgba(249, 115, 22, 0.3); color: #fff; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .mesh-gradient, .orb, .hero-shape, .marquee-track, .gradient-text, .btn-primary::before {
    animation: none !important;
  }
  .reveal-up, .reveal-section, .reveal-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
