:root {
  --ink: #eef6ff;
  --ink-strong: #ffffff;
  --muted: #b8c8dd;
  --deep: #07111f;
  --navy: #101c31;
  --panel: rgba(17, 29, 50, 0.76);
  --panel-strong: rgba(22, 36, 60, 0.92);
  --line: rgba(180, 204, 236, 0.18);
  --line-strong: rgba(125, 211, 252, 0.38);
  --cyan: #61dafb;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --mint: #93c5fd;
  --gold: #f8c14a;
  --danger: #fb7185;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--deep);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.22), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(167, 139, 250, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(7, 17, 31, 0.82) 0%, rgba(17, 31, 54, 0.80) 48%, rgba(29, 44, 65, 0.78) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('assets/ppback.png') center / cover no-repeat;
}

a { color: inherit; }
code { color: #d9f99d; }

.aurora {
  position: fixed;
  width: 36vw;
  height: 36vw;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.26;
  z-index: -1;
}
.aurora-one { left: -14vw; bottom: 8vh; background: var(--cyan); }
.aurora-two { right: -12vw; top: 12vh; background: var(--violet); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 14px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: clamp(180px, 18vw, 240px);
}
.brand img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}
.nav > a,
.nav-trigger {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.nav > a:hover,
.nav-trigger:hover,
.nav-menu.open .nav-trigger {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}
.nav > a:focus-visible,
.nav-trigger:focus-visible,
.dropdown a:focus-visible,
.topbar-auth:focus-visible,
.topbar-cta:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.nav-trigger span { margin-left: 4px; color: var(--cyan); }
.nav-menu {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 250px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 18, 32, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  z-index: 10;
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-menu.open .dropdown,
.nav-menu:focus-within .dropdown,
.nav-menu:hover .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown a {
  padding: 12px 13px;
  border-radius: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.dropdown a:hover { background: rgba(97, 218, 251, 0.1); color: var(--ink); }
.dropdown a[aria-current="page"] {
  color: var(--ink);
  background: rgba(97, 218, 251, 0.12);
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.topbar-cta,
.button.primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 32px rgba(96, 165, 250, 0.24);
}
.button.secondary,
.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}
.button.ghost { background: transparent; }
.button:hover,
.topbar-cta:hover { transform: translateY(-1px); }

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar-auth:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(12px);
}
.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 29, 50, 0.96), rgba(10, 19, 34, 0.96));
  box-shadow: var(--shadow);
}
.auth-modal-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.06em;
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}
.auth-modal-close:hover,
.auth-modal-close:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.deck {
  width: min(1240px, calc(100% - 32px));
  min-height: calc(100vh - 136px);
  margin: 14px auto 0;
  display: grid;
  align-items: stretch;
}
.panel {
  display: none;
  min-height: clamp(360px, 62vh, 540px);
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 29, 50, 0.82), rgba(10, 19, 34, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: panelIn 260ms ease both;
}
.panel.active { display: grid; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.hero-copy { max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 900;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 18px rgba(97, 218, 251, 0.75);
}
h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 13ch;
  color: var(--ink-strong);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
h2 {
  color: var(--ink-strong);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
h3 { color: var(--ink-strong); font-size: 1.18rem; }
.hero-lead,
.panel-heading p,
.split-panel p,
.product-card p {
  color: var(--muted);
  line-height: 1.68;
}
.hero-lead { max-width: 620px; margin-top: 22px; font-size: clamp(1.35rem, 2.2vw, 2rem); color: var(--ink-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.product-card,
.principles article,
.security-stack span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.principles article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}
.principles span { color: var(--muted); }

.product-panel { gap: 26px; align-content: center; }
.panel-heading { max-width: 850px; }
.panel-heading p { margin-top: 14px; max-width: 760px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.compact-product-grid { max-width: 900px; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
}
.primary-card {
  background: linear-gradient(160deg, rgba(97, 218, 251, 0.16), rgba(96, 165, 250, 0.08));
  border-color: var(--line-strong);
}
.slate-card { background: linear-gradient(160deg, rgba(248, 193, 74, 0.14), rgba(167, 139, 250, 0.08)); }
.status {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status.deployable { color: #06111f; background: var(--mint); }
.status.soon { color: #332000; background: var(--gold); }
ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.62; }
.dashboard-panel { gap: 24px; align-content: start; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
}
.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.dashboard-primary {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, rgba(97, 218, 251, 0.16), rgba(96, 165, 250, 0.08));
  border-color: var(--line-strong);
}
.dashboard-sidecard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}
.dashboard-auth-card,
.dashboard-mfa-card {
  min-height: 100%;
}
.chem-launch-card {
  min-height: 100%;
  background: linear-gradient(160deg, rgba(97, 218, 251, 0.16), rgba(96, 165, 250, 0.08));
  border-color: var(--line-strong);
}
.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #06111f;
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}
.dashboard-badge.pending {
  color: #332000;
  background: var(--gold);
}
.dashboard-badge.expired {
  color: #fff1f2;
  background: var(--danger);
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-metrics article,
.dashboard-notes article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 31, 0.24);
}
.dashboard-metrics span,
.dashboard-notes span,
.dashboard-status {
  color: var(--muted);
  line-height: 1.6;
}
.dashboard-metrics strong,
.dashboard-notes strong {
  color: var(--ink-strong);
}
.dashboard-copy {
  color: var(--muted);
  line-height: 1.65;
}
.dashboard-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-inline-meta span {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 31, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
}
.dashboard-auth-form {
  display: grid;
  gap: 14px;
}
.dashboard-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}
.mfa-modal-card {
  width: min(100%, 540px);
}
.mfa-enrollment {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.mfa-enrollment[hidden] { display: none; }
.mfa-qr svg,
.mfa-qr img {
  width: min(330px, 100%);
  height: auto;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
}
.mfa-qr code {
  display: block;
  max-height: 96px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
}
.mfa-enrollment code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.dashboard-status {
  min-height: 1.6em;
}
.dashboard-status[data-kind="error"] {
  color: var(--danger);
}
.dashboard-status[data-kind="ok"] {
  color: var(--mint);
}
.dashboard-notes {
  display: grid;
  gap: 12px;
}
.dashboard-json {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 31, 0.34);
  color: var(--ink);
  font: 0.83rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.split-panel {
  grid-template-columns: 1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.split-panel p { margin-top: 18px; font-size: 1.06rem; }
.principles,
.security-stack { display: grid; gap: 14px; }
.principles strong { color: var(--ink-strong); }
.security-stack span {
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--ink-strong);
  font-weight: 850;
}

.request-panel { align-content: center; gap: 24px; }
.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
}
.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}
.demo-form .wide { grid-column: 1 / -1; }
.turnstile-shell {
  display: grid;
  gap: 10px;
}
.turnstile-widget {
  min-height: 68px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
select option { color: #0f172a; }
input:focus, select:focus, textarea:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(97, 218, 251, 0.12); }
.demo-form button { width: fit-content; }
.form-status {
  min-height: 1.6em;
  color: var(--muted);
  align-self: center;
}
.form-status[data-kind="error"] {
  color: var(--danger);
}
.form-status[data-kind="ok"] {
  color: var(--mint);
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(238, 246, 255, 0.62);
  font-size: 0.86rem;
}

.footer a {
  color: rgba(133, 219, 255, 0.96);
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-panel {
  max-width: 860px;
  margin-inline: auto;
}

.legal-copy {
  display: grid;
  gap: 20px;
}

.legal-copy section {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(17, 28, 46, 0.58);
  border: 1px solid rgba(130, 157, 198, 0.14);
}

.legal-copy h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-copy li + li,
.legal-copy p + p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .brand { min-width: 0; }
  .topbar-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .hero,
  .split-panel,
  .product-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel { min-height: auto; }
  h1 { max-width: 13ch; }
  .dashboard-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-cta { display: none; }
  .brand { min-width: 0; }
  .brand img { height: 42px; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .deck, .topbar, .footer { width: min(100% - 20px, 1240px); }
  .panel { padding: 22px; border-radius: 24px; }
  .demo-form { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
