/* ===== MOTION & VECTOR ENHANCEMENTS ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-visual svg * { animation: none !important; }
}

.hero { background: var(--navy); isolation: isolate; }
.hero::before { opacity: 0.4; }

.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(201,162,39,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 70%, rgba(42,74,107,0.6) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 10%, rgba(232,197,71,0.08) 0%, transparent 45%);
  animation: meshShift 14s ease-in-out infinite alternate;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 75%);
  animation: gridDrift 20s linear infinite;
}

@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(56px, 56px); }
}

.hero .container.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  position: relative;
  z-index: 2;
}

.hero-inner { max-width: none; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual svg,
.hero-visual img {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.2);
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-visual-ring:nth-child(1) { width: 280px; height: 280px; }
.hero-visual-ring:nth-child(2) { width: 340px; height: 340px; animation-delay: 1s; border-color: rgba(255,255,255,0.06); }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}

.svg-draw { stroke-dasharray: 800; stroke-dashoffset: 800; animation: svgDraw 2.5s ease forwards 0.3s; }
.svg-draw-slow { animation-duration: 3.5s; animation-delay: 0.8s; }
@keyframes svgDraw { to { stroke-dashoffset: 0; } }

.svg-pulse { animation: svgPulse 2.5s ease-in-out infinite; }
.svg-pulse-d2 { animation-delay: 0.5s; }
.svg-pulse-d3 { animation-delay: 1s; }
@keyframes svgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.svg-flow { animation: svgFlow 3s linear infinite; }
.svg-flow-rev { animation-direction: reverse; animation-duration: 4s; }
@keyframes svgFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.svg-orbit { animation: svgOrbit 12s linear infinite; transform-origin: 300px 250px; }
@keyframes svgOrbit {
  from { transform: rotate(-15deg); }
  to { transform: rotate(345deg); }
}

.svg-float { animation: svgFloat 5s ease-in-out infinite; }
.svg-float-d2 { animation-delay: 1.5s; }
.svg-float-d3 { animation-delay: 2.5s; }
@keyframes svgFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-12px); opacity: 1; }
}

.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-reveal-d1 { animation-delay: 0.15s; }
.hero-reveal-d2 { animation-delay: 0.3s; }
.hero-reveal-d3 { animation-delay: 0.45s; }
.hero-reveal-d4 { animation-delay: 0.6s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

.hero h1 {
  background: linear-gradient(135deg, #fff 0%, #fff 55%, rgba(232,197,71,0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lp h1,
.hero-compact h1 {
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--white);
}

.section-wave { line-height: 0; overflow: hidden; margin-top: -1px; }
.section-wave svg { width: 100%; height: 48px; display: block; }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--bg) 0%, #e8ecf2 100%); }
.page-hero-vectors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.page-hero-vectors::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  right: -100px; top: -100px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.15);
  animation: ringPulse 6s ease-in-out infinite;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card, .value-box, .usecase-card, .why-card, .team-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.card:hover, .value-box:hover, .usecase-card:hover, .why-card:hover, .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15, 28, 46, 0.12);
}

.eco-node.center {
  animation: ecoCenterPulse 3s ease-in-out infinite;
}
@keyframes ecoCenterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.2); }
  50% { box-shadow: 0 0 30px 8px rgba(201,162,39,0.15); }
}

.eco-arrow { animation: arrowBounce 1.5s ease-in-out infinite; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-parent.visible .stagger-child { opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(1) { transition-delay: 0.05s; }
.stagger-parent.visible .stagger-child:nth-child(2) { transition-delay: 0.12s; }
.stagger-parent.visible .stagger-child:nth-child(3) { transition-delay: 0.19s; }
.stagger-parent.visible .stagger-child:nth-child(4) { transition-delay: 0.26s; }
.stagger-parent.visible .stagger-child:nth-child(5) { transition-delay: 0.33s; }
.stagger-parent.visible .stagger-child:nth-child(6) { transition-delay: 0.4s; }

.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 24px rgba(15,28,46,0.08);
}

.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(201,162,39,0.1) 0%, transparent 40%);
  animation: meshShift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-box { transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease; }
.cta-box:hover { transform: translateY(-4px); border-color: rgba(201,162,39,0.4); background: rgba(255,255,255,0.08); }

.section-alt { position: relative; }
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,162,39,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}
.section-alt > .container { position: relative; z-index: 1; }

.value-box { position: relative; overflow: hidden; }
.value-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  animation: gradientSlide 4s linear infinite;
}
@keyframes gradientSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.flow-step { opacity: 0; transform: translateX(-16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.flow-steps.animated .flow-step { opacity: 1; transform: translateX(0); }
.flow-steps.animated .flow-step:nth-child(1) { transition-delay: 0.05s; }
.flow-steps.animated .flow-step:nth-child(2) { transition-delay: 0.1s; }
.flow-steps.animated .flow-step:nth-child(3) { transition-delay: 0.15s; }
.flow-steps.animated .flow-step:nth-child(4) { transition-delay: 0.2s; }
.flow-steps.animated .flow-step:nth-child(5) { transition-delay: 0.25s; }
.flow-steps.animated .flow-step:nth-child(6) { transition-delay: 0.3s; }
.flow-steps.animated .flow-step:nth-child(7) { transition-delay: 0.35s; }
.flow-steps.animated .flow-step:nth-child(8) { transition-delay: 0.4s; }
.flow-steps.animated .flow-step:nth-child(9) { transition-delay: 0.45s; }
.flow-step:hover .flow-step-num { transform: scale(1.1); box-shadow: 0 0 20px rgba(201,162,39,0.4); }
.flow-step-num { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.faq-item.open { background: rgba(201,162,39,0.04); }

.section-label { position: relative; padding-left: 20px; }
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: svgPulse 2s ease-in-out infinite;
}

.deco-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.deco-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,162,39,0.06);
  animation: decoFloat 8s ease-in-out infinite;
}
.deco-shape:nth-child(1) { width: 120px; height: 120px; top: 15%; left: 5%; }
.deco-shape:nth-child(2) { width: 80px; height: 80px; top: 60%; right: 8%; animation-delay: 2s; background: rgba(255,255,255,0.04); }
.deco-shape:nth-child(3) { width: 50px; height: 50px; bottom: 20%; left: 20%; animation-delay: 4s; }
@keyframes decoFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -15px); }
  66% { transform: translate(-8px, 8px); }
}

@media (max-width: 900px) {
  .hero .container.hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; min-height: 220px; max-width: 360px; margin: 0 auto; }
  .hero-visual-ring { display: none; }
  .hero .btn-group { justify-content: center; }
}
