/* ============================================================
   Nyxwarden — Night-Watch Endpoint Security
   Professional marketing site styles (dark night theme).
   ============================================================ */

:root {
  --void: #0a0f1c;
  --slate: #111827;
  --slate-2: #151d2e;
  --raised: #1b2438;
  --border: #24314a;
  --text: #eef3fb;
  --muted: #9aa7bd;
  --faint: #5d6b83;
  --signal: #3ddc97;
  --signal-2: #5eead4;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --alert: #ff5c5c;
  --warn: #e8a33c;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max-w: 1160px;
  --font-disp: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(61, 220, 151, 0.3); }

img { max-width: 100%; display: block; }
a { color: var(--signal-2); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Ambient background
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(1200px 700px at 75% -10%, #0e1a33 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #0b1a24 0%, transparent 55%);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 220, 151, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 151, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite;
}
.glow-1 { width: 520px; height: 520px; top: -160px; left: 55%;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.28), transparent 70%); }
.glow-2 { width: 460px; height: 460px; top: 45%; left: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  animation-delay: -5s; }
.glow-3 { width: 420px; height: 420px; bottom: -140px; right: -120px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.20), transparent 70%);
  animation-delay: -10s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(24px, -18px); }
  66% { transform: translate(-18px, 14px); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 15, 28, 0.78);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { filter: drop-shadow(0 0 14px rgba(61, 220, 151, 0.45)); }
.brand-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
}
.brand-name em { font-style: normal; color: var(--signal); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--cyan));
  border-radius: 2px;
  transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 6px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--signal), var(--signal-2));
  color: #06140e;
  box-shadow: 0 10px 30px rgba(61, 220, 151, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(61, 220, 151, 0.38);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.btn-block { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.07);
  color: var(--signal-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 22px 0 18px;
}
.grad {
  background: linear-gradient(92deg, var(--signal-2) 0%, var(--cyan) 45%, var(--indigo) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 560px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.4px;
}
.hero-trust .sep { opacity: 0.5; }

/* Hero visual — animated shield */
.hero-visual { display: flex; justify-content: center; }
.shield-stage {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-orb {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 34px rgba(61, 220, 151, 0.55));
  animation: float 6s ease-in-out infinite;
}
.shield-orb img { animation: shield-glow 3.4s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes shield-glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(61, 220, 151, 0.45)); }
  50% { filter: drop-shadow(0 0 40px rgba(94, 234, 212, 0.7)); }
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 220, 151, 0.35);
  z-index: 1;
}
.ring-a { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.ring-a::before {
  content: "";
  position: absolute;
  top: 8%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.ring-b {
  width: 76%; height: 76%;
  border-style: dashed;
  border-color: rgba(34, 211, 238, 0.3);
  animation: spin 22s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scanline {
  position: absolute;
  z-index: 4;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal-2), transparent);
  box-shadow: 0 0 14px var(--signal-2);
  opacity: 0.85;
  animation: scan 3.4s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateY(-60px); opacity: 0; }
  12% { opacity: 0.9; }
  50% { transform: translateY(60px); }
  88% { opacity: 0.9; }
  100% { transform: translateY(-60px); opacity: 0; }
}

.orb-label {
  position: absolute;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--signal-2);
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  animation: label-blink 2.2s ease-in-out infinite;
}
@keyframes label-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.mouse span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--signal);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   Stats strip
   ============================================================ */
.stats { padding: 10px 0 60px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-disp);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 90px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(61, 220, 151, 0.025), transparent);
  border-top: 1px solid rgba(36, 49, 74, 0.5);
  border-bottom: 1px solid rgba(36, 49, 74, 0.5);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .pill { margin-bottom: 18px; }
.section-title {
  font-family: var(--font-disp);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-sub { color: var(--muted); font-size: 16.5px; margin-top: 16px; }

/* ============================================================
   Feature cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 220, 151, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.25);
  color: var(--signal-2);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-disp); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.4); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-disp); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Security
   ============================================================ */
.security-grid { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.sec-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sec-item:hover { border-color: rgba(61, 220, 151, 0.4); transform: translateX(4px); }
.sec-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--signal);
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(61, 220, 151, 0.5));
}
.sec-item h3 { font-family: var(--font-disp); font-size: 16.5px; font-weight: 700; }
.sec-item p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ============================================================
   Downloads
   ============================================================ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.dl-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.dl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.dl-card.win:hover { border-color: rgba(34, 211, 238, 0.45); }
.dl-card.android:hover { border-color: rgba(61, 220, 151, 0.45); }
.dl-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: 0.9;
}
.dl-card.win::after { background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.dl-card.android::after { background: linear-gradient(90deg, var(--signal), var(--signal-2)); }

.dl-platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.dl-platform svg {
  width: 22px; height: 22px;
  color: var(--signal-2);
}
.dl-card.win .dl-platform svg { color: var(--cyan); }
.dl-card h3 { font-family: var(--font-disp); font-size: 24px; font-weight: 700; }
.dl-desc { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }

.dl-meta {
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.dl-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 2px;
  font-size: 13.5px;
  border-bottom: 1px dashed rgba(36, 49, 74, 0.6);
}
.dl-meta li:last-child { border-bottom: none; }
.m-label { color: var(--faint); }
.m-val { color: var(--text); font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }

.dl-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 34px; }
.dl-note a { font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 42px 0;
  background: rgba(10, 15, 28, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-disp); font-weight: 700; letter-spacing: 2px; }
.footer-brand em { font-style: normal; color: var(--signal); }
.footer-inner p { color: var(--faint); font-size: 13px; margin-left: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--signal-2); }

/* ============================================================
   Reveal animation (scroll)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero { padding-top: 120px; }
  .hero-visual { margin-top: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner p { margin-left: 0; order: 3; width: 100%; text-align: center; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 62px; right: 0;
    flex-direction: column;
    background: rgba(10, 15, 28, 0.96);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0 0 0 18px;
    padding: 22px 28px;
    gap: 20px;
    transform: translateX(105%);
    transition: transform 0.3s ease;
    margin: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .cards, .steps, .dl-grid { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
  .shield-stage { transform: scale(0.85); }
  .section { padding: 66px 0; }
  .stats { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
