/* ============================================================
   ADPLIX – Home Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  padding-top: 90px;
  overflow: hidden;
  gap: 3rem;
}

/* Animated grid lines background */
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transition: transform 0.1s ease-out;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,212,255,.18) 0%, transparent 70%);
  top: -100px; right: -80px;
}
.hero-orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(15,36,72,.8) 0%, transparent 70%);
  bottom: 60px; left: -60px;
}

/* Hero content */
.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -1px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--cyan), #7b2fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--grey);
  max-width: 520px;
}

/* Hero visual / Hex grid */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease-out;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 12px;
  transition: transform 0.12s ease-out;
}

.hex {
  width: 120px; height: 138px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.4s ease;
  position: relative;
}
.hex::after {
  content: '';
  position: absolute; inset: 2px;
  background: linear-gradient(135deg, rgba(0,212,255,.06), transparent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex.active {
  background: linear-gradient(135deg, rgba(0,212,255,.25), rgba(123,47,255,.15));
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,212,255,.4), inset 0 0 20px rgba(0,212,255,.08);
}
.hex:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,.3);
  transform: scale(1.06);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--grey);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── Stats ── */
.stats-section { padding-top: 3rem; padding-bottom: 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.stat-card:hover::before { opacity: 1; }

/* ── Services Preview ── */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.service-card {
  padding: 2.2rem;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--cyan);
  margin-bottom: 1.4rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: rgba(0,212,255,.2);
  box-shadow: var(--glow-sm);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 1px; margin-bottom: .7rem;
  color: var(--white);
}
.service-card p { font-size: .9rem; color: var(--grey); line-height: 1.7; }
.service-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem; font-size: .8rem; font-weight: 600;
  letter-spacing: 1px; color: var(--cyan);
  transition: gap 0.25s;
}
.service-link:hover { gap: .8rem; }

/* ── Process ── */
.process-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
}
.process-step {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
}
.process-step:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 900;
  color: rgba(0,212,255,.2);
  line-height: 1;
  margin-bottom: .8rem;
  transition: color 0.3s;
}
.process-step:hover .step-num { color: rgba(0,212,255,.5); }
.step-body h3 {
  font-family: var(--font-head);
  font-size: .95rem; letter-spacing: 2px;
  margin-bottom: .6rem; color: var(--white);
}
.step-body p { font-size: .88rem; color: var(--grey); line-height: 1.7; }
.process-connector {
  width: 40px; flex-shrink: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dim));
  margin-top: 2.8rem; opacity: 0.4;
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.testimonial-card {
  padding: 2rem;
  transition: all 0.35s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.stars { color: var(--cyan); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card > p { font-size: .92rem; color: var(--grey); line-height: 1.75; font-style: italic; }
.testimonial-card footer {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem; border-top: 1px solid var(--glass-border); padding-top: 1.2rem;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #7b2fff);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  color: var(--navy); flex-shrink: 0;
}
.testimonial-card footer strong { display: block; font-size: .9rem; color: var(--white); }
.testimonial-card footer span { font-size: .78rem; color: var(--grey); }

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--white);
}
.cta-title span { color: var(--cyan); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 120px; padding-bottom: 4rem; }
  .hero-sub { margin: 1.2rem auto 0; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .process-steps { flex-direction: column; gap: 1rem; }
  .process-connector { width: 2px; height: 30px; margin: 0 0 0 2rem; }
  .services-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
