/* Nexus — design tokens. BarberOne "Apple professional" system.
   System SF font (zero font requests), gold #c9a96a, glass, Apple easing.
   Old Nexus token names are kept and repointed so existing rules still work. */

:root {
  /* BarberOne palette */
  --bg: #000;
  --bg2: #070708;
  --card: #0c0c0c;
  --card2: #101012;
  --fill: #1c1c1e;
  --text: #fff;
  --sec: #8e8e93;
  --sec2: #636366;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --gold: #c9a96a;
  --gold-soft: rgba(201, 169, 106, 0.14);
  --glass: rgba(10, 10, 11, 0.55);
  --red: #ff453a;
  --green: #34c759;
  --blue: #0a84ff;

  --f: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  /* legacy Nexus names, repointed to the Apple system */
  --ink: #000;
  --carbon: #0c0c0c;
  --hairline: rgba(255, 255, 255, 0.1);
  --bone: #ffffff;
  --slate: #8e8e93;
  --champagne: #c9a96a;
  --redact: #000000;
  --display: var(--f);
  --data: var(--f);

  /* rhythm + radii */
  --space-unit: 8px;
  --measure: 34rem;
  --radius: 3px; /* redaction bars */
  --radius-field: 14px;
  --radius-card: 22px;
}

/* ---------- reset / base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- shared primitives ---------- */

.eyebrow {
  font-family: var(--f);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec);
}

.figure {
  color: var(--gold);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-field);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #12100b;
  background: var(--gold);
  transition: transform 0.12s var(--ease), opacity 0.15s, box-shadow 0.25s;
}
.btn:hover {
  opacity: 0.92;
}
.btn:active {
  transform: scale(0.986);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* champagne verification seal — an 8px diamond, not an emoji/checkmark */
.seal {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
  flex: none;
}

/* Redaction bar — the signature element. A hole in the page: pure black,
   darker than the card. On interaction a faint gold glint traverses and
   reveals nothing. Widths vary per instance (set inline). */
.redact {
  display: inline-block;
  vertical-align: baseline;
  height: 0.86em;
  width: 7ch;
  border-radius: var(--radius);
  background: var(--redact);
  position: relative;
  overflow: hidden;
  transform: translateY(0.06em);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.redact::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(201, 169, 106, 0.08) 45%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(201, 169, 106, 0.08) 55%,
    transparent 100%
  );
}
.redact:hover::after,
.redact:focus-visible::after,
.redact.glint::after {
  animation: redact-glint 0.9s ease-out;
}
@keyframes redact-glint {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .redact::after {
    display: none;
  }
}
