/* Nyxveil public website — self-contained, no external fonts/CDN */
:root {
  --bg-0: #050814;
  --bg-1: #0b1220;
  --bg-2: #101a2e;
  --surface: rgba(18, 28, 48, 0.72);
  --surface-strong: rgba(14, 22, 38, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(45, 212, 191, 0.28);
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-3: #818cf8;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(800px 480px at 88% 8%, rgba(129, 140, 248, 0.16), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(45, 212, 191, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

.bg-glow {
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: -8vw;
  top: 12vh;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4vw, 3vh, 0); }
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.hero-copy {
  max-width: 38rem;
}

.brand-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.brand-hero img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.brand-hero span {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 46ch;
}

.hero-panel {
  display: grid;
  place-items: center;
  min-height: 16rem;
}

.hero-panel-inner {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1.15 / 1;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.12), transparent 45%),
    linear-gradient(20deg, rgba(56, 189, 248, 0.10), transparent 40%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.75rem;
}

.hero-panel-line {
  height: 0.85rem;
  width: 72%;
  border-radius: 999px;
  background: rgba(232, 238, 247, 0.16);
  margin-bottom: 0.85rem;
}

.hero-panel-line.short {
  width: 48%;
}

.hero-panel-pill {
  margin-top: 2.5rem;
  height: 2.5rem;
  width: 58%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.85), rgba(56, 189, 248, 0.85));
}

.hero-panel-glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042f2e;
}

.btn-primary:hover {
  color: #021716;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-steps {
  display: grid;
  gap: 1rem;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-released {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.badge-preparing {
  color: #93c5fd;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary {
  margin-bottom: 0.55rem;
  color: var(--accent);
}

.faq p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  background: rgba(5, 8, 20, 0.55);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.site-footnote {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.error-page {

/* Privacy policy */
.policy-hero {
  padding: 3rem 0 1.5rem;
}

.policy-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.policy-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.policy {
  padding-bottom: 4rem;
}

.policy article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.policy h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy ul {
  padding-left: 1.2rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .grid-3,
  .grid-steps,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: none; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}

@media (max-width: 375px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .brand-hero span { font-size: 1.7rem; }
  .hero { padding-top: 2.5rem; }
}
