/* ============================================================
   home.css — Pureframe Labs Labs
   Hero, Services, Why Us, Testimonials, Process sections
   ============================================================ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 30px);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 20px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -30px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

h1.hero-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 24px;
}

h1.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 45px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 14px;
  color: var(--text2);
  margin-top: 2px;
}

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  height: 520px;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-card-main {
  width: 360px;
  top: 100px;
  right: 0;
  animation: cardFloat 6s ease-in-out infinite;
}

.hero-card-sm1 {
  width: 200px;
  bottom: 40px;
  left: 20px;
  animation: cardFloat 7s ease-in-out infinite 1s;
}

.hero-card-sm2 {
  width: 220px;
  top: 60px;
  left: 60px;
  animation: cardFloat 8s ease-in-out infinite 0.5s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.card-sub {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  margin-top: 4px;
}

.card-bar-wrap {
  margin-top: 14px;
}

.card-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-bar-label {
  font-size: 12px;
  color: var(--text2);
  width: 64px;
}

.card-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg2);
  flex: 1;
  overflow: hidden;
}

.card-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
}

.chip-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.chip-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--text2);
  border: 1px solid var(--border);
}

/* ── WHY CHOOSE US ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-features {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.why-feature {
  display: flex;
  gap: 16px;
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.why-feature p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
}

.why-visual {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-row {
  display: flex;
  gap: 16px;
}

.metric-card {
  flex: 1;
  background: var(--bg);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.metric-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.metric-lbl {
  font-size: 13px;
  color: var(--text2);
  margin-top: 4px;
}

.metric-change {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-top: 6px;
}

.bar-chart {
  background: var(--bg);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.bar-chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar-item {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--primary);
  opacity: 0.15;
}

.bar-item.active {
  opacity: 1;
}

.bar-months {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text2);
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.stars {
  color: #F59E0B;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.author-role {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

/* ── PROCESS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -12%;
  width: 24%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), rgba(37, 99, 235, 0.1));
  border-radius: 999px;
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(37, 99, 235, 0.15);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── HOME UTILITIES (Replaced Inline Styles) ── */
.bar-h-40 {
  height: 40%;
}

.bar-h-60 {
  height: 60%;
}

.bar-h-55 {
  height: 55%;
}

.bar-h-75 {
  height: 75%;
}

.bar-h-65 {
  height: 65%;
}

.bar-h-90 {
  height: 90%;
}

.bar-fill-100 {
  width: 100%;
}

.bar-fill-85 {
  width: 85%;
}

.bar-fill-70 {
  width: 70%;
}

.bar-fill-40 {
  width: 40%;
}

.card-value-unit {
  font-size: 16px;
  font-weight: 500;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.card-chips {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 0 20px;
  }

  .hero-stats {
    gap: 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

/* ==========================
   HOME MOBILE
========================== */

@media screen and (max-width: 768px) {

  .hero h1 {
    font-size: 3.5rem;
    line-height: 1.05;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .hero-actions .btn {
    width: 100%;
  }

}