/* Nuqasm UI polish — consistent primitives across all surfaces */

/* ========= Shared panel chrome ========= */
.panel-head,
.instrument-head,
.hero-terminal-head,
.spec-sheet-head,
.form .fh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--mute);
  background: var(--bg-2);
}

/* ========= Panels — one elevation language ========= */
.instrument,
.hero-terminal-panel,
.spec-sheet,
.price-table,
.doors,
.metrics,
.rooms,
.audience,
.form,
.diagram-wrap {
  box-shadow: var(--shadow-panel);
}

.hero-terminal-panel,
.instrument,
.spec-sheet,
.price-table,
.doors,
.form.open {
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ========= Links — one accent treatment ========= */
.link-accent,
.audience-deadline-copy a,
.visual-break a:not(.btn),
.foot a {
  color: var(--sig);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 146, 78, .38);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-accent:hover,
.audience-deadline-copy a:hover,
.visual-break a:not(.btn):hover,
.foot a:hover {
  color: var(--sig-2);
  border-bottom-color: rgba(203, 176, 122, .55);
}

/* ========= Buttons — gradient border, transparent fill on hover ========= */
.btn,
.btn-primary,
.btn-ghost,
.demo-btn,
.demo-btn-ghost,
.form button:not(.row-cta) {
  border-radius: var(--radius-sm);
  letter-spacing: .12em;
  color: var(--btn-text);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box,
    var(--gradient-route) border-box;
  box-shadow: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.demo-btn,
.demo-btn-ghost {
  background:
    linear-gradient(var(--btn-fill-alt), var(--btn-fill-alt)) padding-box,
    var(--gradient-route) border-box;
}

.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.demo-btn:hover:not(:disabled),
.demo-btn-ghost:hover:not(:disabled),
.form button:not(.row-cta):hover:not(:disabled) {
  color: var(--btn-text-hover);
  background:
    var(--btn-fill-hover) padding-box,
    var(--gradient-route) border-box;
  border-bottom-color: transparent;
}

.btn:active:not(:disabled),
.demo-btn:active:not(:disabled),
.form button:not(.row-cta):active:not(:disabled) {
  transform: translateY(1px);
}

.demo-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.demo-btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:focus-visible,
.demo-btn:focus-visible,
.form button:not(.row-cta):focus-visible {
  outline: 2px solid var(--sig-2);
  outline-offset: 3px;
}

/* ========= Chips & labels ========= */
.chip {
  border-color: var(--line-hot);
  border-radius: var(--radius-sm);
  letter-spacing: var(--track-wide);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.chip:hover {
  border-color: rgba(184, 146, 78, .35);
  background: var(--surface-2);
}

.label--accent,
.label--sm,
.proof-label,
.sg-tag {
  font-size: var(--text-label);
  letter-spacing: var(--track-wide);
}

/* ========= Form fields ========= */
.field input,
.field textarea,
.field select {
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.field input:hover:not(:focus),
.field textarea:hover:not(:focus),
.field select:hover:not(:focus) {
  border-color: var(--line-hot);
  background: var(--bg-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  box-shadow: var(--shadow-focus);
}

.form.open {
  animation: panel-in .45s var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========= Hero ========= */
.hero {
  border-bottom: 1px solid var(--line);
}

.metrics > div {
  transition: background var(--dur) var(--ease);
}

.metrics > div:hover {
  background: rgba(184, 146, 78, .04);
}

.metrics .v {
  letter-spacing: -0.02em;
}

/* ========= Section bands ========= */
section.section--band {
  box-shadow: inset 3px 0 0 rgba(45, 106, 95, .5);
}

.section-head__num {
  text-shadow: 0 0 32px rgba(184, 146, 78, .15);
}

/* ========= Cards & rows ========= */
.door,
.spec-row,
.price-row,
.stage,
.mandate-card {
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.door:focus-visible {
  outline: 2px solid var(--sig-2);
  outline-offset: -2px;
  background: rgba(45, 106, 95, .05);
}

.door .door-n {
  color: var(--sig);
  font-weight: 500;
  min-width: 2.25rem;
}

.spec-row:hover {
  background: rgba(255, 255, 255, .015);
}

.price-row:hover {
  background: rgba(184, 146, 78, .03);
}

.room.featured {
  box-shadow: inset 0 0 0 1px rgba(184, 146, 78, .22);
}

/* ========= Pipeline ========= */
.stage::after {
  content: "→";
}

.stage .num b {
  font-size: var(--text-md);
}

.stage:hover {
  background: rgba(184, 146, 78, .03);
}

.pipeline {
  box-shadow: var(--shadow-panel);
}

.spec-row .label {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--mute);
  line-height: 1.5;
}

.spec-row .label b {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: .08em;
  margin-bottom: .2rem;
}


/* ========= Satellite pages ========= */
.nav--page {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav--page::after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: var(--bar-route);
  opacity: .85;
}

.nav--page .logo img {
  filter: drop-shadow(0 0 10px rgba(184, 146, 78, .28));
}

.deadline {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-panel);
}

body.page-narrow .form,
body.page-narrow section .form {
  border-radius: var(--radius-sm);
}

body.page-blog .post-card {
  border-radius: var(--radius-sm);
}

body.page-blog .post-card .row-cta {
  border-bottom: 0;
}

body.page-blog article code {
  border-radius: var(--radius-sm);
}

/* ========= Footer ========= */
footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.foot-grid a {
  border-bottom: 0;
}

.foot-grid a:hover {
  border-bottom: 0;
}

.foot-tabs .row-cta.foot-tab {
  border-bottom: 0;
}

.foot-tabs .row-cta.foot-tab::after {
  border-bottom: 0;
}

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

  .btn:active:not(:disabled),
  .demo-btn:active:not(:disabled),
  .form button:not(.row-cta):active:not(:disabled) {
    transform: none;
  }
}
