/* NEXAR — premium minimal */
:root {
  --bg: #080808;
  --surface: #111111;
  --border: #1f1f1f;
  --text: #f0f0f0;
  --muted: #666666;
  --red: #9b0000;
  --red-bright: #cc0000;
  --red-fill-hover: rgba(155, 0, 0, 0.12);
  --red-card: #1a0505;
  --ok: #2d7a4d;
  --warn: #8a6a1f;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.65s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* Subtle film grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Top-of-viewport navigation progress (SPA-style cue on multi-page hops) */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.nav-progress.nav-progress--visible {
  opacity: 1;
}

.nav-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red-bright) 52%,
    var(--red) 100%
  );
  box-shadow: 0 0 14px rgba(204, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .nav-progress__bar {
    transition: none !important;
  }
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, calc(100% - 48px));
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: nav-drop 0.55s var(--ease-out) both;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transform: translateY(-2px);
}

.brand-logo--nav {
  height: 26px;
  width: auto;
}

.brand-logo--footer {
  height: 22px;
  width: auto;
}

.nav-brand:hover {
  color: var(--red-bright);
}

.nav-toggle {
  display: none;
  justify-self: end;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-toggle:hover {
  background: var(--red-fill-hover);
  border-color: var(--red);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.45s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(17, 17, 17, 0.6);
  transform: translateY(-1px);
}

.nav-link .nav-ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover .nav-ico {
  color: var(--red-bright);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--text);
  border-color: var(--red);
  background: rgba(155, 0, 0, 0.09);
}

.nav-link[aria-current="page"] .nav-ico,
.nav-link.is-active .nav-ico {
  color: var(--red-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 960px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .btn-discord {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.25s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  border-color: var(--red);
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--red-fill-hover);
  border-color: var(--red-bright);
}

.btn-primary {
  background: transparent;
  border-color: var(--red);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--red-fill-hover);
  border-color: var(--red-bright);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--red-fill-hover);
  border-color: var(--red);
}

.btn-discord {
  border-color: #3a3a3a;
  color: #b0b0b0;
  background: rgba(255, 255, 255, 0.04);
}

.btn-discord:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: #5a5a5a;
  color: #e8e8e8;
}

.btn-discord .nav-ico,
.btn-discord svg {
  width: 18px;
  height: 18px;
}

/* ---------- Icons ---------- */
.icon {
  display: block;
  overflow: visible;
}

.icon--feature {
  width: 40px;
  height: 40px;
}

.muted {
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 96px 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 31, 31, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-inline: auto;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 78%;
  min-width: 280px;
  min-height: 120px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(155, 0, 0, 0.34) 0%,
    rgba(204, 0, 0, 0.08) 45%,
    transparent 72%
  );
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-inline: 12px;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 28em;
  margin-inline: auto;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill:not(:last-child) {
  margin-right: 18px;
}

.pill:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  text-align: center;
  color: var(--red);
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.hero-cta {
  margin-top: 48px;
  padding: 14px 36px;
}

/* ---------- Dividers / sections ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

.section {
  padding-block: 96px 100px;
}

.section-head {
  margin-bottom: 56px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 12px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
}

/* ---------- Feature grid ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: background-color 0.4s var(--ease-out);
}

.feature:hover {
  background: rgba(17, 17, 17, 0.35);
}

.feature-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
}

.feature:nth-child(2) {
  padding-left: 36px;
}

.feature:nth-child(3) {
  padding-top: 40px;
}

@media (max-width: 720px) {
  .grid-features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 28px 24px 32px;
  }

  .feature:nth-child(2),
  .feature:nth-child(3) {
    padding-left: 24px;
    padding-top: 28px;
  }
}

.feature-label {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
}

/* ---------- Trust / assurance (index) ---------- */
.trust {
  padding-bottom: 110px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.trust-card {
  background: var(--bg);
  padding: 28px 26px 32px;
  min-height: 160px;
  transition: background-color 0.4s var(--ease-out);
}

.trust-card:hover {
  background: rgba(17, 17, 17, 0.4);
}

.trust-card__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.trust-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.trust-card__text strong {
  color: var(--text);
  font-weight: 600;
}

.trust-footnote {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 640px;
}

@media (max-width: 720px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page shell ---------- */
.page-hero {
  padding-block: 72px 48px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 70% at 50% -30%, rgba(155, 0, 0, 0.15), transparent 55%);
}

.page-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
}

.page-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
}

.legal-meta {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Legal (TOS, policies) ---------- */
.legal-section {
  padding-bottom: 100px;
}

.legal-lead {
  margin: 0 0 40px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.45);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-lead strong {
  color: var(--text);
  font-weight: 600;
}

.legal-toc {
  margin: 0 0 48px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.legal-toc__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 16px;
}

.legal-toc__list {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  column-count: 2;
  column-gap: 32px;
}

.legal-toc__list a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc__list a:hover {
  color: var(--text);
  border-bottom-color: var(--red);
}

@media (max-width: 640px) {
  .legal-toc__list {
    column-count: 1;
  }
}

.legal-doc {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.legal-doc:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-doc h2 {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 100px;
}

.legal-doc h3 {
  margin: 22px 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-doc p:last-child {
  margin-bottom: 0;
}

.legal-doc ul {
  margin: 12px 0 18px;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc strong {
  color: var(--text);
  font-weight: 600;
}

.legal-doc em {
  font-style: italic;
}

.legal-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- Status ---------- */
.status-board {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg);
  transition: background-color 0.35s ease;
}

.status-row:hover {
  background: rgba(17, 17, 17, 0.3);
}

.status-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.status-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.status-badge--ok {
  border-color: rgba(45, 122, 77, 0.5);
  color: #a8d4b8;
  animation: status-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes status-badge-pulse {
  0%,
  100% {
    border-color: rgba(45, 122, 77, 0.45);
    background-color: transparent;
  }
  50% {
    border-color: rgba(45, 122, 77, 0.95);
    background-color: rgba(45, 122, 77, 0.06);
  }
}

.status-badge--ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: #3cb371;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(60, 179, 113, 0.35);
  animation: status-dot-pulse 2s ease-in-out infinite;
}

@keyframes status-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(60, 179, 113, 0.55), 0 0 0 2px rgba(60, 179, 113, 0.2);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 6px rgba(60, 179, 113, 0), 0 0 0 2px rgba(60, 179, 113, 0.35);
  }
}

.status-badge--degraded {
  border-color: rgba(138, 106, 31, 0.5);
  color: #d4c8a0;
}

.status-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.35s ease, transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.price-card:hover {
  border-color: #2c2c2c;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.price-card--featured {
  background: var(--red-card);
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(155, 0, 0, 0.35);
}

.price-card--featured::before {
  content: attr(data-label);
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--red);
  color: var(--text);
  font-weight: 600;
}

.price-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.price-amount {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 1.25rem;
  vertical-align: super;
  margin-right: 2px;
  color: var(--muted);
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.price-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-card--featured .price-list li {
  border-color: rgba(31, 31, 31, 0.7);
}

.price-cta {
  margin-top: 8px;
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- Loader ---------- */
.loader-shell {
  padding-bottom: 80px;
}

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 26px 30px;
}

.panel + .panel {
  margin-top: 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field input {
  width: 100%;
  padding: 14px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus {
  border-color: var(--red);
}

.form-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--red-bright);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.panel-footnote {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.success-panel {
  border: 1px solid var(--red);
  background: linear-gradient(180deg, rgba(26, 5, 5, 0.75), var(--surface));
  padding: 28px 26px 30px;
}

.success-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.success-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 0;
  margin-top: auto;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
  padding-block: 40px 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-wordmark:hover {
  color: var(--red-bright);
}

.footer-tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 20em;
}

.footer-nav {
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
  border-bottom-color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 18px 22px;
}

.footer-legal {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding-block: 32px 24px;
  }

  .footer-nav {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

main {
  flex: 1;
}

/* ---------- Motion ---------- */
@keyframes nu-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.he-line {
  opacity: 0;
  animation: nu-rise 0.75s var(--ease-out) forwards;
}

.he-line--1 {
  animation-delay: 0.06s;
}
.he-line--2 {
  animation-delay: 0.14s;
}
.he-line--3 {
  animation-delay: 0.22s;
}
.he-line--4 {
  animation-delay: 0.32s;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero .container {
  opacity: 0;
  animation: nu-rise 0.7s var(--ease-out) 0.08s forwards;
}

.grid-features .feature.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.grid-features .feature.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.grid-features .feature.reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.grid-features .feature.reveal:nth-child(4) {
  transition-delay: 0.26s;
}

.section-head.reveal {
  transition-delay: 0.04s;
}

.trust-grid .trust-card.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.trust-grid .trust-card.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.trust-grid .trust-card.reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.trust-grid .trust-card.reveal:nth-child(4) {
  transition-delay: 0.26s;
}

.pricing-grid .price-card.reveal:nth-child(1) {
  transition-delay: 0.06s;
}
.pricing-grid .price-card.reveal:nth-child(2) {
  transition-delay: 0.14s;
}

.reseller-pricing .price-card.reveal:nth-child(1) {
  transition-delay: 0.08s;
}
.reseller-pricing .price-card.reveal:nth-child(2) {
  transition-delay: 0.16s;
}

.inc-item.reveal:nth-child(1) {
  transition-delay: 0.02s;
}
.inc-item.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.inc-item.reveal:nth-child(3) {
  transition-delay: 0.1s;
}
.inc-item.reveal:nth-child(4) {
  transition-delay: 0.14s;
}
.inc-item.reveal:nth-child(5) {
  transition-delay: 0.18s;
}
.inc-item.reveal:nth-child(6) {
  transition-delay: 0.22s;
}

.step-row.reveal:nth-child(1) {
  transition-delay: 0.04s;
}
.step-row.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.step-row.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.step-row.reveal:nth-child(4) {
  transition-delay: 0.22s;
}

.status-board .status-row.reveal:nth-child(1) {
  transition-delay: 0.04s;
}
.status-board .status-row.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.status-board .status-row.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.stat-strip.reveal {
  transition-delay: 0.08s;
}

.reseller-cta.reveal {
  transition-delay: 0.06s;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

/* ---------- Resellers page ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
  max-width: 900px;
}

.stat-strip__cell {
  background: var(--bg);
  padding: 22px 18px;
  text-align: center;
}

.stat-strip__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.stat-strip__value {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reseller-lead {
  margin: 20px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
}

.reseller-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 640px) {
  .reseller-pricing {
    grid-template-columns: 1fr;
  }
}

.inc-heading {
  margin: 72px 0 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.inc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.inc-item {
  background: var(--bg);
  padding: 22px 24px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  transition: background-color 0.35s ease;
}

.inc-item:hover {
  background: rgba(17, 17, 17, 0.45);
}

.inc-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .inc-grid {
    grid-template-columns: 1fr;
  }
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: var(--bg);
  align-items: start;
  transition: background-color 0.35s ease;
}

.step-row:hover {
  background: rgba(17, 17, 17, 0.25);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red-bright);
}

.step-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 460px;
}

.reseller-cta {
  margin-top: 48px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.5), var(--bg));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reseller-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
}

.reseller-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-wrap {
    animation: none;
  }

  .he-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .page-hero .container {
    animation: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-link:hover {
    transform: none;
  }

  .price-card:hover {
    transform: none;
  }

  .status-badge--ok,
  .status-badge--ok::before {
    animation: none !important;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 1px solid var(--red-bright);
  outline-offset: 3px;
}

.nav-toggle:focus-visible {
  outline-offset: 2px;
}
