/* n4n.io — site styles on top of Tailwind utilities.
   Tokens follow the n4n design system (design project: "n4n Design System"). */

:root {
  --n-void: #EBEEF3;
  --n-bg: #F4F6FA;
  --n-surface-1: #FFFFFF;
  --n-surface-2: #F1F4F9;
  --n-surface-3: #E7ECF3;
  --n-line: #E4E8EF;
  --n-line-2: #D4DAE3;
  --n-text: #1B2534;
  --n-text-2: #556072;
  --n-text-3: #8A94A4;
  --n-accent: #2F6FED;
  --n-accent-hi: #4A83FF;
  --n-accent-lo: #2258C9;
  --n-accent-dim: #2f6fed14;
  --n-accent-soft: #2f6fed29;
  --n-ai: #0EA5A0;
  --n-aurora: linear-gradient(120deg, #2F6FED 0%, #0EA5A0 52%, #7A5AF8 100%);
  --shadow-md: 0 4px 14px -4px rgba(16, 24, 40, .10);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .14);
  --glow-accent: 0 0 0 1px var(--n-accent-soft), 0 8px 22px -8px #2f6fed73;
  --glow-focus: 0 0 0 3px var(--n-accent-soft);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: var(--n-accent-soft); }

:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: var(--glow-focus);
}

/* Wordmark: n4n with the middle 4 in the aurora gradient */
.wordmark { color: var(--n-text); }
.wordmark .g {
  background: var(--n-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-invert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 200ms var(--ease-out), transform 120ms var(--ease-out),
              background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn-primary { background: var(--n-accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--glow-accent); }
.btn-secondary { background: var(--n-surface-1); color: var(--n-text); border: 1px solid var(--n-line-2); }
.btn-secondary:hover { background: var(--n-surface-2); }
.btn-invert { background: #fff; color: var(--n-text); }
.btn-invert:hover { filter: brightness(0.96); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary:active, .btn-secondary:active, .btn-invert:active { transform: scale(0.97); }

/* Cards */
.card {
  background: var(--n-surface-1);
  border: 1px solid var(--n-line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.card-hover { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.card-hover:hover {
  transform: translateY(-2px);
  border-color: #2f6fed40;
  box-shadow: var(--glow-accent), var(--shadow-lg);
}

/* Eyebrow labels: uppercase mono at wide tracking */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-text-3);
}

/* Product dot */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-live { background: #12a15014; color: #12A150; }
.badge-soon { background: var(--n-surface-3); color: var(--n-text-2); }
.badge-ok { background: #12a15014; color: #12A150; }

/* Aurora gradient surfaces — kept to card-sized areas per the design system */
.aurora { background: var(--n-aurora); color: #fff; }
.aurora-text {
  background: var(--n-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */
.footer-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-text-3);
}
.footer-link, .footer-soon { display: inline-flex; align-items: center; gap: 8px; color: var(--n-text-2); }
.footer-link { transition: color 200ms var(--ease-out); }
.footer-link:hover { color: var(--n-text); }
.footer-soon { cursor: default; }

/* Request-trace specimen (hero signature) */
.trace {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.trace .dim { color: var(--n-text-3); }
.trace .key { color: var(--n-accent-lo); }
.trace .ok { color: #12A150; }
.trace .served { color: var(--n-ai); font-weight: 600; }
.trace-row { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }

/* Legal prose */
.legal { max-width: 680px; }
.legal h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--n-text);
  margin: 40px 0 12px;
}
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--n-text-2); margin: 0 0 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--n-accent); }
.legal a:hover { color: var(--n-accent-lo); }
.legal strong { color: var(--n-text); font-weight: 600; }
.legal code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--n-surface-2);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 1px 6px;
}

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