/* Astra preview — tokens from design-system/astra/MASTER.md */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-primary: #8B5CF6;
  --color-primary-hover: #A78BFA;
  --color-on-primary: #FFFFFF;
  --color-secondary: #22D3EE;
  --color-on-secondary: #07060F;
  --color-accent-magenta: #E879F9;
  --color-background: #07060F;
  --color-panel: #0E0C1A;
  --color-card: #16132A;
  --color-card-foreground: #F4F2FF;
  --color-foreground: #F4F2FF;
  --color-muted: #16132A;
  --color-muted-foreground: #A8A3C7;
  --color-text-muted: #6E6890;
  --color-border: rgba(167, 139, 250, 0.28);
  --color-glass-fill: rgba(255, 255, 255, 0.06);
  --color-destructive: #F87171;
  --color-risk-pass: #34D399;
  --color-risk-conditions: #FBBF24;
  --color-hitl-pulse: #22D3EE;
  --color-ring: #22D3EE;
  --gradient-nebula: linear-gradient(135deg, #8B5CF6, #22D3EE);
  --gradient-debate: linear-gradient(135deg, #E879F9, #8B5CF6, #22D3EE);

  --nova: #A78BFA;
  --pulse: #22D3EE;
  --atlas: #60A5FA;
  --vega: #C084FC;
  --orbit: #2DD4BF;
  --quill: #FBBF24;
  --aegis: #34D399;
  --cassandra: #E879F9;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.15);
  --glow-hitl: 0 0 40px rgba(34, 211, 238, 0.25);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--color-secondary); text-decoration: none; cursor: pointer; }
a:hover { color: var(--color-primary-hover); }
button, .btn { cursor: pointer; font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

/* Nebula wash */
.nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(232, 121, 249, 0.08), transparent 50%);
  z-index: 0;
}
.nebula::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.25), transparent);
  opacity: 0.6;
  animation: star-drift 40s linear infinite;
}
@keyframes star-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header — glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 6, 15, 0.72);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-foreground);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-nebula);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  color: var(--color-muted-foreground);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-foreground); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, color 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(34, 211, 238, 0.55);
}
.btn-secondary:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
  color: var(--color-secondary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-muted-foreground);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--color-foreground); }
.btn-google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  width: 100%;
  font-weight: 600;
}
.btn-google:hover { background: #f7f8f8; box-shadow: var(--shadow-sm); color: #1f1f1f; }
.btn-google svg { flex-shrink: 0; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 12px var(--color-secondary);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-lg);
  background: linear-gradient(180deg, #F4F2FF 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--color-muted-foreground);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 34em;
  margin: 0 0 var(--space-xl);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-md);
}
.hero-micro {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Swarm Stage */
.swarm-stage {
  background: var(--color-glass-fill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: var(--glow-violet), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.swarm-stage::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(139,92,246,0.08), transparent, rgba(34,211,238,0.06), transparent);
  animation: stage-spin 18s linear infinite;
  pointer-events: none;
}
@keyframes stage-spin { to { transform: rotate(360deg); } }
.swarm-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  position: relative;
}
.avatar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  margin-bottom: var(--space-lg);
}
.avatar-slot {
  text-align: center;
  position: relative;
}
.avatar-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-nebula);
  position: relative;
}
.avatar-ring.cassandra { background: linear-gradient(135deg, #E879F9, #8B5CF6); }
.avatar-ring.aegis { background: linear-gradient(135deg, #34D399, #22D3EE); }
.avatar-ring.quill { background: linear-gradient(135deg, #FBBF24, #8B5CF6); }
.avatar-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-foreground);
  overflow: hidden;
  border: 2px solid var(--color-background);
  position: relative;
}
.avatar-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}
.avatar-face.ph-nova { background: linear-gradient(145deg, #2a1f4a, #16132A); color: var(--nova); }
.avatar-face.ph-cassandra { background: linear-gradient(145deg, #3a1a40, #16132A); color: var(--cassandra); }
.avatar-face.ph-aegis { background: linear-gradient(145deg, #1a3a30, #16132A); color: var(--aegis); }
.avatar-face.ph-quill { background: linear-gradient(145deg, #3a3018, #16132A); color: var(--quill); }
.avatar-face.ph-pulse { background: linear-gradient(145deg, #123038, #16132A); color: var(--pulse); }
.avatar-face.ph-atlas { background: linear-gradient(145deg, #1a2840, #16132A); color: var(--atlas); }
.avatar-face.ph-vega { background: linear-gradient(145deg, #2a1840, #16132A); color: var(--vega); }
.avatar-face.ph-orbit { background: linear-gradient(145deg, #123530, #16132A); color: var(--orbit); }
.avatar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.avatar-role {
  font-size: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Debate chips */
.debate-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
  position: relative;
  min-height: 96px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(22, 19, 42, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
  width: fit-content;
  max-width: 100%;
  opacity: 0;
  animation: chip-in 0.5s ease forwards;
  overflow: hidden;
  white-space: nowrap;
}
.chip span { color: var(--color-foreground); }
.chip.nova { border-color: rgba(167, 139, 250, 0.45); animation-delay: 0.4s; }
.chip.cassandra {
  border-color: rgba(232, 121, 249, 0.55);
  color: var(--cassandra);
  animation-delay: 2.2s;
}
.chip.quill { border-color: rgba(251, 191, 36, 0.4); animation-delay: 4s; }
.chip.typing::after {
  content: "▋";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--color-secondary);
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px); max-width: 0; }
  to { opacity: 1; transform: translateY(0); max-width: 100%; }
}
@keyframes blink { 50% { opacity: 0; } }

/* Approval Card */
.approval-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: var(--glow-hitl);
  position: relative;
  animation: hitl-pulse 2.4s ease-in-out infinite;
}
@keyframes hitl-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.15), 0 0 0 0 rgba(34, 211, 238, 0.2); }
  50% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.35), 0 0 0 6px rgba(34, 211, 238, 0.08); }
}
.approval-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.approval-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.approval-status {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.approval-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: pulse-dot 2.4s ease infinite;
}
.approval-body {
  font-size: 14px;
  color: var(--color-muted-foreground);
  margin-bottom: 16px;
}
.approval-body strong { color: var(--color-foreground); font-weight: 600; }
.approval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.approval-actions .btn { flex: 1; min-width: 90px; padding: 10px 12px; font-size: 13px; }
.btn-approve { background: var(--color-risk-pass); color: #052e1c; }
.btn-approve:hover { filter: brightness(1.08); color: #052e1c; }
.btn-edit {
  background: transparent;
  border: 1px solid var(--color-risk-conditions);
  color: var(--color-risk-conditions);
}
.btn-reject {
  background: transparent;
  border: 1px solid var(--color-destructive);
  color: var(--color-destructive);
}

/* Pillars */
.section { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--color-muted-foreground);
  max-width: 36em;
  margin: 0 auto var(--space-2xl);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.pillar {
  background: var(--color-glass-fill);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--glow-violet);
  transition: transform 200ms ease, border-color 200ms ease;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.5);
}
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}
.pillar:nth-child(1) .pillar-icon { background: rgba(139,92,246,0.2); color: var(--nova); }
.pillar:nth-child(2) .pillar-icon { background: rgba(232,121,249,0.2); color: var(--cassandra); }
.pillar:nth-child(3) .pillar-icon { background: rgba(34,211,238,0.2); color: var(--pulse); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted-foreground);
}
.pillar a {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: var(--space-lg) 0;
}
.trust-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
}

/* Final band */
.final-band {
  background: var(--color-panel);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(139,92,246,0.15), transparent 70%);
  animation: soft-glow 3s ease-in-out infinite;
}
@keyframes soft-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.final-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  position: relative;
}
.final-band .hero-ctas { justify-content: center; position: relative; }
.compliance-micro {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  position: relative;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-background);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.footer-grid a {
  display: block;
  color: var(--color-muted-foreground);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--color-foreground); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(14, 12, 26, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  transform: translateY(110%);
  animation: sticky-up 0.4s ease 1.2s forwards;
}
@keyframes sticky-up {
  to { transform: translateY(0); }
}
.sticky-avatars {
  display: flex;
}
.sticky-avatars .mini {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-panel);
  margin-left: -8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  color: var(--nova);
}
.sticky-avatars .mini:first-child { margin-left: 0; }
.sticky-avatars .mini:nth-child(2) { color: var(--cassandra); }
.sticky-avatars .mini:nth-child(3) { color: var(--aegis); }
.sticky-copy {
  font-size: 12px;
  color: var(--color-muted-foreground);
  flex: 1;
  padding: 0 8px;
}
.sticky-cta .btn { padding: 10px 16px; font-size: 13px; }

/* ========== Register page ========== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-companion {
  position: relative;
  background: var(--color-panel);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-companion .nebula { opacity: 0.9; }
.companion-inner { position: relative; z-index: 1; max-width: 420px; }
.companion-tagline {
  color: var(--color-muted-foreground);
  margin: 12px 0 var(--space-2xl);
  font-size: 15px;
}
.persona-rotate {
  position: relative;
  min-height: 280px;
}
.persona-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.persona-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.persona-slide .big-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-nebula);
  margin-bottom: var(--space-lg);
}
.persona-slide .big-avatar .avatar-face {
  font-size: 42px;
}
.persona-slide h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
}
.persona-slide .role-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.persona-slide p {
  color: var(--color-muted-foreground);
  font-size: 15px;
  margin: 0;
}
.trust-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2xl);
}
.companion-compliance {
  margin-top: var(--space-xl);
  font-size: 12px;
  color: var(--color-text-muted);
}

.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--color-background);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.auth-card .sub {
  color: var(--color-muted-foreground);
  font-size: 14px;
  margin: 0 0 var(--space-xl);
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted-foreground);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--color-panel);
  color: var(--color-foreground);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
}
.input:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.input::placeholder { color: var(--color-text-muted); }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 13px;
  color: var(--color-muted-foreground);
}
.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-trust {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}
.auth-footer-link {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--color-muted-foreground);
}
.auth-copy {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========== Agents page ========== */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}
.page-hero p {
  color: var(--color-muted-foreground);
  max-width: 36em;
  margin: 0 auto var(--space-xl);
  font-size: 17px;
}

.hitl-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-panel);
  border-block: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}
.hitl-step {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
}
.hitl-step strong { color: var(--color-foreground); }
.hitl-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
}

.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.persona-card {
  background: var(--color-glass-fill);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.persona-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-violet);
}
.persona-card[data-accent="nova"]:hover { border-color: var(--nova); }
.persona-card[data-accent="pulse"]:hover { border-color: var(--pulse); }
.persona-card[data-accent="atlas"]:hover { border-color: var(--atlas); }
.persona-card[data-accent="vega"]:hover { border-color: var(--vega); }
.persona-card[data-accent="orbit"]:hover { border-color: var(--orbit); }
.persona-card[data-accent="quill"]:hover { border-color: var(--quill); }
.persona-card[data-accent="aegis"]:hover { border-color: var(--aegis); }
.persona-card[data-accent="cassandra"]:hover { border-color: var(--cassandra); box-shadow: 0 0 24px rgba(232,121,249,0.25); }
.persona-card .card-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 2px;
  margin-bottom: 14px;
}
.persona-card .card-avatar .avatar-face { font-size: 20px; }
.persona-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 4px;
}
.persona-card .job {
  font-size: 13px;
  color: var(--color-muted-foreground);
  margin: 0 0 10px;
  flex: 1;
}
.persona-card .never {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  border-left: 2px solid var(--color-border);
}
.persona-card .output-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.persona-card .btn { width: 100%; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-companion { min-height: 360px; padding-bottom: 32px; }
  .nav-links { display: none; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .avatar-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .avatar-ring { width: 56px; height: 56px; }
  .roster { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .nebula::after { animation: none; }
  .swarm-stage::before { animation: none; }
  .approval-card { animation: none; box-shadow: var(--glow-hitl); }
  .chip { opacity: 1; max-width: 100%; animation: none; }
  .sticky-cta { animation: none; transform: none; }
  .persona-slide { transition: none; }
  .final-band::before { animation: none; }
}
