/* css/index.css */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.9;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.glow-primary {
  top: -4%;
  left: 50%;
  width: min(76vw, 520px);
  height: min(76vw, 520px);
  background: radial-gradient(circle, rgba(111, 106, 255, 0.34) 0%, transparent 70%);
  transform: translateX(-50%);
}

.glow-secondary {
  right: -72px;
  top: 28%;
  width: min(44vw, 220px);
  height: min(44vw, 220px);
  background: radial-gradient(circle, rgba(210, 107, 255, 0.2) 0%, transparent 72%);
}

.hero {
  position: relative;
  padding: 10px 5% 32px;
  overflow-x: clip;
  isolation: isolate;
}

.hero-shell {
  max-width: var(--page-width);
  margin: 0 auto 18px;
  display: grid;
  gap: 18px;
}

.hero-copy {
  max-width: 690px;
}

.hero-copy,
.hero-panel,
.nav-item {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(210, 107, 255, 0.2);
  background: rgba(210, 107, 255, 0.08);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 14px rgba(210, 107, 255, 0.72);
}

.hero h1 {
  font-size: clamp(2.7rem, 14vw, 5.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 0.98;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 48%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 38rem;
}

.cta-group {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 40px rgba(111, 106, 255, 0.28);
  transition:
    transform 0.3s var(--ease-standard),
    box-shadow 0.3s var(--ease-standard);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(210, 107, 255, 0.3);
}

.cta-note {
  font-size: 0.92rem;
}

.hero-panel {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 23, 33, 0.9) 0%, rgba(11, 13, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.terminal-code {
  font-family: "Consolas", "Courier New", monospace;
  color: #d4d4d8;
  font-size: 0.82rem;
  background: rgba(11, 12, 18, 0.9);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 96px;
  line-height: 1.7;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.terminal-code span {
  color: var(--primary-light);
}

.hero-note-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.hero-note {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-note strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

.nav-item {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 24px 22px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.92) 0%, rgba(12, 13, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.35s var(--ease-standard),
    border-color 0.35s var(--ease-standard),
    box-shadow 0.35s var(--ease-standard),
    background 0.35s var(--ease-standard);
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: auto -20% -46% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 106, 255, 0.22) 0%, transparent 72%);
  transition: transform 0.4s var(--ease-standard), opacity 0.4s var(--ease-standard);
  opacity: 0.8;
}

.nav-item:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 107, 255, 0.22);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(180deg, rgba(28, 31, 43, 0.95) 0%, rgba(16, 18, 26, 0.98) 100%);
}

.nav-item:hover::before {
  transform: scale(1.08);
  opacity: 1;
}

.icon-box {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary-light);
  transition: all 0.3s var(--ease-standard);
}

.nav-item:hover .icon-box {
  background: rgba(111, 106, 255, 0.18);
  border-color: rgba(210, 107, 255, 0.24);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(111, 106, 255, 0.08);
}

.nav-item h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
}

.nav-item p {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .hero {
    padding: 16px 8% 36px;
    overflow: visible;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .cta-group {
    align-items: flex-start;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .nav-item {
    min-height: 220px;
    padding: 30px 28px;
  }
}
