/*
 * pvx-id brand stylesheet. Mirrors pvx-website/src/styles/global.css with
 * two adaptations:
 *   - @theme {} block flattened to :root {} so the tokens work without
 *     Tailwind v4 (pvx-id renders plain Razor + scoped <style> blocks).
 *   - @import "tailwindcss" and the typography plugin are dropped (not
 *     used here — Razor pages bring their own minimal layout CSS).
 *
 * Everything else is a verbatim copy so the portal and the marketing
 * site share one source of truth for tokens, type, and buttons.
 */

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Primary */
  --color-navy: #0A1628;
  --color-navy-mid: #132038;
  --color-amber: #D87B42;
  --color-amber-hover: #C06A35;
  --color-amber-light: #e8994a;

  /* Neutrals */
  --color-slate: #364152;
  --color-slate-light: #6b7a8d;
  --color-cream: #FBFBFB;
  --color-surface: #F6F6F6;
  --color-border: #E5E7EB;

  /* Semantic */
  --color-info: #1A5276;
}

html {
  font-family: var(--font-sans);
  color: var(--color-navy);
  background-color: var(--color-cream);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography scale ───────────────────────────────── */

.type-display {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.type-headline {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.type-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.375;
}

.type-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.type-body {
  font-size: 1.125rem;
  line-height: 1.625;
}

.type-body-sm {
  font-size: 0.875rem;
  line-height: 1.625;
}

@media (min-width: 1024px) {
  .type-display  { font-size: 3rem; }
  .type-headline { font-size: 1.875rem; }
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  padding: 0.875rem 1.75rem;
  transition: background-color 150ms, border-color 150ms, color 150ms, box-shadow 200ms;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
}

.btn-primary {
  background-color: var(--color-amber);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-amber-hover);
  box-shadow: 0 0 20px rgba(216, 123, 66, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ── Cards ──────────────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-slate-light);
}
.card p:last-child { margin-bottom: 0; }

/* ── Scroll reveal ─────────────────────────────────── */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.revealed { animation: fade-in-up 0.6s ease-out forwards; }

.reveal-stagger > .reveal.revealed:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger > .reveal.revealed:nth-child(2) { animation-delay: 100ms; }
.reveal-stagger > .reveal.revealed:nth-child(3) { animation-delay: 200ms; }
.reveal-stagger > .reveal.revealed:nth-child(4) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.revealed { animation: none; }
}
