/* ============================================================
   Nyssa Systems — design system primitives
   Spec: docs/superpowers/specs/2026-05-10-nyssa-website-design.md §6
   ============================================================ */

/* ----- Fonts ---------------------------------------------- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----- Tokens --------------------------------------------- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #131313;
  --gold:        #c8a13a;
  --gold-bright: #e0bf52;
  --text:        #e8e6e1;
  --text-dim:    #8a8884;
  --rule:        rgba(200, 161, 58, 0.25);

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1280px;
  --pad-x:         32px;
  --section-y:     120px;

  --tracking-tight:  -0.01em;
  --tracking-wide:    0.05em;
  --tracking-widest:  0.2em;
}

@media (max-width: 768px) {
  :root {
    --pad-x:     20px;
    --section-y: 64px;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--gold-bright); }

button { font: inherit; cursor: pointer; }

/* ----- Type scale ----------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-transform: uppercase;
  color: var(--text);
}
h1 { font-size: 96px; }
h2 { font-size: 56px; }
h3 { font-size: 28px; }

@media (max-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .eyebrow { font-size: 12px; }
}

.micro {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: var(--tracking-wide);
}
@media (max-width: 768px) {
  .micro { font-size: 12px; }
}

/* ----- Layout primitives ---------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--bleed { padding-left: 0; padding-right: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ----- Buttons -------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ============================================================
   Nav (spec §5.1)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav__row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 768px) {
  .nav__row { height: 56px; gap: 12px; }
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: var(--tracking-wide);
  color: var(--gold);
  text-transform: uppercase;
}
.nav__brand:hover { color: var(--gold-bright); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 0;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--gold);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 180ms ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { right: 0; }

@media (max-width: 600px) {
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11px; }
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ============================================================
   Hero (spec §5.2)
   ============================================================ */
.hero {
  padding-top: calc(var(--section-y) + 32px);
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Subtle vertical gradient toward bg-2 at the bottom */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: -1;
}

.hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero__row { grid-template-columns: 1fr; gap: 48px; }
}

.hero__copy { max-width: 560px; }

.hero__headline {
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero__unit {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__unit-placeholder {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--rule);
  background: var(--bg-2);
}

/* ============================================================
   Hero unit mockup (spec §5.2)
   ============================================================ */
.unit {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 18px 18px 22px 18px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  /* No rounded corners — angular per spec §6.4 */
}

.unit__vents {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  height: 6px;
}
.unit__vents span {
  background: #050505;
  display: block;
  height: 100%;
}

.unit__bezel {
  border: 1px solid var(--gold);
  padding: 4px;
  background: #000;
}

.unit__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.unit__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle screen-glare overlay: light wedge from upper-left, very low opacity */
.unit__glare {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.0) 38%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Dash glow — radial gold halo behind/below the unit */
.unit__glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(200, 161, 58, 0.18) 0%, rgba(200, 161, 58, 0) 60%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Comparison block (spec §5.3)
   ============================================================ */
.section__title {
  margin-bottom: 56px;
  max-width: 880px;
}
@media (max-width: 768px) { .section__title { margin-bottom: 32px; } }

.compare {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
}
.compare::before { /* the hairline rule between columns */
  content: "";
  grid-column: 2;
  align-self: stretch;
  background: var(--rule);
}
@media (max-width: 768px) {
  .compare { grid-template-columns: 1fr; gap: 32px; }
  .compare::before { display: none; }
}

.compare__col { padding: 8px 0; }
.compare__col--dim   { color: var(--text-dim); }
.compare__col--accent { color: var(--text); }

.compare__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px 0;
}
.compare__brand {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: var(--tracking-wide);
  margin: 0 0 24px 0;
  text-transform: uppercase;
}
.compare__col--accent .compare__brand { color: var(--gold); }

.compare__list {
  list-style: none;
  margin: 0; padding: 0;
}
.compare__list li {
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  padding-left: 20px;
}
.compare__list li:last-child { border-bottom: 1px solid var(--rule); }
.compare__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-size: 22px;
  line-height: 0.8;
  color: var(--text-dim);
}
.compare__col--accent .compare__list li::before { color: var(--gold); }

/* ============================================================
   Features grid (spec §5.4)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px)  { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.feature:hover {
  border-color: var(--gold);
  /* No lift, no shadow — per spec §6.4. Border brightening is the hover. */
}

.feature__icon {
  color: var(--gold);
  width: 32px;
  height: 32px;
}

.feature h3 {
  margin: 0;
  letter-spacing: var(--tracking-wide);
}
.feature p {
  font-family: var(--font-mono);
  font-size: 16px;
  margin: 0;
  color: var(--text);
}

/* ============================================================
   Built for (spec §5.5)
   ============================================================ */
.section--builtfor {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.section--builtfor .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.builtfor__list {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.1;
  margin: 0 auto 16px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  max-width: 1100px;
}
.builtfor__sep {
  color: var(--gold-bright);
  font-size: 0.5em;
  line-height: 1;
}

@media (max-width: 768px) {
  .builtfor__list { font-size: 28px; gap: 8px 14px; }
}

.builtfor__sub {
  text-align: center;
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   Specs (spec §5.6)
   ============================================================ */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
}
@media (max-width: 768px) { .specs { grid-template-columns: 1fr; gap: 40px; } }

.spec-block__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.spec-list {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.spec-list > div:first-child { border-top: 0; padding-top: 4px; }

.spec-list dt {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: 12px;
  align-self: center;
}
.spec-list dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 768px) {
  .spec-list > div { grid-template-columns: 100px 1fr; gap: 12px; }
}

/* ============================================================
   Waitlist closer (spec §5.7)
   ============================================================ */
.section--waitlist {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.waitlist__inner { max-width: 880px; margin: 0 auto; }
.waitlist__headline {
  margin: 0 auto 32px auto;
  letter-spacing: var(--tracking-tight);
}
.waitlist__cta { margin: 0 0 24px 0; }
.waitlist__fine {
  margin: 0;
  text-transform: uppercase;
}

.btn--large {
  padding: 20px 40px;
  font-size: 16px;
}
@media (max-width: 768px) { .btn--large { padding: 16px 28px; font-size: 14px; } }

/* ============================================================
   Footer (spec §5.8)
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { color: var(--gold); }
.footer__meta a { color: var(--gold); }
.footer__meta a:hover { color: var(--gold-bright); }

@media (max-width: 768px) {
  .footer__row { justify-content: center; text-align: center; }
}
