:root {
  --ink-950: #090b10;
  --ink-900: #0f1420;
  --ink-800: #151c2c;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #a7b0c0;
  --brand-a: #7c6df9;
  --brand-b: #2dd4bf;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(circle at 5% 0%, rgba(124, 109, 249, 0.18), transparent 35%),
    radial-gradient(circle at 95% 10%, rgba(45, 212, 191, 0.14), transparent 32%),
    var(--ink-950);
  color: #edf2ff;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 20, 32, 0.78) 0%, rgba(9, 11, 16, 0.88) 45%, rgba(9, 11, 16, 0.95) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 35%, transparent 85%);
  z-index: 0;
}

.bg-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: float-orb 16s ease-in-out infinite alternate;
}

.bg-orb-a {
  left: -9rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(124, 109, 249, 0.8), transparent 65%);
}

.bg-orb-b {
  right: -10rem;
  top: 12rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.75), transparent 65%);
  animation-delay: 2.5s;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 16, 0.58);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 0 0 6px rgba(124, 109, 249, 0.12);
}

.brand-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--muted);
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
  color: #f4f6ff;
  background: rgba(124, 109, 249, 0.16);
}

.hero-card,
.module-card,
.glass-panel {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    var(--ink-900);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-card {
  transition: transform 0.25s ease;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #8dd5ff;
  font-size: 0.75rem;
}

.text-gradient {
  background: linear-gradient(90deg, #b8b0ff, #78f5dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.module-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(124, 109, 249, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 109, 249, 0.5);
  box-shadow: 0 18px 40px rgba(42, 24, 90, 0.3);
}

.module-card:hover::after {
  opacity: 1;
}

.glass-panel {
  background:
    linear-gradient(160deg, rgba(124, 109, 249, 0.08), rgba(45, 212, 191, 0.02) 55%),
    var(--ink-900);
}

.icon-pill {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(124, 109, 249, 0.16);
  color: #d7d2ff;
}

.workflow-step {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(8, 11, 17, 0.65);
}

.btn-primary {
  border: none;
  background: linear-gradient(90deg, var(--brand-a), #4f8cff);
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #6c5bf6, #3f7dff);
  transform: translateY(-1px);
}

.btn-outline-light,
.btn-outline-info {
  border-color: rgba(255, 255, 255, 0.35);
}

.resource-link {
  color: #dbe2ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resource-link:hover {
  color: #8dd5ff;
}

.code-chip {
  display: inline-block;
  max-width: 100%;
  border-radius: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(141, 213, 255, 0.35);
  background: rgba(3, 10, 18, 0.9);
  color: #96f2ff;
  word-break: break-word;
  font-size: 0.82rem;
}

.text-secondary {
  color: var(--muted) !important;
}

.legacy-embed {
  width: 100%;
  min-height: 70vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  background: #0b0f18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 14, 24, 0.7);
  border-radius: 999px;
  padding: 0.36rem 0.85rem;
  color: #d1d9e8;
  font-size: 0.82rem;
}

.hero-metrics strong {
  color: #fff;
}

@keyframes float-orb {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }
  to {
    transform: translateY(40px) translateX(20px) scale(1.08);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    position: static;
  }

  .bg-orb {
    width: 18rem;
    height: 18rem;
    filter: blur(46px);
  }
}
