/* ==========================================================================
   AAGENTO — UNIFIED BOX SYSTEM & THEME
   100% Clean White / Light Theme · Precision Civil & Structural Engineering Aesthetic
   ========================================================================== */

/* ── 1. BODY & ANIMATED PARTICLES CANVAS (#bg-canvas1) ────────────────────── */
body {
  background-color: var(--bg, #ffffff) !important;
  background-image: none !important;
}

#bg-canvas1 {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* ── 2. SECTION TRANSPARENCIES (Canvas particles flow smoothly behind) ────── */
.home-platform-section,
.workflow-box-section,
.capabilities-showcase-section,
.target-users-section,
.who-we-are,
.video-section {
  background: transparent !important;
  position: relative;
  z-index: 5;
}

/* ── 3. END-TO-END WORKFLOW (ALL FLOW AT ONCE IN STUDIO WHITE BOX) ────────── */
.workflow-box-section {
  padding: 30px 20px !important;
  position: relative;
}

.workflow-box-section .node-scene {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 !important;
}

.workflow-box-section .bridge-services {
  max-width: 1240px !important;
  margin: 0 auto !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(50, 95, 244, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  padding: 44px 30px !important;
  position: relative;
  z-index: 10;
}

#node-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
}

.node-thread {
  animation: flowDash 1.4s linear infinite;
  stroke: #325ff4 !important;
}

/* ── 4. CORE CAPABILITIES (3D CAROUSEL SLIDER IN MASTER WHITE BOX) ────────── */
.capabilities-showcase-section {
  padding: 30px 20px !important;
}

.capabilities-showcase-section .cap-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(50, 95, 244, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  padding: 44px 30px 30px !important;
  box-sizing: border-box !important;
  position: relative;
  overflow: hidden;
}

#bridge-gallery-section {
  background: transparent !important;
  color: #0f172a !important;
  min-height: auto !important;
  padding: 10px 0 10px 0 !important;
  overflow: visible !important;
}

#bridge-gallery-section::before {
  display: none !important;
}

#bridge-gallery-section .type-bar {
  background: #f8fafc !important;
  border: 1px solid rgba(50, 95, 244, 0.14) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  border-radius: 14px !important;
  padding: 6px !important;
}

#bridge-gallery-section .type-btn {
  border-radius: 10px !important;
  transition: all 0.25s ease !important;
}

#bridge-gallery-section .type-btn:hover {
  background: rgba(50, 95, 244, 0.08) !important;
}

#bridge-gallery-section .type-btn.active {
  background: linear-gradient(110deg, #2f55d4 0%, #38bdf8 50%, #10b981 100%) !important;
  box-shadow: 0 4px 14px rgba(50, 95, 244, 0.25) !important;
}

#bridge-gallery-section .type-btn.active .type-name {
  color: #ffffff !important;
}

#bridge-gallery-section .type-btn:not(.active) .type-name {
  color: #334155 !important;
}

#bridge-gallery-section .type-btn.active .type-count {
  color: rgba(255, 255, 255, 0.85) !important;
}

#bridge-gallery-section .type-btn:not(.active) .type-count {
  color: #64748b !important;
}

#bridge-gallery-section .bg-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(50, 95, 244, 0.16) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}

#bridge-gallery-section .bg-card img {
  border-radius: 18px !important;
  background: #ffffff !important;
}

#bridge-gallery-section .bg-card.active {
  border-color: #325ff4 !important;
  box-shadow: 0 20px 50px rgba(50, 95, 244, 0.18) !important;
}

#bridge-gallery-section .bg-card.active img {
  border-color: #325ff4 !important;
}

#bridge-gallery-section .nav {
  display: flex !important;
  background: #ffffff !important;
  border: 1px solid rgba(50, 95, 244, 0.25) !important;
  color: #325ff4 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#bridge-gallery-section .nav:hover {
  background: #325ff4 !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(50, 95, 244, 0.25) !important;
}

#bridge-gallery-section .nav-l {
  left: -14px !important;
}

#bridge-gallery-section .nav-r {
  right: -14px !important;
}

#bridge-gallery-section .cov-num {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#bridge-gallery-section .card-num {
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(50, 95, 244, 0.16) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
}

#bridge-gallery-section .dot {
  background: rgba(50, 95, 244, 0.18) !important;
  transition: all 0.3s ease !important;
}

#bridge-gallery-section .dot.active {
  background: linear-gradient(110deg, #2f55d4 0%, #10b981 100%) !important;
  width: 24px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 10px rgba(50, 95, 244, 0.4) !important;
}

/* ── 5. TARGET USERS (MASTER WHITE BOX) ──────────────────────────────────── */
.target-users-section {
  padding: 30px 20px !important;
}

.target-users-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(50, 95, 244, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  padding: 44px 30px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* ── 6. WHO WE ARE (MASTER WHITE BOX) ────────────────────────────────────── */
.who-we-are {
  padding: 30px 20px !important;
}

.wwa-box {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 44px 36px;
  box-sizing: border-box;
  overflow: hidden;
}

.wwa-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: radial-gradient(circle at 50% 0%, rgba(50, 95, 244, 0.05) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wwa-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.wwa-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px auto;
}

.wwa-header .sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(50, 95, 244, 0.06);
  border: 1px solid rgba(50, 95, 244, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #325ff4;
  margin-bottom: 12px;
}

.wwa-header .sp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #325ff4;
  box-shadow: 0 0 0 3px rgba(50, 95, 244, 0.25);
}

.wwa-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 14px 0;
}

.wwa-title .sp-gradient-text {
  background: linear-gradient(135deg, #325ff4 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wwa-intro {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: #475569;
  margin: 0 auto;
  max-width: 760px;
}

.wwa-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.wwa-pillar-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

.wwa-pillar-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  border-color: rgba(50, 95, 244, 0.35);
  box-shadow: 0 14px 34px rgba(50, 95, 244, 0.08);
}

.wwa-pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(50, 95, 244, 0.06);
  transition: transform 0.3s ease;
}

.wwa-pillar-card:hover .wwa-pillar-icon {
  transform: scale(1.06);
}

.wwa-pillar-icon svg {
  width: 30px;
  height: 30px;
}

.wwa-pillar-body {
  flex: 1;
  min-width: 0;
}

.wwa-pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #325ff4;
  margin-bottom: 8px;
}

.wwa-pillar-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #325ff4;
}

.wwa-pillar-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
  margin: 0;
}

.wwa-diff-section {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 30px 24px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.wwa-diff-header {
  text-align: center;
  margin-bottom: 24px;
}

.wwa-diff-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.wwa-diff-header p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.wwa-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.wwa-feature-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.wwa-feature-card:hover {
  background: #ffffff;
  border-color: rgba(50, 95, 244, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(50, 95, 244, 0.08);
}

.wwa-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(50, 95, 244, 0.05);
  transition: all 0.25s ease;
}

.wwa-feature-card:hover .wwa-feature-icon {
  background: rgba(50, 95, 244, 0.1);
  transform: scale(1.08);
}

.wwa-feature-icon svg {
  width: 22px;
  height: 22px;
}

.wwa-feature-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.wwa-feature-card p {
  font-size: 0.77rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.wwa-bottom-banner {
  background: #f8fafc;
  border: 1px solid rgba(50, 95, 244, 0.16);
  border-radius: 16px;
  padding: 22px 28px;
  text-align: center;
  box-sizing: border-box;
}

.wwa-tagline-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 auto 8px auto;
  max-width: 800px;
}

.wwa-tagline-punch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #325ff4 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 7. LAUNCH VIDEO (MASTER WHITE BOX) ──────────────────────────────────── */
.video-section {
  padding: 30px 20px !important;
}

.video-box {
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(50, 95, 244, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 40px 28px;
  box-sizing: border-box;
  text-align: center;
}

/* ── RESPONSIVE DESIGN ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wwa-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .workflow-box-section,
  .capabilities-showcase-section,
  .who-we-are,
  .target-users-section,
  .video-section {
    padding: 24px 16px !important;
  }
  .workflow-box-section .bridge-services,
  .capabilities-showcase-section .cap-container,
  .wwa-box,
  .target-users-container,
  .video-box {
    padding: 28px 18px !important;
    border-radius: 18px !important;
  }
  .wwa-pillars-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wwa-diff-section {
    padding: 22px 14px;
  }
  .wwa-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .workflow-box-section,
  .capabilities-showcase-section,
  .who-we-are,
  .target-users-section,
  .video-section {
    padding: 16px 10px !important;
  }
  .workflow-box-section .bridge-services,
  .capabilities-showcase-section .cap-container,
  .wwa-box,
  .target-users-container,
  .video-box {
    padding: 20px 12px !important;
    border-radius: 16px !important;
  }
  .wwa-title {
    font-size: 1.55rem;
  }
  .wwa-intro {
    font-size: 0.86rem;
  }
  .wwa-pillar-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .wwa-feature-grid {
    grid-template-columns: 1fr;
  }
  .wwa-bottom-banner {
    padding: 16px 12px;
  }
}
