:root {
  --nox-bg0: #0d0b0f;
  --nox-bg1: #120f15;
  --nox-bg2: #0a080c;
  --nox-surface: rgba(25, 12, 18, 0.55);
  --nox-surface-2: rgba(35, 14, 22, 0.5);
  --nox-glass: rgba(255, 255, 255, 0.03);
  --nox-glass-strong: rgba(255, 255, 255, 0.06);
  --nox-border: rgba(255, 255, 255, 0.06);
  --nox-border-strong: rgba(255, 255, 255, 0.1);
  --nox-border-glow: rgba(255, 40, 80, 0.35);
  --nox-text: #fff0f3;
  --nox-muted: rgba(255, 240, 243, 0.65);
  --nox-dim: rgba(255, 240, 243, 0.4);
  --nox-accent: #ff2050;
  --nox-accent-2: #ff6080;
  --nox-accent-soft: rgba(255, 32, 80, 0.2);
  --nox-moon-tint: rgba(255, 180, 200, 0.35);
  --nox-radius: 20px;
  --nox-radius-sm: 14px;
  --nox-blur: 24px;
  --nox-font: "Sora", "DM Sans", system-ui, sans-serif;
  --nox-mono: "JetBrains Mono", ui-monospace, monospace;
  --nox-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 20, 60, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --nox-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.nox {
  margin: 0;
  min-height: 100vh;
  font-family: var(--nox-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--nox-text);
  background-color: var(--nox-bg0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.nox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  isolation: isolate;
  contain: paint;
}

.nox-aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 45% -8%, rgba(255, 30, 70, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 30% at 90% 20%, rgba(255, 50, 90, 0.2), transparent 45%),
    radial-gradient(ellipse 45% 28% at 8% 50%, rgba(200, 20, 50, 0.12), transparent 40%),
    radial-gradient(ellipse 55% 35% at 50% 90%, rgba(180, 10, 40, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0609 0%, #120a10 40%, #0d0b0f 100%);
  transform: translate3d(0, 0.5%, 0) scale(1.035);
}

.nox-noise {
  display: none;
}

.nox-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.4;
  contain: strict;
}

.nox-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.nox-atmo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.nox-atmo-glow--1 {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 40, 80, 0.35) 0%,
    rgba(200, 20, 50, 0.1) 45%,
    transparent 65%
  );
  opacity: 0.7;
}

.nox-atmo-glow--2 {
  width: min(80vw, 650px);
  height: min(80vw, 650px);
  bottom: -20%;
  right: -15%;
  background: radial-gradient(
    circle,
    rgba(255, 70, 110, 0.2) 0%,
    rgba(150, 30, 60, 0.06) 50%,
    transparent 65%
  );
  opacity: 0.55;
}

.nox-atmo-moon {
  position: absolute;
  color: rgba(255, 50, 90, 0.6);
  text-shadow: 0 0 18px rgba(255, 40, 80, 0.5), 0 0 40px rgba(255, 20, 60, 0.25);
  pointer-events: none;
}

.nox-atmo-moon--1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  top: 7%;
  left: 5%;
  transform: rotate(-22deg);
  opacity: 0.45;
}

.nox-atmo-moon--2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  top: 35%;
  right: 7%;
  transform: rotate(16deg);
  opacity: 0.3;
}

.nox-atmo-moon--3 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  bottom: 20%;
  left: 12%;
  transform: rotate(8deg);
  opacity: 0.25;
}

.nox-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.nox-sidebar {
  width: 270px;
  flex-shrink: 0;
  padding: 1.5rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid var(--nox-border);
  background: rgba(18, 8, 12, 0.5);
  backdrop-filter: blur(var(--nox-blur));
  -webkit-backdrop-filter: blur(var(--nox-blur));
  transform: translateZ(0);
}

.nox-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--nox-radius-sm);
  transition: background 0.25s var(--nox-ease);
}

.nox-brand:hover {
  background: var(--nox-glass);
}

.nox-brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(130% 130% at 30% 20%, rgba(255, 40, 80, 0.3), transparent 55%),
    linear-gradient(160deg, rgba(45, 15, 25, 0.9), rgba(20, 8, 12, 0.9));
  border: 1px solid rgba(255, 40, 80, 0.45);
  box-shadow:
    0 0 30px rgba(255, 30, 70, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s var(--nox-ease), box-shadow 0.25s var(--nox-ease);
}

.nox-brand:hover .nox-brand-mark {
  border-color: rgba(255, 50, 90, 0.7);
  box-shadow:
    0 0 40px rgba(255, 30, 70, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nox-brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(255, 40, 80, 0.5));
}

.nox-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nox-brand-text strong {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.nox-brand-text span {
  font-size: 0.72rem;
  color: var(--nox-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nox-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.nox-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border-radius: var(--nox-radius-sm);
  color: var(--nox-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--nox-ease), background 0.2s var(--nox-ease), transform 0.2s var(--nox-ease);
  border: 1px solid transparent;
}

.nox-nav a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--nox-accent), var(--nox-accent-2));
  transform: translateY(-50%);
  transition: height 0.22s var(--nox-ease), opacity 0.22s var(--nox-ease);
  opacity: 0;
}

.nox-nav a i {
  width: 1.2rem;
  text-align: center;
  opacity: 0.8;
  transition: color 0.2s var(--nox-ease), transform 0.2s var(--nox-ease);
}

.nox-nav a:hover {
  color: var(--nox-text);
  background: var(--nox-glass);
  transform: translateX(2px);
}

.nox-nav a:hover i {
  color: var(--nox-accent);
  opacity: 1;
}

.nox-nav a:hover::before {
  height: 40%;
  opacity: 0.7;
}

.nox-nav a.is-active {
  color: var(--nox-text);
  background: rgba(255, 20, 60, 0.15);
  border-color: rgba(255, 40, 80, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(255, 20, 50, 0.15);
}

.nox-nav a.is-active::before {
  height: 58%;
  opacity: 1;
}

.nox-nav a.is-active i {
  color: var(--nox-accent);
  opacity: 1;
}

.nox-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--nox-border);
}

.nox-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nox-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nox-crumb {
  font-size: 0.8rem;
  color: var(--nox-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.35rem;
}

.nox-page-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.glass {
  position: relative;
  border-radius: var(--nox-radius);
  background: rgba(30, 10, 18, 0.45);
  backdrop-filter: blur(var(--nox-blur));
  -webkit-backdrop-filter: blur(var(--nox-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--nox-shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, transparent 100%);
  opacity: 0.6;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.nox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s var(--nox-ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.nox-btn:active {
  transform: translateY(1px);
}

.nox-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e82545, #c41a38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(255, 20, 50, 0.3), 0 0 0 0 rgba(255, 20, 50, 0.4);
  transition: all 0.3s ease;
}

.nox-btn-primary:hover {
  background: linear-gradient(135deg, #ff2d50, #e02040);
  box-shadow: 0 6px 28px rgba(255, 20, 50, 0.45), 0 0 0 4px rgba(255, 20, 50, 0.1);
  transform: translateY(-1px);
}

.nox-btn-primary:active {
  transform: translateY(0);
}

.nox-btn-ghost {
  color: var(--nox-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nox-btn-ghost:hover {
  border-color: rgba(255, 40, 80, 0.4);
  background: rgba(255, 20, 50, 0.1);
  box-shadow: 0 0 20px rgba(255, 20, 50, 0.15);
}

.nox-home-hero {
  text-align: center;
  padding: 2.5rem 2rem 3rem;
}

.nox-home-hero h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  font-weight: 650;
  text-shadow: 0 0 20px rgba(255, 30, 60, 0.3);
}

.nox-home-hero p {
  color: var(--nox-muted);
  margin: 0 0 1.8rem;
  font-size: 1rem;
}

.nox-home-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nox-content {
  padding: 1.8rem;
  line-height: 1.7;
  color: var(--nox-text);
  font-size: 0.95rem;
}

.nox-content h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.6rem;
  font-weight: 650;
}

.nox-content h2:first-child {
  margin-top: 0;
}

.nox-content p {
  margin: 0 0 0.85rem;
}

.nox-content ul {
  margin: 0 0 0.85rem;
  padding-left: 1.5rem;
}

.nox-content li {
  margin-bottom: 0.35rem;
}

.nox-content strong {
  font-weight: 650;
}

.nox-content a {
  color: var(--nox-accent);
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 40, 80, 0.35);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 40, 80, 0.5);
}

::selection {
  background: rgba(255, 40, 80, 0.4);
  color: #fff;
}

@media (max-width: 1020px) {
  .nox-shell {
    flex-direction: column;
  }

  .nox-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--nox-border);
    backdrop-filter: blur(var(--nox-blur));
    -webkit-backdrop-filter: blur(var(--nox-blur));
  }

  .nox-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .nox-nav a {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }

  .nox-sidebar-foot {
    flex-direction: row;
    width: 100%;
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .nox-main {
    padding: 1rem;
  }

  .nox-home-hero {
    padding: 1.8rem 1.2rem;
  }

  .nox-home-hero h2 {
    font-size: 1.35rem;
  }

  .nox-home-actions {
    flex-direction: column;
    align-items: stretch;
  }
}