:root {
  --navy: #00F2FE;          /* transformative teal — primary/links/focus */
  --navy-dark: #0AB8C4;     /* hover state for teal */
  --gold: #39FF88;          /* neon green — primary CTA / secure indicators */
  --gold-light: #6bffaa;    /* lighter neon green for hovers / highlights */
  --violet: #7C5CFF;        /* secondary accent */
  --bg: #0B0F19;            /* deep obsidian page background */
  --bg-2: #0F1524;          /* secondary panel background */
  --card: rgba(255,255,255,0.035);
  --card-border: rgba(255,255,255,0.10);
  --text: #E7EAF2;
  --muted: #8992A6;
  --border: rgba(255,255,255,0.10);
  --danger: #FF5C72;
  --success: #39FF88;
  --warn: #FFB454;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* ambient glow, fixed behind everything */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body::before { width: 32rem; height: 32rem; top: -10rem; left: -8rem; background: var(--navy); }
body::after { width: 30rem; height: 30rem; top: 20rem; right: -10rem; background: var(--violet); }

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
a { color: var(--navy); }

.topbar {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Sora', sans-serif;
}

.topbar .brand .beam { color: var(--gold); }

.topbar nav a {
  color: rgba(231,234,242,0.65);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s;
}
.topbar nav a:hover { color: var(--navy); }

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.container.narrow { max-width: 620px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px -14px rgba(0,0,0,0.5);
}

h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--navy); font-weight: 800; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cards { grid-template-columns: 1fr; }
}

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; color: rgba(231,234,242,0.85); }
label.inline { display: inline; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
/* Date/time inputs render their text and calendar icon natively, using the OS's
   light-mode assumption by default - on this dark background that shows up as
   black-on-black, effectively invisible even though the value is really there.
   color-scheme tells the browser to use its dark-mode rendering for both. */
input[type=date], input[type=time], input[type=datetime-local] {
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,242,254,0.18);
}
textarea { min-height: 80px; resize: vertical; }
input[readonly] { background: rgba(255,255,255,0.015); color: var(--muted); }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), background 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #031014; }
.btn-primary:hover { box-shadow: 0 0 30px -4px rgba(0,242,254,0.55); }
.btn-gold { background: var(--gold); color: #031014; box-shadow: 0 3px 16px -2px rgba(57,255,136,0.4); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 0 30px -2px rgba(57,255,136,0.6); }
.btn-outline { background: rgba(255,255,255,0.02); color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); box-shadow: 0 0 20px -6px rgba(0,242,254,0.4); }
.btn-danger { background: var(--danger); color: #1a0306; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem; border: 1px solid transparent; backdrop-filter: blur(10px); }
.flash.success { background: rgba(57,255,136,0.08); color: var(--success); border-color: rgba(57,255,136,0.25); }
.flash.error { background: rgba(255,92,114,0.08); color: var(--danger); border-color: rgba(255,92,114,0.25); }
.flash.info { background: rgba(0,242,254,0.08); color: var(--navy); border-color: rgba(0,242,254,0.25); }
.flash.warn { background: rgba(255,180,84,0.08); color: var(--warn); border-color: rgba(255,180,84,0.25); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.active { background: rgba(57,255,136,0.12); color: var(--success); }
.badge.pending { background: rgba(255,180,84,0.12); color: var(--warn); }
.badge.inactive { background: rgba(255,92,114,0.12); color: var(--danger); }
.badge.submitted { background: rgba(0,242,254,0.12); color: var(--navy); }
.badge.approved { background: rgba(57,255,136,0.12); color: var(--success); }
.badge.released { background: rgba(0,242,254,0.12); color: var(--navy); }
.badge.rejected { background: rgba(255,92,114,0.12); color: var(--danger); }
.badge.closed, .badge.archived { background: rgba(255,255,255,0.06); color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }

.category-card {
  display: block;
  padding: 22px 18px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.category-card:hover { box-shadow: 0 12px 30px -12px rgba(0,242,254,0.3); transform: translateY(-3px); border-color: rgba(0,242,254,0.35); }
.category-card .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.category-card .count { color: var(--muted); font-size: 0.82rem; }

/* Trusted Circle member tiles - compact grid, name + status only. Full
   details open in a modal (member-modal below) instead of expanding inline,
   so the grid stays tidy regardless of which tile is open. */
.member-card {
  display: block;
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.member-card:hover { box-shadow: 0 12px 30px -12px rgba(0,242,254,0.3); transform: translateY(-3px); border-color: rgba(0,242,254,0.35); }
.member-card strong { display: block; margin-bottom: 8px; word-break: break-word; }
.member-card .badge { margin: 2px 3px 0; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,8,20,0.72);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.otp-box {
  background: rgba(0,242,254,0.06);
  border: 1px dashed rgba(0,242,254,0.4);
  padding: 14px 16px;
  border-radius: 12px;
  margin: 14px 0;
  font-size: 0.88rem;
}
.otp-box .code { font-size: 1.4rem; letter-spacing: 0.2em; font-weight: 800; color: var(--navy); }

footer.site {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
}

.hero {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--text);
  padding: 70px 20px;
  text-align: center;
}
.hero h1 { font-size: 2.1rem; margin-bottom: 12px; color: #fff; }
.hero p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); }
.hero .actions { justify-content: center; }

.hero-illustrated { text-align: left; padding: 56px 20px; }
.hero-illustrated .hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-illustrated .hero-copy { max-width: 480px; }
.hero-illustrated .hero-copy h1 { font-size: 2.1rem; font-family: 'Sora', sans-serif; font-weight: 800; }
.hero-illustrated .hero-copy p { margin: 0 0 22px; }
.hero-illustrated .actions { justify-content: flex-start; }
.hero-illustration { flex-shrink: 0; }
.hero-illustration svg { display: block; }
@media (max-width: 760px) {
  .hero-illustrated .hero-inner { justify-content: center; text-align: center; }
  .hero-illustrated .hero-copy { text-align: center; }
  .hero-illustrated .actions { justify-content: center; }
  .hero-illustration { order: -1; }
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.icon-chip-teal { background: rgba(0,242,254,0.12); color: var(--navy); }
.icon-chip-coral { background: rgba(124,92,255,0.14); color: var(--violet); }
.feature-card { transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -14px rgba(0,242,254,0.28); }

.category-card .icon-chip { margin-bottom: 10px; }

.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
.step.done { background: rgba(57,255,136,0.12); color: var(--success); }
.step.active { background: var(--navy); color: #031014; }

.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.doc-row:last-child { border-bottom: none; }
.doc-row .name { font-size: 0.88rem; }
.doc-row .actions { margin: 0; gap: 6px; }

.help-text { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.mobile-field { display: flex; align-items: stretch; }
.mobile-field .mobile-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.mobile-field input { border-radius: 0 8px 8px 0; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); }

img, svg { max-width: 100%; }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { min-width: 480px; }

@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .topbar nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: 0; }
  .topbar nav a { margin-left: 0; }
  .container { padding: 20px 14px 44px; }
  .card { padding: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { text-align: center; width: 100%; }
  .hero-illustrated .hero-copy h1 { font-size: 1.6rem; }
  .hero { padding: 44px 16px; }
  .doc-row { flex-wrap: wrap; gap: 6px; }
}
