:root {
  --bg: #0b0c10;
  --bg-elevated: #141519;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-faint: #6e6e73;
  --accent: #2997ff;
  --accent-2: #7c5cff;
  --accent-gradient: linear-gradient(135deg, #2997ff 0%, #7c5cff 55%, #ff6fb0 100%);
  --success: #34c759;
  --danger: #ff453a;
  --warn: #ffb340;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --bg-elevated: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1d1d1f;
    --text-dim: #48484d;
    --text-faint: #86868b;
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 16px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 980px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 590;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(41, 151, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(41, 151, 255, 0.5);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background: var(--accent-gradient);
  filter: blur(160px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 900px;
  font-weight: 650;
}

.hero h1 .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.5;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Section shared ---------- */

section {
  padding: 120px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 640;
}

.section-head p {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Comparison chart ---------- */

.compare {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 56px;
  box-shadow: var(--shadow-md);
}

.compare-grid {
  display: grid;
  gap: 36px;
}

.compare-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 28px;
}

.compare-label {
  font-size: 15px;
  font-weight: 590;
}

.compare-label span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 2px;
}

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-track {
  position: relative;
  height: 34px;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.us {
  background: var(--accent-gradient);
}

.bar-fill.them {
  background: color-mix(in srgb, var(--text) 22%, transparent);
  color: var(--text);
}

.bar-track .bar-name {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-faint);
  z-index: 0;
}

.compare-footnote {
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-cell {
  background: var(--bg-elevated);
  padding: 44px 28px;
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 680;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 610;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- Trust / security ---------- */

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.trust-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trust-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-dim);
}

.trust-list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  font-weight: 590;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 400px;
  background: var(--accent-gradient);
  filter: blur(140px);
  opacity: 0.28;
  z-index: 0;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 640;
}

.cta p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 32px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer a {
  text-decoration: none;
  color: var(--text-faint);
}

footer a:hover {
  color: var(--text-dim);
}

/* ---------- Auth pages ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.auth-card > p {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 590;
  margin-bottom: 7px;
  color: var(--text-dim);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}

.auth-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 9px 0;
  border-radius: 980px;
  font-size: 13.5px;
  font-weight: 590;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-toggle button.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-msg {
  margin-top: 18px;
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.auth-msg.show {
  display: block;
}

.auth-msg.ok {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.auth-msg.err {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  position: fixed;
  top: 28px;
  left: 28px;
}

/* ---------- Dashboard ---------- */

.dash-shell {
  min-height: 100vh;
  padding: 120px 24px 80px;
}

.dash-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.dash-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.dash-header p {
  color: var(--text-dim);
  font-size: 16px;
}

.dash-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 590;
  margin-bottom: 20px;
}

.status-pill.approved {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.status-pill.pending {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}

.status-pill.revoked {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.dash-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

/* ---------- Admin table ---------- */

.admin-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.pill-sm {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 600;
}

.pill-sm.approved {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.pill-sm.pending {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn);
}

.pill-sm.revoked {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
}

/* ---------- Story page ---------- */

.story-hero {
  position: relative;
  padding: 180px 0 90px;
  overflow: hidden;
}

.story-hero .wrap {
  max-width: 760px;
}

.story-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 650;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.story-meta span {
  font-size: 12.5px;
  font-weight: 590;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 980px;
}

.story-body {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.story-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 26px;
}

.story-body p strong {
  color: var(--text);
  font-weight: 590;
}

.pull-quote {
  max-width: 720px;
  margin: 20px auto 76px;
  padding: 0 24px;
  text-align: center;
}

.pull-quote p {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 590;
  font-style: italic;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.story-divider {
  max-width: 660px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

.story-note {
  max-width: 660px;
  margin: 48px auto 0;
  padding: 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.story-note p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.story-note p:last-child {
  margin-bottom: 0;
}

.linkedin-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 660px;
  margin: 56px auto 0;
  padding: 30px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.linkedin-cta-text h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 610;
  letter-spacing: -0.01em;
}

.linkedin-cta-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

.btn-linkedin {
  background: #0a66c2;
  color: #fff;
}

.btn-linkedin:hover {
  box-shadow: 0 10px 32px rgba(10, 102, 194, 0.45);
}

@media (max-width: 860px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .trust {
    grid-template-columns: 1fr;
  }
  section {
    padding: 80px 0;
  }
  .compare {
    padding: 32px 20px;
  }
  .linkedin-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .linkedin-cta .btn {
    width: 100%;
  }
}
