@import url("../../shared/nexus-tokens.css");
@import url("../../shared/nexus-chrome.css?v=2026-07-23-shared-restore");
@import url("../../shared/nexus-themes.css");

/* Product-only: hero and CTAs */
.nx-www-hero {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 48px 24px 28px;
  position: relative;
}

.nx-www-hero::before {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, #38bdf8, var(--nx-accent), #a78bfa);
  opacity: 0.95;
}

.nx-www-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.nx-www-hero p {
  color: var(--nx-text-secondary);
  font-size: 1.05rem;
}

.nx-www-brandmark {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--nx-border);
}

.nx-www-brandmark__title {
  margin: 0 0 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-text-secondary);
}

.nx-www-brandmark__img {
  width: min(360px, 65vw);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 44px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.nx-www-brandmark__caption {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.92rem;
  color: var(--nx-text-secondary);
  line-height: 1.5;
}

.nx-www-main {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

main#nx-main.nx-www-main {
  display: block;
}

.nx-www-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--nx-glow);
}

.nx-www-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.nx-www-card a.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--nx-accent);
  color: var(--nx-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--nx-radius-sm);
}

.nx-www-card a.cta:hover {
  filter: brightness(1.08);
}

/* Download page: platform sections */
.nx-download-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.nx-download-jump a {
  display: inline-block;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--nx-text);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  box-shadow: var(--nx-glow);
}

.nx-download-jump a:hover {
  border-color: var(--nx-accent);
  color: var(--nx-accent);
}

.nx-platform-card h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.nx-platform-card .nx-platform-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nx-on-accent);
  background: var(--nx-accent);
  border-radius: 999px;
}

/* Download page: VS Code–style hero + installer matrix */
.nx-download-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.03em;
}

.nx-download-hero--vscode .nx-download-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.nx-download-hero__lede {
  margin: 0 0 12px;
  color: var(--nx-text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 46rem;
}

.nx-download-version {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--nx-text-secondary);
  line-height: 1.5;
}

.nx-download-version a {
  color: var(--nx-accent);
  font-weight: 500;
  text-decoration: none;
}

.nx-download-version a:hover {
  text-decoration: underline;
}

.nx-download-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
  color: var(--nx-text);
}

.nx-download-matrix-wrap {
  margin-bottom: 28px;
  padding: 0;
  overflow: visible;
}

.nx-download-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.nx-download-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.nx-download-matrix thead th {
  vertical-align: bottom;
  padding: 20px 16px 16px;
  border-bottom: 2px solid var(--nx-border-strong);
  text-align: center;
  font-weight: 600;
}

.nx-dl-mat__corner {
  width: 11rem;
  border-bottom-color: transparent;
}

.nx-dl-mat__os-head {
  background: linear-gradient(180deg, var(--nx-surface-raised) 0%, var(--nx-surface) 100%);
}

.nx-dl-mat__os-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nx-dl-mat__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  color: var(--nx-accent);
  overflow: visible;
  flex-shrink: 0;
}

/* Apple glyph extends slightly below the Windows/Linux icons; extra vertical room, no clipping */
.nx-dl-mat__icon-wrap--mac {
  padding: 5px 4px 7px;
  min-height: 58px;
  height: auto;
  box-sizing: border-box;
}

.nx-os-icon {
  display: block;
  color: inherit;
  overflow: visible;
}

.nx-os-icon--mat {
  width: 32px;
  height: 32px;
}

.nx-os-icon--mac {
  width: 30px;
  height: 30px;
}

.nx-dl-mat__os-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nx-dl-mat__os-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--nx-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nx-download-matrix tbody th,
.nx-download-matrix tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--nx-border);
  vertical-align: top;
}

.nx-download-matrix tbody tr:last-child th,
.nx-download-matrix tbody tr:last-child td {
  border-bottom: none;
}

.nx-dl-mat__row-head {
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  background: var(--nx-surface-raised);
  width: 11rem;
  min-width: 9rem;
}

.nx-dl-mat__badge {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nx-accent);
}

.nx-dl-mat__cell {
  background: var(--nx-surface);
}

.nx-dl-mat__cell-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 7.5rem;
  height: 100%;
}

.nx-dl-mat__hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--nx-text-secondary);
}

a.nx-dl-mat__cta--placeholder {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-accent) 45%, transparent);
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

.nx-dl-mat__placeholder-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--nx-text-secondary);
  max-width: 18rem;
}

.nx-dl-mat__hint code {
  font-size: 0.82em;
}

.nx-dl-mat__push {
  flex: 1 1 auto;
  min-height: 8px;
}

.nx-download-matrix a.cta {
  margin-top: 0;
  flex-shrink: 0;
}

.nx-dl-mat__footnotes {
  margin: 0;
  padding: 16px 20px 20px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--nx-text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--nx-border);
}

.nx-dl-mat__footnotes li + li {
  margin-top: 8px;
}

.nx-download-checksums {
  margin-top: 8px;
  position: relative;
  z-index: 1;
  clear: both;
}

a.cta.nx-cta-locked {
  background: var(--nx-surface-raised);
  color: var(--nx-text);
  border: 1px dashed var(--nx-border-strong);
  box-shadow: none;
}

a.cta.nx-cta-locked:hover {
  filter: none;
  border-color: var(--nx-accent);
  color: var(--nx-accent);
}

/* Bugs page: customer form */
.nx-bug-page h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
}

.nx-bug-hero__lede {
  margin: 0 0 14px;
  color: var(--nx-text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

.nx-bug-form-intro {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border);
  background: var(--nx-surface-raised);
  font-size: 0.95rem;
  line-height: 1.5;
}

.nx-bug-page__foot {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--nx-text-secondary);
  line-height: 1.5;
}

.nx-bug-issue-link-wrap {
  margin: 12px 0 0;
}

.nx-bug-issue-link {
  font-weight: 600;
  color: var(--nx-accent);
  text-decoration: none;
}

.nx-bug-issue-link:hover {
  text-decoration: underline;
}

.nx-bug-private-link-wrap {
  margin-top: 12px;
}

.nx-bug-private-link-warn {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--nx-text-secondary);
}

.nx-bug-status-desc {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  padding: 12px;
  background: color-mix(in srgb, var(--nx-bg-elevated) 80%, transparent);
  border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border);
  max-height: 24rem;
  overflow: auto;
}

.nx-bug-form__h2 {
  margin-top: 0;
}

.nx-bug-form__field {
  margin: 0 0 18px;
}

.nx-bug-form__field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.nx-bug-form__field input[type="text"],
.nx-bug-form__field input[type="email"],
.nx-bug-form__field select,
.nx-bug-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-surface);
  color: var(--nx-text);
}

.nx-bug-form__field textarea {
  resize: vertical;
  min-height: 8rem;
}

.nx-bug-form__field input:focus,
.nx-bug-form__field select:focus,
.nx-bug-form__field textarea:focus {
  outline: 2px solid var(--nx-accent);
  outline-offset: 1px;
}

.nx-bug-form__field input.nx-bug-form__input--invalid,
.nx-bug-form__field textarea.nx-bug-form__input--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px color-mix(in srgb, #dc2626 45%, transparent);
}

.nx-bug-form__field-error {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 0.86rem;
  line-height: 1.35;
}

.nx-bug-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.nx-bug-form__field--half {
  flex: 1 1 14rem;
  min-width: 0;
}

.nx-bug-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nx-bug-form__actions {
  margin: 8px 0 0;
}

.nx-bug-form__submit {
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nx-on-accent);
  background: var(--nx-accent);
  border: none;
  border-radius: var(--nx-radius-sm);
  cursor: pointer;
}

.nx-bug-form__submit:hover {
  filter: brightness(1.08);
}

.nx-bug-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.nx-bug-form__status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--nx-radius-sm);
  font-size: 0.92rem;
}

.nx-bug-form__status--ok {
  background: color-mix(in srgb, var(--nx-accent) 12%, var(--nx-surface));
  border: 1px solid color-mix(in srgb, var(--nx-accent) 35%, var(--nx-border));
}

.nx-bug-form__status--error {
  background: color-mix(in srgb, #dc2626 10%, var(--nx-surface));
  border: 1px solid color-mix(in srgb, #dc2626 30%, var(--nx-border));
}

.nx-bug-thread {
  margin: 0 0 16px;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-surface-raised);
  padding: 10px 12px;
}

.nx-bug-thread__empty {
  margin: 0;
  color: var(--nx-text-secondary);
  font-size: 0.9rem;
}

.nx-bug-thread__msg + .nx-bug-thread__msg {
  border-top: 1px solid var(--nx-border);
  margin-top: 10px;
  padding-top: 10px;
}

.nx-bug-thread__meta {
  margin: 0 0 4px;
  color: var(--nx-text-secondary);
  font-size: 0.82rem;
}

.nx-bug-thread__body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.nx-bug-status-list-wrap {
  margin: 0 0 20px;
}

.nx-bug-status-list-toolbar {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-bug-status-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.nx-bug-status-filter-label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--nx-accent, #2563eb);
}

.nx-bug-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 8px 0 4px;
}

.nx-bug-status-table th,
.nx-bug-status-table td {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--nx-border);
  vertical-align: top;
}

.nx-bug-status-table th {
  color: var(--nx-text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
}

.nx-bug-status-table__state {
  white-space: nowrap;
  width: 6.5rem;
  color: var(--nx-text-secondary);
}

.nx-bug-status-table__action {
  width: 4rem;
  text-align: right;
}

.nx-bug-status-table__action a {
  font-weight: 600;
}

.nx-support-lead {
  margin: 0 0 14px;
  color: var(--nx-text-secondary);
  max-width: 40rem;
}

.nx-support-list {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.nx-support-list li + li {
  margin-top: 8px;
}

.nx-support-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nx-text-secondary);
  max-width: 42rem;
}

/* Download hold / better trials banner */
.nx-download-hold {
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}
.nx-download-hold h2 {
  margin-top: 0;
  color: #b45309;
}
.nx-download-hold[hidden] {
  display: none !important;
}

