:root {
  --v3-bg: #030705;
  --v3-panel: rgba(9, 15, 12, .78);
  --v3-panel-strong: rgba(11, 19, 15, .94);
  --v3-line: rgba(198, 255, 224, .13);
  --v3-line-hot: rgba(91, 255, 177, .36);
  --v3-mint: #5bffb1;
  --v3-cyan: #69e8ff;
  --v3-purple: #a78bfa;
  --v3-amber: #ffd166;
  --v3-red: #ff6b6b;
  --v3-text: #eef8f2;
  --v3-muted: #8fa199;
  --v3-soft: #52625a;
  --v3-shadow: 0 28px 90px rgba(0, 0, 0, .5);
  --v3-radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body.nexora-v3 {
  color: var(--v3-text);
  background:
    radial-gradient(circle at var(--v3-x, 50%) var(--v3-y, 0%), rgba(91, 255, 177, .11), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(105, 232, 255, .1), transparent 28rem),
    radial-gradient(circle at 12% 30%, rgba(167, 139, 250, .08), transparent 26rem),
    linear-gradient(180deg, #020403 0%, #06100b 45%, #020403 100%);
}

body.nexora-v3::before,
body.nexora-v3::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

body.nexora-v3::before {
  background-image:
    linear-gradient(rgba(91, 255, 177, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 255, 177, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 82%);
}

body.nexora-v3::after {
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(91, 255, 177, .05) 35%, transparent 36% 70%, rgba(105, 232, 255, .045) 71%, transparent 72%),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .045), transparent 36rem);
  animation: v3-scan 18s linear infinite;
}

@keyframes v3-scan {
  from { transform: translate3d(-3%, -2%, 0); }
  50% { transform: translate3d(3%, 2%, 0); }
  to { transform: translate3d(-3%, -2%, 0); }
}

.site-header,
.dashboard-header {
  border-color: rgba(198, 255, 224, .12) !important;
  background: rgba(3, 7, 5, .72) !important;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
}

.site-header::after,
.dashboard-header::after {
  content: "";
  position: absolute;
  left: max(22px, 4vw);
  right: max(22px, 4vw);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 255, 177, .45), transparent);
  opacity: .72;
}

.brand {
  letter-spacing: .04em;
}

.brand-mark {
  filter: drop-shadow(0 0 18px rgba(91, 255, 177, .42));
}

.desktop-nav a,
.mobile-menu a,
.login-link {
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.desktop-nav a:hover,
.login-link:hover {
  color: #f4fff8;
  transform: translateY(-1px);
}

.button,
.dashboard-primary,
.green-button,
.outline-button,
.icon-button {
  position: relative;
  overflow: hidden;
}

.button::after,
.dashboard-primary::after,
.green-button::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .44), transparent 70%);
  transform: translateX(-120%) rotate(8deg);
  transition: transform .6s ease;
}

.button:hover::after,
.dashboard-primary:hover::after,
.green-button:hover::after {
  transform: translateX(120%) rotate(8deg);
}

.hero,
.department-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
}

.hero::before,
.department-hero::before {
  content: "";
  position: absolute;
  inset: 80px 3% auto;
  height: 48%;
  z-index: -2;
  background:
    radial-gradient(circle at 35% 30%, rgba(91, 255, 177, .24), transparent 24rem),
    radial-gradient(circle at 70% 45%, rgba(105, 232, 255, .16), transparent 26rem);
  filter: blur(18px);
  opacity: .95;
}

.hero h1,
.department-hero h1 {
  text-shadow: 0 18px 80px rgba(91, 255, 177, .14);
}

.hero h1 span,
.department-hero h1 span,
.cta-card h2 span {
  background: linear-gradient(100deg, #fff 0%, #9dffd0 34%, #69e8ff 68%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v2-badge {
  border-color: rgba(91, 255, 177, .22) !important;
  box-shadow: 0 0 42px rgba(91, 255, 177, .08) inset, 0 16px 55px rgba(0, 0, 0, .22);
}

.v2-badge span::after {
  content: " / 0.3";
  color: var(--v3-cyan);
}

.hero-v2-panel,
.department-proof,
.dashboard-panel,
.bento-card,
.story-card,
.dept-app-frame,
.dept-feature-card,
.experience-stage,
.cta-card,
.department-card,
.dashboard-stats article,
.create-card {
  box-shadow: var(--v3-shadow);
}

.hero-v2-panel,
.bento-card,
.story-card,
.dept-feature-card,
.experience-stage,
.dashboard-stats article,
.department-card {
  position: relative;
  overflow: hidden;
}

.hero-v2-panel::before,
.bento-card::before,
.story-card::before,
.dept-feature-card::before,
.experience-stage::before,
.dashboard-stats article::before,
.department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 255, 177, .34), transparent 36%, rgba(105, 232, 255, .18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .75;
}

.product-card,
.bento-card,
.story-card,
.dept-feature-card,
.department-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.v3-command-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 84px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, .9fr));
  gap: 10px;
}

.v3-command-strip article {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(13, 22, 17, .92), rgba(5, 9, 7, .84)),
    radial-gradient(circle at 0 0, rgba(91, 255, 177, .16), transparent 16rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}

.v3-command-strip article:first-child {
  background:
    radial-gradient(circle at 10% 0, rgba(91, 255, 177, .18), transparent 18rem),
    linear-gradient(145deg, rgba(19, 35, 27, .95), rgba(5, 10, 7, .9));
}

.v3-command-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--v3-muted);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.v3-command-strip span i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--v3-mint);
  box-shadow: 0 0 18px var(--v3-mint);
}

.v3-command-strip strong {
  display: block;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -.06em;
}

.v3-command-strip small {
  display: block;
  margin-top: 6px;
  color: var(--v3-soft);
  line-height: 1.5;
}

.v3-os-section,
.v3-system-section {
  position: relative;
  padding: 110px 0;
}

.v3-os-inner,
.v3-system-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.v3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .72fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.v3-section-head p:first-child {
  margin: 0 0 14px;
  color: var(--v3-mint);
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.v3-section-head h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: .9;
  letter-spacing: -.075em;
}

.v3-section-head h2 span {
  display: block;
  color: var(--v3-mint);
}

.v3-section-head > p:last-child {
  margin: 0;
  color: var(--v3-muted);
  font-size: 15px;
  line-height: 1.75;
}

.v3-os-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  gap: 18px;
}

.v3-os-card,
.v3-orbit-panel,
.v3-system-card,
.v3-pipeline,
.v3-dashboard-command,
.v3-module-polish {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(145deg, rgba(11, 19, 15, .95), rgba(5, 9, 7, .86)),
    radial-gradient(circle at 0 0, rgba(91, 255, 177, .14), transparent 16rem);
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(18px);
}

.v3-os-card {
  padding: 28px;
  min-height: 560px;
}

.v3-os-card h3,
.v3-system-card h3,
.v3-pipeline h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.055em;
}

.v3-os-card p,
.v3-system-card p,
.v3-pipeline p {
  color: var(--v3-muted);
  line-height: 1.7;
}

.v3-module-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.v3-module-list li {
  list-style: none;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.v3-module-list i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06110b;
  background: linear-gradient(135deg, var(--v3-mint), var(--v3-cyan));
  font-style: normal;
  font-weight: 900;
}

.v3-module-list b {
  display: block;
}

.v3-module-list small,
.v3-module-list em {
  color: var(--v3-soft);
  font-style: normal;
}

.v3-module-list em {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(91, 255, 177, .08);
  color: var(--v3-mint);
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.v3-orbit-panel {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.v3-orbit-panel::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(91, 255, 177, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(91, 255, 177, .025),
    0 0 0 140px rgba(105, 232, 255, .018);
  animation: v3-spin 22s linear infinite;
}

@keyframes v3-spin {
  to { transform: rotate(360deg); }
}

.v3-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 255, 177, .26);
  border-radius: 38px;
  background: rgba(2, 7, 4, .82);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 90px rgba(91, 255, 177, .22);
}

.v3-core img {
  width: 76px;
  filter: drop-shadow(0 0 24px rgba(91, 255, 177, .55));
}

.v3-node {
  position: absolute;
  width: 178px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(4, 9, 7, .82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .36);
}

.v3-node b {
  display: block;
}

.v3-node small {
  color: var(--v3-muted);
}

.v3-node:nth-child(2) { left: 7%; top: 13%; }
.v3-node:nth-child(3) { right: 7%; top: 18%; }
.v3-node:nth-child(4) { left: 12%; bottom: 12%; }
.v3-node:nth-child(5) { right: 10%; bottom: 15%; }

.v3-node::before {
  content: "";
  width: 8px;
  height: 8px;
  display: block;
  margin-bottom: 12px;
  border-radius: 99px;
  background: var(--v3-mint);
  box-shadow: 0 0 18px var(--v3-mint);
}

.v3-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.v3-system-card {
  padding: 24px;
  min-height: 240px;
}

.v3-system-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  color: #07110a;
  background: linear-gradient(135deg, var(--v3-mint), var(--v3-cyan));
  font-weight: 900;
}

.v3-pipeline {
  margin-top: 16px;
  padding: 24px;
}

.v3-pipeline-track {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.v3-pipeline-track div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.v3-pipeline-track span {
  display: block;
  color: var(--v3-mint);
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 18px;
}

.v3-pipeline-track b {
  display: block;
  letter-spacing: -.03em;
}

.v3-pipeline-track small {
  display: block;
  margin-top: 8px;
  color: var(--v3-soft);
  line-height: 1.5;
}

.v3-dashboard-command {
  margin: 0 0 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, .75fr));
  gap: 10px;
}

.v3-dashboard-command div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.v3-dashboard-command small {
  color: var(--v3-soft);
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.v3-dashboard-command b {
  display: block;
  margin-top: 13px;
  font-size: 22px;
  letter-spacing: -.055em;
}

.dashboard-page {
  background:
    radial-gradient(circle at 78% -18%, rgba(91, 255, 177, .13), transparent 38%),
    radial-gradient(circle at 15% 24%, rgba(105, 232, 255, .08), transparent 35%),
    #030705 !important;
}

.dashboard-shell {
  width: min(1480px, 100%) !important;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, rgba(8, 14, 11, .7), transparent);
}

.dashboard-content {
  position: relative;
}

.dashboard-welcome {
  padding: 32px;
  border: 1px solid rgba(198, 255, 224, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(91, 255, 177, .16), transparent 24rem),
    linear-gradient(145deg, rgba(11, 19, 15, .82), rgba(4, 8, 6, .72));
  box-shadow: var(--v3-shadow);
}

.department-grid {
  align-items: stretch;
}

.department-card {
  background:
    radial-gradient(circle at 100% 0, rgba(91, 255, 177, .1), transparent 13rem),
    linear-gradient(145deg, rgba(13, 22, 17, .96), rgba(5, 9, 7, .92)) !important;
}

.module-page {
  background:
    radial-gradient(circle at 78% -14%, rgba(91, 255, 177, .12), transparent 34%),
    radial-gradient(circle at 16% 22%, rgba(105, 232, 255, .075), transparent 30%),
    #030705 !important;
}

.v3-module-polish {
  margin: 20px auto;
  width: min(1320px, calc(100% - 32px));
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, .7fr));
  gap: 10px;
}

.v3-module-polish div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.v3-module-polish small {
  color: var(--v3-soft);
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.v3-module-polish b {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.auth-card,
.create-card {
  background:
    radial-gradient(circle at 100% 0, rgba(91, 255, 177, .12), transparent 18rem),
    rgba(8, 14, 11, .96) !important;
}

.v3-tilt-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 50%), rgba(91, 255, 177, .14), transparent 16rem);
  opacity: 0;
  transition: opacity .18s ease;
}

[data-v3-tilt]:hover .v3-tilt-glow {
  opacity: 1;
}

@media (max-width: 1040px) {
  .v3-command-strip,
  .v3-os-grid,
  .v3-section-head,
  .v3-feature-grid,
  .v3-dashboard-command,
  .v3-module-polish {
    grid-template-columns: 1fr 1fr;
  }

  .v3-command-strip article:first-child,
  .v3-section-head,
  .v3-os-card,
  .v3-orbit-panel,
  .v3-pipeline,
  .v3-module-polish div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.nexora-v3::before {
    background-size: 44px 44px;
  }

  .hero,
  .department-hero {
    min-height: auto;
  }

  .v3-command-strip,
  .v3-os-grid,
  .v3-section-head,
  .v3-feature-grid,
  .v3-pipeline-track,
  .v3-dashboard-command,
  .v3-module-polish {
    grid-template-columns: 1fr;
  }

  .v3-command-strip {
    margin: 10px auto 62px;
  }

  .v3-os-section,
  .v3-system-section {
    padding: 72px 0;
  }

  .v3-os-card,
  .v3-orbit-panel {
    min-height: 420px;
  }

  .v3-node {
    position: relative;
    inset: auto !important;
    width: auto;
    margin: 10px 0;
  }

  .v3-core {
    position: relative;
    inset: auto;
    margin: 0 auto 18px;
    transform: none;
  }

  .v3-orbit-panel::before {
    display: none;
  }

  .dashboard-welcome {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nexora-v3::after,
  .v3-orbit-panel::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.song-help {
  margin: -3px 0 0;
  color: #64716a;
  font-size: 10px;
  line-height: 1.55;
}
