/* =============================================================
   ADDAXART — HOME PAGE STYLES
   ============================================================= */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 55%, #0d2d4a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

/* Animated mesh background */
.hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,144,217,0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(212,175,55,0.05) 0%, transparent 40%);
  z-index: 0;
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__text {}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: var(--space-8);
  animation: fadeSlideDown 0.8s ease 0.2s both;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__eyebrow-text {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.hero__headline {
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  animation: fadeSlideUp 0.9s ease 0.35s both;
}

.hero__headline .line-accent { color: var(--gold); display: block; }
.hero__headline .line-normal { display: block; }

.hero__subheadline {
  font-size: clamp(1rem, 2vw, var(--text-md));
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--space-10);
  animation: fadeSlideUp 0.9s ease 0.5s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
  animation: fadeSlideUp 0.9s ease 0.65s both;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  animation: fadeSlideUp 0.9s ease 0.8s both;
}

.proof-avatars {
  display: flex;
}

.proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--navy);
  background: linear-gradient(135deg, var(--navy-light), var(--soft-blue));
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
}
.proof-avatar:first-child { margin-left: 0; }

.proof-text { font-size: var(--text-xs); color: rgba(255,255,255,0.55); line-height: 1.4; }
.proof-text strong { color: var(--white); display: block; font-size: var(--text-sm); }

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeScaleIn 1s ease 0.4s both;
}

/* ── Hero SVG Illustration ── */
.hero-illustration {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 20px 60px rgba(11,31,51,0.4));
}

/* ── Floating Metric Cards ── */
.hero-metric-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.metric-card-float {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  animation: float 6s ease-in-out infinite;
}

.metric-card-float:nth-child(1) {
  top: 8%;
  right: 0;
  animation-delay: 0s;
}
.metric-card-float:nth-child(2) {
  bottom: 15%;
  left: 0;
  animation-delay: 2s;
}
.metric-card-float:nth-child(3) {
  top: 55%;
  right: 5%;
  animation-delay: 4s;
}

.metric-card-float .val {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.metric-card-float .lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.metric-card-float .trend {
  font-size: var(--text-xs);
  color: #4ADE80;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Hero Bottom Bar ── */
.hero__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-5) 0;
  z-index: 1;
}

.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.35);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: color var(--ease-fast);
}
.hero__scroll-indicator:hover { color: var(--gold); }

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  80% { opacity: 0; transform: translateY(8px); }
}

/* ── Trusted By ── */
.trusted-section {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--border);
}

.trusted-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-gray);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-10);
}

.trusted-logo-item {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--mid-gray);
  letter-spacing: 0.06em;
  transition: color var(--ease-base);
  cursor: default;
}
.trusted-logo-item:hover { color: var(--navy); }

/* ── Why Choose Section ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-feature {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.why-feature:last-child { margin-bottom: 0; }

.why-feature__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.why-feature__body h4 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.why-feature__body p  { font-size: var(--text-sm); margin: 0; }

.why-visual {
  position: relative;
}

.why-visual__main {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

/* ── Stats Section ── */
.stats-section {
  padding: var(--space-20) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(74,144,217,0.06) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.stats-grid .stat-item {
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stats-grid .stat-item:last-child { border-right: none; }

/* ── Process Section ── */
.process-track {
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.25;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-left: var(--space-4);
}

/* ── Services Section (homepage) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Testimonials Section ── */
.testimonials-wrapper {
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Latest Insights Homepage ── */
.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

.insight-featured {
  background: var(--navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--ease-base);
}

.insight-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.insight-featured__image {
  height: 280px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1a4a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.insight-featured__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, transparent 60%);
}

.insight-featured__body {
  padding: var(--space-8);
}
.insight-featured__body h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.insight-featured__body p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); }

.insights-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.insight-mini {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--ease-base);
  cursor: pointer;
}
.insight-mini:hover {
  border-color: var(--navy);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.insight-mini h4 {
  font-size: var(--text-sm);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
}
.insight-mini time {
  font-size: var(--text-xs);
  color: var(--text-gray);
}

/* ── Animations ── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ── Responsive Hero ── */
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__subheadline { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__visual { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-metric-cards { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .trusted-logos { gap: var(--space-6); }
}
