/* ─────────────────────────────────────────
   SECTIONS.CSS — Per-section layout styles
───────────────────────────────────────── */

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  text-align: center;
}
.hero-content {
  max-width: 820px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 42px;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 68px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--teal2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}
.orb-1 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, rgba(0,168,150,0.10), transparent 70%);
  top: -100px; left: -200px;
  animation: float-orb 13s ease-in-out infinite;
}
.orb-2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  background: radial-gradient(circle, rgba(29,111,242,0.08), transparent 70%);
  top: 200px; right: -100px;
  animation: float-orb 17s ease-in-out infinite reverse;
}
.orb-3 {
  width: min(300px, 60vw);
  height: min(300px, 60vw);
  background: radial-gradient(circle, rgba(0,198,176,0.07), transparent 70%);
  bottom: 0; left: 50%;
  animation: float-orb 11s ease-in-out infinite;
}

/* ─── SERVICES ─── */
#services { padding: 110px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ─── AI ECOSYSTEM ─── */
#ai-ecosystem {
  padding: 110px 0;
  background: linear-gradient(180deg, transparent, rgba(0,168,150,0.04), transparent);
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Orbital system container ── */
.eco-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft radial glow behind everything */
.eco-visual::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,150,0.10) 0%, rgba(29,111,242,0.06) 50%, transparent 75%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Center core ── */
.eco-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal2), var(--blue));
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow:
    0 0 0 12px rgba(0,168,150,0.08),
    0 0 0 24px rgba(0,168,150,0.04),
    0 8px 32px rgba(0,168,150,0.35);
  animation: pulse-center 3s ease-in-out infinite;
}
.eco-center-icon { width: 40px; height: 40px; color: #fff; }

/* ── Orbital rings ── */
.eco-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid;
  transform: translate(-50%, -50%);
  animation: rotate-ring linear infinite;
}
.eco-orbit-1 {
  width: 180px; height: 180px;
  border-color: rgba(0,168,150,0.40);
  animation-duration: 14s;
}
.eco-orbit-2 {
  width: 290px; height: 290px;
  border-color: rgba(29,111,242,0.28);
  border-style: dashed;
  animation-duration: 24s;
  animation-direction: reverse;
}
.eco-orbit-3 {
  width: 410px; height: 410px;
  border-color: rgba(0,168,150,0.14);
  animation-duration: 40s;
}

/* ── Orbital items ── */
.eco-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0; height: 0;          /* zero-size anchor at center */
  animation: orbit-spin linear infinite;
}
.eco-orbit-item .eco-item-inner {
  position: absolute;
  animation: orbit-counter linear infinite;
  /* translate(-50%,-50%) is inside the keyframe */
}

/* Items on orbit 1 (r = 90px) */
.eco-orbit-1 .eco-orbit-item { animation-duration: 14s; }
.eco-orbit-1 .eco-orbit-item .eco-item-inner { animation-duration: 14s; }

.eco-orbit-1 .eco-orbit-item:nth-child(1) { animation-delay: 0s; }
.eco-orbit-1 .eco-orbit-item:nth-child(1) .eco-item-inner { animation-delay: 0s; }
.eco-orbit-1 .eco-orbit-item:nth-child(2) { animation-delay: -7s; }
.eco-orbit-1 .eco-orbit-item:nth-child(2) .eco-item-inner { animation-delay: -7s; }

/* Items on orbit 2 (r = 145px) */
.eco-orbit-2 .eco-orbit-item { animation-duration: 24s; animation-direction: reverse; }
.eco-orbit-2 .eco-orbit-item .eco-item-inner { animation-duration: 24s; animation-direction: reverse; }

.eco-orbit-2 .eco-orbit-item:nth-child(1) { animation-delay: 0s; }
.eco-orbit-2 .eco-orbit-item:nth-child(1) .eco-item-inner { animation-delay: 0s; }
.eco-orbit-2 .eco-orbit-item:nth-child(2) { animation-delay: -8s; }
.eco-orbit-2 .eco-orbit-item:nth-child(2) .eco-item-inner { animation-delay: -8s; }
.eco-orbit-2 .eco-orbit-item:nth-child(3) { animation-delay: -16s; }
.eco-orbit-2 .eco-orbit-item:nth-child(3) .eco-item-inner { animation-delay: -16s; }

/* Items on orbit 3 (r = 205px) */
.eco-orbit-3 .eco-orbit-item { animation-duration: 40s; }
.eco-orbit-3 .eco-orbit-item .eco-item-inner { animation-duration: 40s; }

.eco-orbit-3 .eco-orbit-item:nth-child(1) { animation-delay: 0s; }
.eco-orbit-3 .eco-orbit-item:nth-child(1) .eco-item-inner { animation-delay: 0s; }
.eco-orbit-3 .eco-orbit-item:nth-child(2) { animation-delay: -13.3s; }
.eco-orbit-3 .eco-orbit-item:nth-child(2) .eco-item-inner { animation-delay: -13.3s; }
.eco-orbit-3 .eco-orbit-item:nth-child(3) { animation-delay: -26.6s; }
.eco-orbit-3 .eco-orbit-item:nth-child(3) .eco-item-inner { animation-delay: -26.6s; }
.eco-orbit-3 .eco-orbit-item:nth-child(4) { animation-delay: -20s; }
.eco-orbit-3 .eco-orbit-item:nth-child(4) .eco-item-inner { animation-delay: -20s; }

/* Icon pill style */
.eco-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  transition: box-shadow 0.3s;
}
.eco-pill:hover {
  box-shadow: 0 6px 24px rgba(0,168,150,0.18), 0 2px 8px rgba(0,0,0,0.07);
}
.eco-pill-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eco-pill-icon svg { width: 14px; height: 14px; }

/* Small square icon for orbit 1 */
.eco-sq {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  display: flex; align-items: center; justify-content: center;
}
.eco-sq svg { width: 20px; height: 20px; }

/* Orbit spin keyframes — correct technique:
   wrapper rotates around center, child counter-rotates to stay upright */
@keyframes orbit-spin {
  from { transform: rotate(0deg) translateX(var(--orbit-r)); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)); }
}
@keyframes orbit-counter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* orbit-2 reverses, so counter must go positive */
.eco-orbit-2 .eco-orbit-item .eco-item-inner {
  animation-name: orbit-counter-rev;
}
@keyframes orbit-counter-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Eco text & features ── */
.eco-text h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.eco-text > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 300;
}
.eco-features { display: flex; flex-direction: column; gap: 14px; }
.eco-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.eco-feature:hover { border-color: var(--border2); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.eco-feature-icon { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.eco-feature h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.eco-feature p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ─── DASHBOARD ─── */
#dashboard { padding: 110px 0; }
.dashboard-mockup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.10), 0 8px 30px rgba(0,0,0,0.05);
  margin-top: 56px;
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-dot:nth-child(1) { background: #ff5f56; }
.dash-dot:nth-child(2) { background: #ffbd2e; }
.dash-dot:nth-child(3) { background: #27c93f; }
.dash-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  background: var(--bg3);
  padding: 4px 12px;
  border-radius: 6px;
}
.dash-body { padding: 26px; }
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.dash-header h3 { font-size: 17px; font-weight: 700; }
.dash-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--teal); }
.dash-status-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.3s;
}
.metric-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.metric-label { font-size: 11px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 9px; }
.metric-value { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.metric-value.green { color: var(--teal); }
.metric-value.blue  { color: var(--blue); }
.metric-change { font-size: 11px; color: #22c55e; margin-top: 6px; }

.dash-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
}
.dash-chart-title { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--teal2), var(--blue2));
  animation: grow-bar 1.4s ease-out forwards;
  transform-origin: bottom;
}
.bar-label { font-size: 9px; color: var(--muted2); white-space: nowrap; }

.dash-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  transition: all 0.3s;
}
.agent-row:hover { border-color: var(--border2); }
.agent-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,235,218,0.18), rgba(59,130,246,0.12));
  flex-shrink: 0;
}
.agent-avatar svg { width: 18px; height: 18px; color: var(--teal); }
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-status-line { font-size: 11px; color: var(--muted); margin-top: 2px; }
.agent-badge { font-size: 10px; padding: 3px 8px; border-radius: 5px; font-weight: 500; flex-shrink: 0; }
.agent-badge.active { background: rgba(34,197,94,0.13); color: #22c55e; }
.agent-badge.busy   { background: rgba(99,235,218,0.1); color: var(--teal); }

/* ─── PROCESS ─── */
#process { padding: 110px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal3), var(--blue2), var(--teal3), transparent);
  z-index: 0;
}
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  background: var(--bg2);
  border: 2px solid var(--teal2);
  color: var(--teal);
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,168,150,0.12);
}
.step:hover .step-num {
  background: linear-gradient(135deg, rgba(0,168,150,0.10), rgba(29,111,242,0.07));
  border-color: var(--teal2);
  box-shadow: 0 0 24px rgba(0,168,150,0.22);
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── TESTIMONIALS ─── */
#testimonials { padding: 110px 0; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ─── CTA ─── */
#cta { padding: 110px 0; text-align: center; }
.cta-box {
  background: linear-gradient(135deg, rgba(0,168,150,0.06), rgba(29,111,242,0.05));
  border: 1px solid rgba(0,168,150,0.18);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}
.cta-box::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, rgba(0,168,150,0.25), transparent 40%, rgba(29,111,242,0.20));
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  animation: cta-border 4s ease-in-out infinite;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,150,0.06), transparent 70%);
  pointer-events: none; z-index: 0;
}
.cta-box h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.cta-box > p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 42px;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75;
  position: relative; z-index: 2;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-tag { position: relative; z-index: 2; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 800;
  color: var(--text);
}
.footer-logo span { color: var(--teal); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { color: var(--muted2); font-size: 12px; }
