/* Nexa Dashhood — Home
   Direction: institutional navy, cool paper, restrained teal. */

:root {
  --ink: #0d1520;
  --navy: #14233a;
  --steel: #5a6f86;
  --line: #d7dee8;
  --paper: #eef2f6;
  --white: #ffffff;
  --teal: #1f6f6a;
  --teal-deep: #165851;
  --mist: rgba(238, 242, 246, 0.88);
  --shadow: 0 24px 60px rgba(13, 21, 32, 0.18);
  --font-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 21, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: linear-gradient(135deg, #7ecfc8 0%, var(--teal) 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-product {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 0.98rem;
}

.btn-solid {
  background: var(--teal);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.btn-line {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 8px 24px 24px;
  background: rgba(13, 21, 32, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 16, 28, 0.88) 0%, rgba(10, 16, 28, 0.62) 46%, rgba(10, 16, 28, 0.28) 100%),
    linear-gradient(to top, rgba(10, 16, 28, 0.78) 0%, transparent 42%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 140px 0 120px;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-title span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 36px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* Sections */

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 56px;
}

.section-head.narrow {
  max-width: 34rem;
}

.section-head h2,
.workflow-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.section-head p,
.workflow-copy > p {
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 1.02rem;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability {
  padding: 32px 28px 8px 0;
  border-bottom: 1px solid var(--line);
}

.capability + .capability {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.capability-index {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.capability h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.capability p {
  margin: 0;
  color: var(--steel);
  max-width: 28ch;
}

/* Workflow */

.workflow {
  padding-top: 24px;
}

.workflow-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: 56px;
  box-shadow: var(--shadow);
}

.workflow-copy > p {
  color: rgba(255, 255, 255, 0.7);
}

.workflow-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.workflow-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.workflow-steps strong {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 10px;
  color: #9fd4cf;
  font-weight: 600;
}

.board {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
}

.board-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ecfc8;
}

.dot.muted { background: rgba(255, 255, 255, 0.35); }
.dot.done { background: #6aa88f; }

.bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  background: linear-gradient(90deg, rgba(126, 207, 200, 0.35), rgba(126, 207, 200, 0.85));
}

.bar.w70::after { width: 70%; }
.bar.w55::after { width: 55%; }
.bar.w85::after { width: 85%; }

.chip {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #9fd4cf;
  white-space: nowrap;
}

.chip.muted { color: rgba(255, 255, 255, 0.45); }
.chip.done { color: #9fc4b2; }

.board-metric {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.board-metric em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.board-metric strong {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Security */

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.security-grid h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.security-grid p {
  margin: 0;
  color: var(--steel);
  max-width: 28ch;
}

/* Contact */

.contact {
  padding-bottom: 56px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0 8px;
  border-top: 1px solid var(--line);
}

.contact-copy .eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.contact-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.contact-copy p {
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 1.02rem;
  max-width: 34ch;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.contact-channel:hover {
  border-color: #9bb0c4;
  transform: translateY(-1px);
  background: #fbfcfd;
}

.contact-channel .ch-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--navy);
}

.contact-channel.qq .ch-label {
  background: #f3f7fb;
}

.contact-channel.discord .ch-label {
  background: #eef2f8;
  color: #3c45a5;
}

.contact-channel strong {
  font-size: 1rem;
  font-weight: 600;
}

.contact-channel .ch-go {
  color: var(--steel);
  font-size: 0.86rem;
}

.contact-fallback {
  padding: 20px;
  border: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.contact-fallback p {
  margin: 0;
  color: var(--steel);
  max-width: 36ch;
}

/* Footer */

.site-footer {
  padding: 36px 0 48px;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-brand span,
.footer-copy {
  color: var(--steel);
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .capability-list,
  .security-grid,
  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .capability + .capability {
    padding-left: 0;
    border-left: 0;
  }

  .workflow-panel {
    padding: 36px 28px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .hero-content,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding: 120px 0 88px;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-media img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
