/* ============ DESIGN SYSTEM — SOCIEDADES MODERNAS ============ */

:root {
  /* Backgrounds */
  --bg: #1F2129;
  --bg-alt: #29244A;
  --bg-deep: #14151B;

  /* Primary/Neutrals */
  --white: #FFFFFF;
  --ink-100: #EEEEF8;
  --ink-60: #7878A8;
  --ink-40: #44445A;
  --ink-20: #2A2B36;

  /* Accents */
  --green: #00FF9F;
  --blue:  #38BDF8;
  --purple: #C084FC;
  --orange: #FBBF24;
  --red:   #FF4560;
  --yellow: #FFE669;

  /* Per-tema */
  --tema1: var(--green);
  --tema2: var(--purple);
  --tema3: var(--blue);
  --tema4: var(--orange);

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Space Mono', ui-monospace, monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink-100);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; overflow-y: auto; }

/* Lock to viewport on tall enough screens — degrade gracefully on short ones */
@media (min-height: 720px) {
  body.lock { overflow: hidden; height: 100vh; }
}

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

/* ============ TOP CHROME ============ */
.chrome {
  position: fixed; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  text-transform: uppercase;
  z-index: 50;
  pointer-events: none;
}
.chrome a, .chrome button { pointer-events: auto; }
.chrome .left, .chrome .right { display: flex; gap: 18px; align-items: center; }
.chrome .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.chrome .nav-link {
  border: 1px solid var(--ink-40);
  padding: 6px 12px;
  border-radius: 2px;
  transition: all .2s ease;
}
.chrome .nav-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.chrome .crumb {
  color: var(--ink-100);
}
.chrome .crumb b {
  color: var(--white);
  font-weight: 400;
}

/* ============ BOTTOM CHROME ============ */
.foot {
  position: fixed; inset: auto 0 0 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  text-transform: uppercase;
  z-index: 50;
  pointer-events: none;
}

/* ============ COMMON ============ */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 14px 22px;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--green);
  color: var(--bg);
}

.label-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* Scanline veil */
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.012) 3px,
    transparent 3px
  );
  z-index: 100;
  mix-blend-mode: overlay;
}

/* Subtle grain */
.grain::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
  z-index: 99;
}
