/* ============================================================
   Shared base stylesheet — core utilities & components
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  background-color: #07070a;
  color: #e4ebf5;
}

/* ---------- Dotted-grid pattern ---------- */
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #08080c; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ---------- Text gradient accent ---------- */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(120deg, #6db3ff 0%, #2dd4bf 100%);
}

/* ---------- Glass-morphism card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
}

/* ---------- Connection line animation ---------- */
.conn-line {
  stroke-dasharray: 6 320;
  stroke-linecap: round;
  animation: dash-flow 3s linear infinite;
  transition: stroke-opacity 0.2s ease;
}
.conn-line.active {
  stroke-opacity: 1 !important;
}
@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -326; }
}

/* ---------- Platform node ---------- */
.platform-node {
  cursor: default;
}
.node-card {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.25s ease;
}
.platform-node:hover .node-card {
  transform: scale(1.14) translateY(-5px);
  filter: brightness(1.25);
}
.node-label {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.platform-node:hover .node-label {
  transform: translateY(-2px);
  opacity: 1 !important;
}

/* ---------- FAQ accordion ---------- */
.faq-body {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* ---------- Primary CTA button ---------- */
.btn-primary {
  background: linear-gradient(130deg, #1d4ed8, #0e7490);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(130deg, #2563eb, #0891b2);
  box-shadow: 0 0 36px rgba(37, 99, 235, 0.5), 0 0 70px rgba(6, 182, 212, 0.18);
  transform: translateY(-2px);
}

/* ---------- Navigation bar ---------- */
#navbar {
  background: rgba(7, 7, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease,
    backdrop-filter 0.25s ease;
}

#navbar.scrolled {
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  padding-bottom: 12px;
}

#navbar.menu-open {
  background: rgba(7, 7, 10, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(255, 255, 255, 0.05);
}
