/*
Theme Name: Nexus Public
Theme URI: https://example.com/
Author: OpenAI
Description: Public-facing WordPress theme for the Nexus restaurant operating system website.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: nexus-public
*/

:root {
  --nx-bg: #060a12;
  --nx-bg-2: #0b1120;
  --nx-bg-3: #0f172b;
  --nx-panel: rgba(13, 19, 34, 0.78);
  --nx-panel-strong: rgba(18, 26, 46, 0.94);
  --nx-line: rgba(145, 166, 209, 0.16);
  --nx-line-strong: rgba(145, 166, 209, 0.26);
  --nx-text: #ebf2ff;
  --nx-muted: #9eb0cf;
  --nx-soft: #c3d1ec;
  --nx-surface: #111a2d;
  --nx-surface-2: #162038;
  --nx-ink: #06101f;
  --nx-radius: 24px;
  --nx-radius-sm: 16px;
  --nx-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --nx-shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.42);
  --nx-max: 1360px;
  --nx-authority: #9b7cff;
  --nx-trading: #6fb0ff;
  --nx-kitchen: #ffb86a;
  --nx-queue: #45e0cb;
  --nx-serve: #65d7ff;
  --nx-online: #8ea0ff;
  --nx-connect: #d28cff;
  --nx-vision: #ff7bcc;
  --nx-hub: #67d89a;
  --nx-stage: #b8c6e5;
  --nx-control: #ff7d8e;
  --nx-mobile: #6ad0ff;
  --nx-home: #7fd7ca;
  --nx-secure: #ffd36f;
  --nx-aura: #ff9ae7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(155,124,255,0.12), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(111,176,255,0.10), transparent 25%),
    linear-gradient(180deg, #070b14 0%, #09111d 45%, #070b14 100%);
  color: var(--nx-text);
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.site-shell { min-height: 100vh; }

.nx-container {
  width: min(calc(100% - 56px), var(--nx-max));
  margin: 0 auto;
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(6,10,18,0.74);
  border-bottom: 1px solid rgba(145,166,209,0.12);
}

.nx-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.nx-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nx-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}

.nx-brand-mark span {
  display: block;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(155,124,255,1) 0%, rgba(111,176,255,1) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 18px rgba(111,176,255,0.18);
}

.nx-brand-mark span:nth-child(1) { opacity: 0.55; }
.nx-brand-mark span:nth-child(2) { opacity: 0.85; }
.nx-brand-mark span:nth-child(3) { opacity: 0.55; }
.nx-brand-mark span:nth-child(4) { opacity: 0.85; }
.nx-brand-mark span:nth-child(5) { opacity: 1; }

.nx-wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.nx-wordmark__root {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nx-wordmark__role {
  color: #9eb7df;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nx-nav { justify-self: center; }
.nx-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nx-nav li { margin: 0; }

.nx-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--nx-soft);
  font-weight: 650;
  font-size: 0.96rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nx-nav a:hover,
.nx-nav .current-menu-item > a {
  color: #fff;
  background: rgba(145,166,209,0.12);
}

.nx-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.nx-btn:hover { transform: translateY(-1px); }
.nx-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(155,124,255,0.95) 0%, rgba(111,176,255,0.95) 100%);
  box-shadow: 0 14px 34px rgba(93,123,255,0.28);
}
.nx-btn--primary:hover { box-shadow: 0 18px 40px rgba(93,123,255,0.34); }
.nx-btn--secondary {
  border-color: rgba(145,166,209,0.18);
  background: rgba(145,166,209,0.07);
  color: #fff;
}
.nx-btn--secondary:hover {
  background: rgba(145,166,209,0.12);
  border-color: rgba(145,166,209,0.26);
}
.nx-btn--dark-outline {
  color: #fff;
  background: transparent;
  border-color: rgba(145,166,209,0.22);
}

.nx-hero,
.nx-page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}

.nx-hero::before,
.nx-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(155,124,255,0.12), transparent 30%),
    linear-gradient(135deg, transparent 60%, rgba(255,184,106,0.08) 100%),
    radial-gradient(circle at 82% 22%, rgba(111,176,255,0.18), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 92px);
  pointer-events: none;
}

.nx-hero__grid,
.nx-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.nx-eyebrow,
.nx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(145,166,209,0.18);
  background: rgba(145,166,209,0.08);
  color: #b8c6e5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nx-eyebrow::before,
.nx-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--nx-authority) 0%, var(--nx-trading) 100%);
  box-shadow: 0 0 16px rgba(111,176,255,0.45);
}

.nx-hero h1,
.nx-page-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(3rem, 5.4vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  max-width: 13.5ch;
}

.nx-page-hero h1 { font-size: clamp(2.8rem, 5vw, 4.45rem); max-width: 11ch; }

.nx-hero__lead,
.nx-page-hero p {
  color: var(--nx-soft);
  font-size: 1.12rem;
  max-width: 60ch;
  margin: 0;
}

.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 24px;
}

.nx-hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.nx-stat,
.nx-detail,
.nx-hero-card,
.nx-card,
.nx-grid-card,
.nx-feature,
.nx-panel,
.nx-banner,
.nx-form {
  position: relative;
  overflow: hidden;
  border-radius: var(--nx-radius);
  border: 1px solid var(--nx-line);
  background: linear-gradient(180deg, rgba(17,26,45,0.88) 0%, rgba(9,15,28,0.94) 100%);
  box-shadow: var(--nx-shadow);
}

.nx-stat::before,
.nx-detail::before,
.nx-hero-card::before,
.nx-card::before,
.nx-grid-card::before,
.nx-feature::before,
.nx-panel::before,
.nx-banner::before,
.nx-form::before,
.nx-app-card::before,
.nx-metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(155,124,255,0.10), transparent 28%);
  pointer-events: none;
}

.nx-stat,
.nx-detail,
.nx-card,
.nx-grid-card,
.nx-feature,
.nx-panel,
.nx-metric {
  padding: 20px;
}

.nx-hero-card { padding: 24px; }
.nx-hero-card h2 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }

.nx-list-clean {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.nx-list-clean li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(145,166,209,0.10);
  color: var(--nx-soft);
}

.nx-list-clean li:last-child { border-bottom: 0; }
.nx-list-clean strong { color: #fff; font-size: 1rem; letter-spacing: -0.02em; }

.nx-stat strong,
.nx-detail strong,
.nx-card h3,
.nx-grid-card h3,
.nx-feature h3,
.nx-panel h3,
.nx-metric strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.nx-stat span,
.nx-detail,
.nx-card p,
.nx-grid-card p,
.nx-feature p,
.nx-panel p,
.nx-banner p,
.nx-form-note,
.nx-metric span {
  color: var(--nx-soft);
}

.nx-spine {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.nx-spine-step {
  padding: 18px 16px 18px;
  border-radius: var(--nx-radius);
  background: linear-gradient(180deg, rgba(17,26,45,0.92) 0%, rgba(9,14,26,0.96) 100%);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow);
  position: relative;
}

.nx-spine-step::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--spine-accent, var(--nx-authority));
}

.nx-spine-step__index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(145,166,209,0.1);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.nx-spine-step h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.12; letter-spacing: -0.03em; }
.nx-spine-step p { margin: 0; color: var(--nx-soft); font-size: 0.94rem; line-height: 1.45; }

.nx-spine-step--authority { --spine-accent: var(--nx-authority); }
.nx-spine-step--trading { --spine-accent: var(--nx-trading); }
.nx-spine-step--kitchen { --spine-accent: var(--nx-kitchen); }
.nx-spine-step--hub { --spine-accent: var(--nx-hub); }

.nx-section {
  padding: 72px 0;
  position: relative;
}

.nx-section--muted {
  background: linear-gradient(180deg, rgba(9,14,26,0.68) 0%, rgba(12,20,36,0.84) 100%);
  border-top: 1px solid rgba(145,166,209,0.08);
  border-bottom: 1px solid rgba(145,166,209,0.08);
}

.nx-section--dark {
  background: linear-gradient(180deg, rgba(6,10,18,0.96) 0%, rgba(8,12,22,1) 100%);
}

.nx-section__header {
  max-width: 860px;
  margin-bottom: 28px;
}

.nx-section__header h2 {
  margin: 14px 0 12px;
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.nx-section__header p {
  margin: 0;
  color: var(--nx-soft);
  font-size: 1.04rem;
}

.nx-grid {
  display: grid;
  gap: 14px;
}

.nx-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nx-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.nx-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.nx-icon-chip {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(145,166,209,0.1);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.nx-card h3,
.nx-grid-card h3,
.nx-feature h3 {
  margin-top: 0;
}

.nx-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.nx-app-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 22px 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(145,166,209,0.14);
  background: linear-gradient(180deg, rgba(18,26,46,0.92) 0%, rgba(8,13,24,0.98) 100%);
  box-shadow: var(--nx-shadow-strong);
}

.nx-app-card__rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--app-accent, var(--nx-authority));
}

.nx-app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nx-app-card__eyebrow {
  color: rgba(210,224,255,0.72);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nx-app-card__title {
  display: grid;
  gap: 12px;
}

.nx-app-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  line-height: 0.95;
}

.nx-app-wordmark__root,
.nx-app-wordmark__full {
  color: #fff;
  font-size: 1.62rem;
  font-weight: 860;
  letter-spacing: -0.05em;
}

.nx-app-wordmark__suffix {
  color: var(--app-accent, var(--nx-authority));
  font-size: 1.62rem;
  font-weight: 860;
  letter-spacing: -0.05em;
}

.nx-app-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(145,166,209,0.08);
  border: 1px solid rgba(145,166,209,0.12);
  color: #dbe7ff;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nx-app-card p {
  margin: 16px 0 0;
  color: var(--nx-soft);
  font-size: 1.02rem;
}

.nx-app-card--authority { --app-accent: var(--nx-authority); }
.nx-app-card--trading { --app-accent: var(--nx-trading); }
.nx-app-card--kitchen { --app-accent: var(--nx-kitchen); }
.nx-app-card--queue { --app-accent: var(--nx-queue); }
.nx-app-card--serve { --app-accent: var(--nx-serve); }
.nx-app-card--online { --app-accent: var(--nx-online); }
.nx-app-card--connect { --app-accent: var(--nx-connect); }
.nx-app-card--vision { --app-accent: var(--nx-vision); }
.nx-app-card--hub { --app-accent: var(--nx-hub); }
.nx-app-card--stage { --app-accent: var(--nx-stage); }
.nx-app-card--control { --app-accent: var(--nx-control); }
.nx-app-card--mobile { --app-accent: var(--nx-mobile); }
.nx-app-card--home { --app-accent: var(--nx-home); }
.nx-app-card--secure { --app-accent: var(--nx-secure); }
.nx-app-card--aura { --app-accent: var(--nx-aura); }

.nx-glyph {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(145,166,209,0.12);
}

.nx-glyph span {
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--app-accent, var(--nx-authority)) 90%, white 10%) 0%, color-mix(in srgb, var(--app-accent, var(--nx-authority)) 70%, black 30%) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 18px color-mix(in srgb, var(--app-accent, var(--nx-authority)) 18%, transparent 82%);
}

.nx-glyph span:nth-child(1) { grid-column: span 2; height: 14px; }
.nx-glyph span:nth-child(2),
.nx-glyph span:nth-child(3) { height: 22px; }

.nx-split {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 22px;
  align-items: start;
}

.nx-detail-stack { display: grid; gap: 16px; }

.nx-banner {
  padding: 34px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(155,124,255,0.14) 0%, rgba(111,176,255,0.10) 42%, rgba(255,184,106,0.08) 100%),
    linear-gradient(180deg, rgba(14,20,35,0.96) 0%, rgba(8,13,24,0.98) 100%);
}

.nx-banner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.nx-banner p { margin: 0; max-width: 64ch; }

.nx-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.nx-metric {
  border-radius: 22px;
  border: 1px solid var(--nx-line);
  background: linear-gradient(180deg, rgba(17,26,45,0.88) 0%, rgba(8,13,24,0.98) 100%);
  box-shadow: var(--nx-shadow);
}

.nx-metric strong {
  font-size: 1.42rem;
  margin-bottom: 10px;
}

.nx-page-hero__panel,
.nx-panel {
  padding: 24px;
}

.nx-prose p,
.nx-prose li { color: var(--nx-soft); }
.nx-prose h2,
.nx-prose h3 { color: #fff; letter-spacing: -0.04em; }

.nx-form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.nx-form { padding: 28px; }
.nx-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.nx-form-field { display: grid; gap: 8px; }
.nx-form-field--full { grid-column: 1 / -1; }
.nx-form label {
  color: #dfe9ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.nx-form input,
.nx-form select,
.nx-form textarea {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(145,166,209,0.16);
  background: rgba(255,255,255,0.03);
  color: #fff;
}

.nx-form textarea {
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

.nx-form input:focus,
.nx-form select:focus,
.nx-form textarea:focus {
  outline: none;
  border-color: rgba(155,124,255,0.62);
  box-shadow: 0 0 0 4px rgba(155,124,255,0.12);
}

.nx-form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.nx-message {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.nx-message--success {
  background: rgba(103,216,154,0.12);
  border: 1px solid rgba(103,216,154,0.22);
  color: #c7f3d8;
}

.nx-message--error {
  background: rgba(255,125,142,0.12);
  border: 1px solid rgba(255,125,142,0.22);
  color: #ffd6dc;
}

.nx-footer {
  border-top: 1px solid rgba(145,166,209,0.10);
  background: rgba(6,10,18,0.88);
}

.nx-footer__inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px 0;
}

.nx-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.nx-footer nav a {
  color: var(--nx-soft);
  font-weight: 650;
}

.nx-footer nav a:hover { color: #fff; }

@media (max-width: 1120px) {
  .nx-header__inner {
    grid-template-columns: 1fr;
    padding: 14px 0 16px;
  }
  .nx-nav { justify-self: start; }
  .nx-hero__grid,
  .nx-page-hero__grid,
  .nx-split,
  .nx-form-wrap { grid-template-columns: 1fr; }
  .nx-hero__trust,
  .nx-app-grid,
  .nx-metric-grid,
  .nx-spine { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 840px) {
  .nx-container { width: min(calc(100% - 28px), var(--nx-max)); }
  .nx-hero,
  .nx-page-hero,
  .nx-section { padding: 72px 0; }
  .nx-hero h1,
  .nx-page-hero h1 { max-width: none; }
  .nx-grid--2,
  .nx-grid--3,
  .nx-grid--4,
  .nx-hero__trust,
  .nx-app-grid,
  .nx-metric-grid,
  .nx-spine,
  .nx-form-grid { grid-template-columns: 1fr; }
  .nx-footer__inner { grid-template-columns: 1fr; }
  .nx-footer nav ul { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .nx-header__cta { width: 100%; flex-wrap: wrap; }
  .nx-btn { width: 100%; }
  .nx-nav ul { gap: 8px; }
  .nx-nav a { min-height: 38px; padding: 0 12px; font-size: 0.92rem; }
  .nx-app-card { min-height: 0; }
}


@media (max-width: 1200px) {
  .nx-hero__grid,
  .nx-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nx-spine {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .nx-container {
    width: min(calc(100% - 32px), var(--nx-max));
  }

  .nx-header__inner {
    min-height: 72px;
  }

  .nx-hero,
  .nx-page-hero,
  .nx-section {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .nx-spine,
  .nx-hero__trust,
  .nx-app-grid,
  .nx-grid--2,
  .nx-grid--3,
  .nx-grid--4 {
    grid-template-columns: 1fr;
  }
}
