/* meshx.uk ecosystem landing page — additional styles */

/* ── Hero with animated orbs + futuristic grid + circuit traces ── */
.hero-eco {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(236, 72, 153, 0.2), transparent 50%),
    linear-gradient(135deg, #0b0d12 0%, #11141e 100%);
  /* Override site.css .hero padding so we don't pile space on top of the
   * existing 5rem 1.5rem 5.5rem. Keep content tight + centered. */
  padding: 3.5rem 1.5rem 4rem !important;
  text-align: center;
  justify-content: center; /* centre flex children vertically */
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-a { width: 460px; height: 460px; top: -120px; left: -120px; background: #6366f1; animation: float-a 18s ease-in-out infinite; }
.hero-orb-b { width: 360px; height: 360px; bottom: -100px; right: -100px; background: #ec4899; animation: float-b 22s ease-in-out infinite; }
.hero-orb-c { width: 280px; height: 280px; top: 30%; right: 25%; background: #fbbf24; opacity: 0.22; animation: float-c 26s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -50px); } }
@keyframes float-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -40px); } }

/* Subtle perspective grid (CSS only, no images) */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(165, 180, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: 0;
  animation: grid-drift 60s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}

/* Circuit-trace SVG overlay — runs corner to corner with glowing junction dots */
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  animation: circuit-pulse 6s ease-in-out infinite;
}
.hero-circuit circle {
  animation: dot-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #818cf8);
}
.hero-circuit circle:nth-child(2) { animation-delay: 0.4s; }
.hero-circuit circle:nth-child(3) { animation-delay: 0.8s; }
.hero-circuit circle:nth-child(4) { animation-delay: 1.2s; }
.hero-circuit circle:nth-child(5) { animation-delay: 1.6s; }
.hero-circuit circle:nth-child(6) { animation-delay: 2.0s; }
@keyframes circuit-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
@keyframes dot-pulse {
  0%, 100% { r: 3; opacity: 0.7; }
  50%      { r: 5; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb-a, .hero-orb-b, .hero-orb-c,
  .hero-grid, .hero-circuit, .hero-circuit circle { animation: none; }
}

.hero-eco .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Centered MX logo — override site.css .hero-logo (uses min(220px,55vw) +
 * 2.5rem bottom margin). We want it smaller and tighter. */
.hero-eco .hero-logo {
  display: block !important;
  margin: 0 auto 1.5rem !important;
  width: clamp(96px, 14vw, 160px) !important;
  height: auto !important;
  filter: drop-shadow(0 8px 32px rgba(129, 140, 248, 0.5));
}

.hero-eco h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero-eco h1 .hero-h1-grad {
  background: linear-gradient(90deg, #818cf8, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-eco .lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.hero-eco .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* ── Counter row under hero ── */
.eco-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.eco-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eco-counter strong {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--mono, ui-monospace, monospace);
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* ── Section label tones ── */
.section-label-live {
  color: #10b981 !important;
}
.section-label-live::before {
  content: '● ';
}
.section-label-soon {
  color: #f59e0b !important;
}

/* ── Product grid (live + coming soon share) ── */
.eco-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.eco-card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.eco-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 20px;
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.25s;
  overflow: hidden;
}
.eco-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-tint, transparent);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.eco-card > * { position: relative; z-index: 1; }
.eco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.18);
  border-color: #c7d2fe;
}
.eco-card-pod      { --card-tint: linear-gradient(135deg, #4f46e5, #06b6d4); }
.eco-card-photo    { --card-tint: linear-gradient(135deg, #ec4899, #f97316); }
.eco-card-chatbot  { --card-tint: linear-gradient(135deg, #10b981, #06b6d4); }
.eco-card-browser  { --card-tint: linear-gradient(135deg, #8b5cf6, #ec4899); }
.eco-card-marketing{ --card-tint: linear-gradient(135deg, #f59e0b, #ef4444); }

.eco-card-status {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.eco-card-status.status-soon {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.eco-card-soon {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border-color: #fde68a;
}

.eco-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: #0b0d12;
  letter-spacing: -0.01em;
}
.eco-card-domain {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.85rem;
  color: #6366f1;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.eco-card-tag {
  font-size: 1rem;
  font-weight: 600;
  color: #2b3447;
  margin: 0 0 0.75rem;
}
.eco-card-desc {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #586173;
  margin: 0 0 1.25rem;
}
.eco-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: #2b3447;
  flex: 1;
}
.eco-card-bullets li {
  padding: 0.3rem 0;
  border-top: 1px solid #f1f3f9;
}
.eco-card-bullets li:first-child {
  border-top: 0;
}
.eco-card-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eco-card-cta .btn { flex: 1 1 auto; justify-content: center; }
.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* ── Big primary CTA variant (shared) ── */
.btn-xl {
  font-size: 1.05rem;
  padding: 0.95rem 1.75rem;
  font-weight: 700;
}

/* ── Sections — fix horizontal padding (site.css uses padding:5rem 0 globally
 *    which leaves text flush-left at narrow viewports. Add proper horizontal
 *    padding + centre the inner content via a max-width container.
 */
#live,
.eco-coming,
.eco-about,
.ic-cta,
#contact {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
#live { padding-top: 5rem !important; padding-bottom: 4rem !important; }
.eco-coming {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
/* Centre + cap the section's headers + lead text in same flow as the card grid */
.eco-products > .section-label,
.eco-products > h2,
.eco-products > .lead,
.eco-coming > .section-label,
.eco-coming > h2,
.eco-coming > .lead,
.eco-about > .section-label,
.eco-about > h2 {
  max-width: var(--max, 1200px);
  margin-left: auto;
  margin-right: auto;
}
.eco-coming > .lead { max-width: 680px; }

/* ── Inner Circle CTA section ── */
.ic-cta {
  background:
    radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.18), transparent 60%),
    linear-gradient(135deg, #1a1d2e 0%, #0b0d12 100%);
  color: #fff;
  padding: 5rem 1.5rem !important;
  text-align: center;
}
.ic-cta-inner {
  max-width: 820px;
  margin: 0 auto;
}
.ic-cta-pill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  margin: 0 0 1rem;
}
.ic-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: #fff;
  margin: 0 0 1rem;
}
.ic-cta-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.ic-cta-lead strong { color: #fbbf24; }
.ic-cta-price {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 2rem;
}

/* ── About grid ── */
.eco-about {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about-block {
  background: #f8fafc;
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  padding: 1.5rem;
}
.about-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.about-block p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #586173;
}
