/* ========================================================================
   XARKLO Homepage Styles
   Layout & styling specific to index.html sections.
   Shared base styles (cards, buttons, badges, variables) come from
   premium-global-layer.css and premium-header-footer.css.
   ======================================================================== */

/* ═══ HERO ═══ */
.hero {
  padding: 100px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--xkg-radius-lg, 24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.08);
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: var(--xkg-radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.08);
}

.hero-video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--xk-gold-light, #f3e5ab);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hero-video-overlay:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--xk-gold, #d4af37);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}

/* ═══ TRUST BAR ═══ */
.trust-bar {
  padding: 40px 0;
  position: relative;
}

.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: var(--xkg-radius-md, 18px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xkg-border, rgba(255, 255, 255, 0.085));
}

.stat-num {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  color: var(--xkg-gold, #d4af37);
  background: linear-gradient(135deg, var(--xkg-gold-soft, #f3e5ab), var(--xkg-gold, #d4af37) 52%, var(--xkg-cyan, #00d9ff));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: clamp(0.75rem, 0.9vw, 0.88rem);
  color: var(--xkg-muted, #b9c3d7);
  font-weight: 500;
}

/* ═══ SERVICES HOME ═══ */
.services-home {
  position: relative;
}

.svc-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
}

.svc-card-home {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--xkg-radius-lg, 24px);
  border: 1px solid var(--xkg-border, rgba(255, 255, 255, 0.085));
  background:
    radial-gradient(480px 260px at 50% 0%, rgba(255, 255, 255, 0.075), transparent 60%),
    linear-gradient(180deg, rgba(20, 28, 50, 0.74), rgba(9, 13, 24, 0.9));
  box-shadow: var(--xkg-shadow-card, 0 22px 70px rgba(0, 0, 0, 0.34));
  transition:
    transform 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-card-home:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: var(--xkg-shadow-hover, 0 34px 90px rgba(0, 0, 0, 0.45));
}

.svc-icon-home {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.svc-card-home h3 {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.svc-card-home p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--xkg-muted, #b9c3d7);
  margin: 0;
  flex: 1;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--xkg-gold, #d4af37);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: 6px;
  transition: gap 0.25s ease;
}

.svc-link:hover {
  gap: 10px;
  color: var(--xkg-gold-soft, #f3e5ab);
}

/* ═══ WHY SECTION ═══ */
.why-section {
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}

.why-card h3 {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.why-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--xkg-muted, #b9c3d7);
  margin: 0;
}

/* ═══ PROOF / CASE STUDY ═══ */
.proof-home {
  position: relative;
}

.proof-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
}

.proof-image {
  border-radius: var(--xkg-radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.proof-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.proof-card:hover .proof-image img {
  transform: scale(1.035);
}

.proof-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
  color: #ffe9b9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-info h4 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.proof-info p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: var(--xkg-muted, #b9c3d7);
  margin: 0;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials-section {
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--xkg-radius-lg, 24px);
  border: 1px solid var(--xkg-border, rgba(255, 255, 255, 0.085));
  background:
    radial-gradient(400px 220px at 50% 0%, rgba(255, 255, 255, 0.065), transparent 60%),
    linear-gradient(180deg, rgba(20, 28, 50, 0.7), rgba(9, 13, 24, 0.88));
  box-shadow: var(--xkg-shadow-card, 0 22px 70px rgba(0, 0, 0, 0.34));
  transition:
    transform 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.38s var(--xkg-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.005);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: var(--xkg-shadow-hover, 0 34px 90px rgba(0, 0, 0, 0.45));
}

.testimonial-stars {
  color: var(--xkg-gold, #d4af37);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--xkg-muted, #b9c3d7);
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--xkg-border, rgba(255, 255, 255, 0.085));
  padding-top: 12px;
}

.testimonial-author strong {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--xkg-faint, #7e8aa4);
}

/* ═══ CTA GLASS BOX ═══ */
.cta-section-home {
  position: relative;
}

.cta-glass-box {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border-radius: var(--xkg-radius-xl, 32px);
  border: 1px solid var(--xkg-border, rgba(255, 255, 255, 0.085));
  background:
    radial-gradient(500px 300px at 50% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(20, 28, 50, 0.78), rgba(9, 13, 24, 0.92));
  box-shadow: var(--xkg-shadow-hover, 0 34px 90px rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-glass-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  max-width: 600px;
}

.cta-glass-box p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--xkg-muted, #b9c3d7);
  margin: 0;
  max-width: 480px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

/* ═══ BUTTON VARIANTS ═══ */
.btn-primary {
  background: linear-gradient(135deg, var(--xk-gold, #d4af37), var(--xk-gold-light, #e8c547));
  color: #0a0e1a;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.35);
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual img {
    max-width: 480px;
  }

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

@media (max-width: 900px) {
  .hero {
    padding: 80px 0 40px;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .svc-grid-home {
    grid-template-columns: 1fr !important;
    max-width: 480px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proof-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proof-tag {
    align-self: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .cta-glass-box {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-visual img {
    max-width: 100%;
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .trust-bar {
    padding: 24px 0;
  }

  .cta-glass-box h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .trust-inner {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .stat-box {
    padding: 12px 8px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .svc-grid-home {
    grid-template-columns: 1fr !important;
  }

  .proof-card {
    grid-template-columns: 1fr !important;
  }

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