:root {
  color-scheme: light;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #14b8a6;
  --surface-base: #f7f7f8;
  --surface-raised: rgba(255, 255, 255, 0.82);
  --surface-solid: #fcfcfd;
  --border-soft: rgba(203, 213, 225, 0.72);
  --shadow-soft: 0 12px 36px rgba(15, 23, 42, 0.055);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-base: #07111f;
  --surface-raised: rgba(15, 23, 42, 0.82);
  --surface-solid: #0f172a;
  --border-soft: rgba(71, 85, 105, 0.72);
  --shadow-soft: 0 18px 44px rgba(2, 6, 23, 0.34);
}

* {
  box-sizing: border-box;
}

main {
  overflow-wrap: anywhere;
}

.break-words {
  overflow-wrap: anywhere !important;
}

::selection {
  background: rgba(13, 148, 136, 0.18);
  color: #111827;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Light Theme Surface & Input Hierarchy --- */
.member-shell input:not([type="checkbox"]):not([type="radio"]),
.member-shell select,
.member-shell textarea,
.admin-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-shell select,
.admin-shell textarea,
.auth-shell input:not([type="checkbox"]):not([type="radio"]),
.auth-shell select,
.auth-shell textarea {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: #0f172a;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.member-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.member-shell select:focus,
.member-shell textarea:focus,
.admin-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-shell select:focus,
.admin-shell textarea:focus,
.auth-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-shell select:focus,
.auth-shell textarea:focus {
  background-color: #ffffff;
  border-color: var(--accent);
}

.focus\:ring-indigo-100:focus {
  --tw-ring-color: rgba(13, 148, 136, 0.16) !important;
}

/* Light mode card borders and surface separation */
.member-shell .border-slate-200,
.member-shell .border-slate-200\/80,
.admin-shell .border-slate-200,
.admin-shell .border-slate-200\/80 {
  border-color: rgba(203, 213, 225, 0.78);
}

.member-shell .bg-slate-50,
.member-shell .bg-slate-50\/80,
.member-shell .bg-slate-50\/70,
.admin-shell .bg-slate-50,
.admin-shell .bg-slate-50\/80 {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

/* Light mode subtle status badge borders */
.bg-amber-100 { border: 1px solid rgba(245, 158, 11, 0.22); }
.bg-emerald-100 { border: 1px solid rgba(16, 185, 129, 0.22); }
.bg-teal-100 { border: 1px solid rgba(20, 184, 166, 0.22); }
.bg-sky-100 { border: 1px solid rgba(14, 165, 233, 0.22); }
.bg-slate-200 { border: 1px solid rgba(148, 163, 184, 0.25); }
.bg-rose-100 { border: 1px solid rgba(244, 63, 94, 0.22); }
.bg-indigo-100 { border: 1px solid rgba(99, 102, 241, 0.22); }

/* Work state card borders in light mode */
.border-teal-200 { border-color: rgba(20, 184, 166, 0.32); }
.border-sky-200 { border-color: rgba(14, 165, 233, 0.32); }
.border-amber-200 { border-color: rgba(245, 158, 11, 0.32); }

/* Chat thread surface in light mode */
#chat-thread {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

#site-header {
  background: rgba(247, 247, 248, 0.78);
  backdrop-filter: blur(10px);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

#site-header.is-scrolled {
  border-color: rgba(203, 213, 225, 0.68);
  background: rgba(250, 250, 250, 0.88);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
  backdrop-filter: blur(18px) saturate(120%);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 22px rgba(15, 23, 42, 0.08);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  left: 3px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 4px 10px rgba(15, 23, 42, 0.16);
  color: #f59e0b;
  transform: translateX(0);
  transition: transform 200ms ease, background 180ms ease, color 180ms ease;
}

.theme-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.7);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 7px;
  background: #111827;
  transform: rotate(-2deg);
  transition: transform 180ms ease;
}

a:hover .brand-mark {
  transform: rotate(0deg) scale(1.03);
}

.brand-mark span {
  position: absolute;
  width: 4px;
  height: 13px;
  border-radius: 99px;
  background: white;
  transform: rotate(35deg);
}

.brand-mark span:first-child {
  left: 7px;
  top: 4px;
}

.brand-mark span:last-child {
  right: 6px;
  bottom: 3px;
  background: var(--accent-soft);
}

.brand-mark-small {
  width: 22px;
  height: 22px;
}

.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: #111827;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  transition: transform 160ms ease;
}

.button:hover svg {
  transform: translateX(2px);
}

.button-small {
  min-height: 38px;
  border-radius: 9px;
  padding: 0 15px;
  font-size: 12px;
}

.button-dark {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.button-dark:hover {
  background: #1e293b;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.16);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 22px rgba(13, 148, 136, 0.2);
}

.button-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 11px 26px rgba(13, 148, 136, 0.28);
}

.button-secondary {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.64);
  color: #334155;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: #c8d0da;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.button-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.menu-button {
  display: flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 9px;
  transition: background-color 160ms ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.72);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #1e293b;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: max-height 240ms ease, opacity 180ms ease, border-color 180ms ease;
}

.mobile-menu.is-open {
  max-height: 380px;
  border-color: #e2e8f0;
  opacity: 1;
}

.mobile-link {
  border-bottom: 1px solid #f1f5f9;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.member-sidebar.is-open {
  transform: translateX(0);
}

.member-sidebar-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.member-sidebar-link i {
  display: grid;
  width: 22px;
  place-items: center;
  font-size: 16px;
}

.member-sidebar-link:hover {
  border-color: rgba(203, 213, 225, 0.74);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.member-sidebar-link.is-active {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.94), rgba(204, 251, 241, 0.58));
  color: #0f766e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(13, 148, 136, 0.1);
}

.hero-section {
  background: linear-gradient(180deg, #f8f8f9 0%, #f4f4f7 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.065) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 700px;
  height: 470px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.07);
  filter: blur(100px);
  transform: translateX(-50%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 18px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(10px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.product-frame {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.74);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 70px rgba(15, 23, 42, 0.1),
    0 3px 12px rgba(15, 23, 42, 0.045);
  backdrop-filter: blur(12px);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.product-frame:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 36px 80px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.product-toolbar {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8edf3;
  background: rgba(248, 250, 252, 0.88);
  padding: 0 14px;
}

.product-toolbar > div:first-child span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.product-address {
  min-width: 150px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 12px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
}

.product-canvas {
  display: flex;
  min-height: 370px;
  background: #f5f6f8;
  text-align: left;
}

.product-sidebar {
  display: none;
  width: 175px;
  flex: none;
  border-right: 1px solid #e8edf3;
  background: rgba(252, 252, 253, 0.9);
  padding: 24px 20px;
}

.skeleton-logo {
  width: 72px;
  height: 9px;
  border-radius: 99px;
  background: #1e293b;
}

.skeleton-nav {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: #e2e8f0;
}

.skeleton-nav.active {
  width: 82%;
  background: #99f6e4;
}

.skeleton-nav.short {
  width: 64%;
}

.metric-card {
  min-height: 98px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 14px rgba(15, 23, 42, 0.035);
}

.metric-card span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #1e293b;
}

.metric-card small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  color: #22c55e;
}

.skeleton-line {
  height: 7px;
  border-radius: 99px;
  background: #e2e8f0;
}

.chart-bars {
  display: flex;
  height: 112px;
  align-items: flex-end;
  gap: 5px;
}

.chart-bars span {
  flex: 1;
  min-width: 5px;
  border-radius: 3px 3px 1px 1px;
  background: #e2e8f0;
}

.chart-bars span.current {
  background: var(--accent);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-item > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5eead4;
}

.trust-section {
  background: rgba(250, 250, 250, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-section {
  background: #f8f8f9;
}

.process-section {
  background: #f3f4f6;
}

.cta-section {
  background: #f7f7f8;
}

.section-space {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.045em;
  color: #0f172a;
}

.section-copy {
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  color: #64748b;
}

.feature-card {
  position: relative;
  min-height: 325px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 252, 0.72));
  padding: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 24px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(8px);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.feature-card:hover {
  border-color: rgba(45, 212, 191, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 42px rgba(15, 23, 42, 0.075);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 14px rgba(15, 23, 42, 0.05);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-card h3 {
  margin-top: 22px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.feature-card > p {
  margin-top: 10px;
  max-width: 390px;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.workflow-preview {
  position: absolute;
  right: 24px;
  bottom: -18px;
  left: 24px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 -7px 26px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(8px);
}

.workflow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 14px;
}

.workflow-row i {
  width: 38%;
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
}

.workflow-row b {
  margin-left: auto;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  color: #94a3b8;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.purple { background: var(--accent-soft); }
.status-dot.green { background: #34d399; }
.status-dot.amber { background: #fbbf24; }

.progress-preview {
  position: absolute;
  right: 26px;
  bottom: 30px;
  left: 26px;
}

.progress-preview > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.progress-preview strong {
  color: var(--accent);
}

.progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9e9f1;
}

.progress-track span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.avatar-preview {
  position: absolute;
  bottom: 29px;
  left: 26px;
  display: flex;
}

.avatar-preview span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: -8px;
  place-items: center;
  border: 3px solid #fcfcfd;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 8px;
  font-weight: 700;
  color: #475569;
}

.avatar-preview span:nth-child(2) { background: #ddd6fe; }
.avatar-preview span:nth-child(3) { background: #bfdbfe; }
.avatar-preview span.more { background: #111827; color: white; }

.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 30px 0;
}

.process-step:first-child {
  padding-top: 0;
}

.process-step > span {
  padding-top: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #5eead4;
}

.process-step h3 {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1e293b;
}

.process-step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.cta-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(145deg, #172033 0%, #101725 100%);
  padding: 48px 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 25px 55px rgba(15, 23, 42, 0.13);
}

.cta-pattern {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(20, 184, 166, 0.05),
    0 0 0 140px rgba(20, 184, 166, 0.025);
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.footer-link {
  width: fit-content;
  font-size: 14px;
  color: #64748b;
  transition: color 160ms ease;
}

.footer-link:hover {
  color: #111827;
}

:root[data-theme="dark"] body.public-shell {
  background: #07111f;
  color: #e5eefb;
}

:root[data-theme="dark"] ::selection {
  background: rgba(20, 184, 166, 0.28);
  color: #f8fafc;
}

:root[data-theme="dark"] #site-header {
  background: rgba(7, 17, 31, 0.74);
}

:root[data-theme="dark"] #site-header.is-scrolled {
  border-color: rgba(51, 65, 85, 0.84);
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.32);
}

:root[data-theme="dark"] .brand-mark {
  background: #e2e8f0;
}

:root[data-theme="dark"] .brand-mark span:first-child {
  background: #0f172a;
}

:root[data-theme="dark"] .brand-mark span:last-child {
  background: var(--accent-soft);
}

.glossy-process-card {
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .glossy-process-card {
  border-color: rgba(51, 65, 85, 0.82) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 18, 33, 0.96)) !important;
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

:root[data-theme="dark"] .glossy-process-card > div:first-child {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)) !important;
}

:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .footer-link,
:root[data-theme="dark"] .mobile-link,
:root[data-theme="dark"] .footer-title {
  color: #cbd5e1;
}

:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .footer-link:hover,
:root[data-theme="dark"] .mobile-link:hover {
  color: #f8fafc;
}

:root[data-theme="dark"] .menu-button:hover {
  background: rgba(15, 23, 42, 0.88);
}

:root[data-theme="dark"] .menu-button span:not(.sr-only) {
  background: #e2e8f0;
}

:root[data-theme="dark"] .mobile-menu {
  background: rgba(10, 18, 31, 0.95);
}

:root[data-theme="dark"] .mobile-menu.is-open {
  border-color: rgba(51, 65, 85, 0.8);
}

:root[data-theme="dark"] .mobile-link {
  border-bottom-color: rgba(30, 41, 59, 0.9);
}

:root[data-theme="dark"] .theme-toggle-track {
  border-color: rgba(71, 85, 105, 0.82);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 22px rgba(2, 6, 23, 0.28);
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(26px);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  color: #cbd5e1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(2, 6, 23, 0.36);
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.7);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

:root[data-theme="dark"] footer#aloqa {
  border-top-color: rgba(30, 41, 59, 0.9);
  background: #081221;
}

:root[data-theme="dark"] #aloqa p,
:root[data-theme="dark"] #aloqa span {
  color: #94a3b8;
}

:root[data-theme="dark"] .button-secondary {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(2, 6, 23, 0.24);
}

:root[data-theme="dark"] .button-secondary:hover {
  border-color: rgba(100, 116, 139, 0.95);
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme="dark"] .button-light {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #020617;
}

:root[data-theme="dark"] .public-shell main section,
:root[data-theme="dark"] .public-shell .rounded-\[26px\],
:root[data-theme="dark"] .public-shell .rounded-\[28px\],
:root[data-theme="dark"] .public-shell .rounded-\[32px\],
:root[data-theme="dark"] .public-shell .rounded-\[34px\],
:root[data-theme="dark"] .public-shell .rounded-\[36px\] {
  border-color: rgba(51, 65, 85, 0.7);
}

:root[data-theme="dark"] .public-shell .bg-white,
:root[data-theme="dark"] .public-shell .bg-white\/70,
:root[data-theme="dark"] .public-shell .bg-white\/75,
:root[data-theme="dark"] .public-shell .bg-white\/80,
:root[data-theme="dark"] .public-shell .bg-white\/85,
:root[data-theme="dark"] .public-shell .bg-white\/90 {
  background-color: rgba(15, 23, 42, 0.84) !important;
}

:root[data-theme="dark"] .public-shell .bg-slate-50,
:root[data-theme="dark"] .public-shell .bg-slate-50\/80,
:root[data-theme="dark"] .public-shell .bg-slate-50\/90,
:root[data-theme="dark"] .public-shell .bg-zinc-50 {
  background-color: rgba(11, 18, 32, 0.96) !important;
}

:root[data-theme="dark"] .public-shell .text-slate-950,
:root[data-theme="dark"] .public-shell .text-slate-900,
:root[data-theme="dark"] .public-shell .text-slate-700 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .public-shell .text-slate-600,
:root[data-theme="dark"] .public-shell .text-slate-500,
:root[data-theme="dark"] .public-shell .text-slate-400 {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .public-shell .bg-slate-950 {
  background-color: #020617 !important;
}

:root[data-theme="dark"] .public-shell .border-slate-200,
:root[data-theme="dark"] .public-shell .border-slate-200\/70,
:root[data-theme="dark"] .public-shell .border-slate-200\/80,
:root[data-theme="dark"] .public-shell .border-slate-300 {
  border-color: rgba(51, 65, 85, 0.78) !important;
}

:root[data-theme="dark"] .public-shell .bg-slate-100 {
  background-color: rgba(30, 41, 59, 0.9) !important;
}

:root[data-theme="dark"] .public-shell .text-emerald-600 {
  color: #6ee7b7 !important;
}

.auth-shell .theme-toggle-track,
.admin-shell .theme-toggle-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.98));
}

:root[data-theme="dark"] body.auth-shell {
  background: linear-gradient(180deg, #07111f 0%, #0b1728 100%);
  color: #e5eefb;
}

:root[data-theme="dark"] .auth-header {
  border-color: rgba(30, 41, 59, 0.9);
  background: rgba(7, 17, 31, 0.84) !important;
}

:root[data-theme="dark"] .auth-shell .text-slate-950,
:root[data-theme="dark"] .auth-shell .text-slate-900,
:root[data-theme="dark"] .auth-shell .text-slate-700 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .auth-shell .text-slate-600,
:root[data-theme="dark"] .auth-shell .text-slate-500,
:root[data-theme="dark"] .auth-shell .text-slate-400 {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .auth-shell .bg-white,
:root[data-theme="dark"] .auth-shell .bg-white\/90 {
  background-color: rgba(15, 23, 42, 0.9) !important;
}

:root[data-theme="dark"] .auth-shell .border-slate-200,
:root[data-theme="dark"] .auth-shell .border-slate-200\/80,
:root[data-theme="dark"] .auth-shell .border-slate-300 {
  border-color: rgba(51, 65, 85, 0.82) !important;
}

:root[data-theme="dark"] .auth-shell .shadow-soft,
:root[data-theme="dark"] .auth-shell .shadow-\[0_20px_50px_rgba\(15\,23\,42\,0\.08\)\],
:root[data-theme="dark"] .auth-shell .shadow-\[0_24px_60px_rgba\(15\,23\,42\,0\.18\)\],
:root[data-theme="dark"] .auth-shell .shadow-\[0_10px_30px_rgba\(15\,23\,42\,0\.06\)\],
:root[data-theme="dark"] .auth-shell .shadow-\[0_10px_30px_rgba\(15\,23\,42\,0\.12\)\] {
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28) !important;
}

:root[data-theme="dark"] .auth-shell input,
:root[data-theme="dark"] .auth-shell select,
:root[data-theme="dark"] .auth-shell textarea {
  border-color: rgba(51, 65, 85, 0.82) !important;
  background: rgba(10, 18, 31, 0.96) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .auth-shell input::placeholder,
:root[data-theme="dark"] .auth-shell textarea::placeholder {
  color: #64748b;
}

:root[data-theme="dark"] .auth-shell .focus\:ring-indigo-100:focus {
  --tw-ring-color: rgba(20, 184, 166, 0.22) !important;
}

:root[data-theme="dark"] .auth-shell .bg-slate-100 {
  background-color: rgba(30, 41, 59, 0.92) !important;
}

:root[data-theme="dark"] .auth-shell .role-choice:not(.bg-slate-950) {
  background-color: rgba(15, 23, 42, 0.88) !important;
}

:root[data-theme="dark"] .auth-shell .h-px.bg-slate-200 {
  background-color: rgba(51, 65, 85, 0.82) !important;
}

:root[data-theme="dark"] .auth-shell [data-progress-step].bg-slate-100 {
  background-color: rgba(30, 41, 59, 0.92) !important;
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .auth-shell [data-progress-step].bg-slate-950 {
  background-color: var(--accent) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] body.admin-shell {
  background: #081221;
  color: #e5eefb;
}

:root[data-theme="dark"] .admin-shell .bg-adminbg {
  background-color: #081221 !important;
}

:root[data-theme="dark"] .admin-shell header.sticky {
  border-color: rgba(30, 41, 59, 0.9);
  background: rgba(7, 17, 31, 0.88) !important;
}

:root[data-theme="dark"] .admin-shell .bg-white,
:root[data-theme="dark"] .admin-shell .bg-white\/92,
:root[data-theme="dark"] .admin-shell .bg-slate-50,
:root[data-theme="dark"] .admin-shell .bg-slate-50\/80 {
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .admin-shell .text-slate-950,
:root[data-theme="dark"] .admin-shell .text-slate-700,
:root[data-theme="dark"] .admin-shell .text-slate-600 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .admin-shell .text-slate-500,
:root[data-theme="dark"] .admin-shell .text-slate-400,
:root[data-theme="dark"] .admin-shell .text-muted {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .admin-shell .border-slate-200,
:root[data-theme="dark"] .admin-shell .border-slate-200\/80,
:root[data-theme="dark"] .admin-shell .border-line {
  border-color: rgba(51, 65, 85, 0.82) !important;
}

:root[data-theme="dark"] .admin-shell .shadow-panel,
:root[data-theme="dark"] .admin-shell .shadow-topbar,
:root[data-theme="dark"] .admin-shell .shadow-\[0_20px_50px_rgba\(15\,23\,42\,0\.08\)\] {
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28) !important;
}

:root[data-theme="dark"] .admin-shell input,
:root[data-theme="dark"] .admin-shell select,
:root[data-theme="dark"] .admin-shell textarea {
  border-color: rgba(51, 65, 85, 0.82) !important;
  background: rgba(10, 18, 31, 0.96) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .admin-shell .focus\:ring-indigo-100:focus {
  --tw-ring-color: rgba(20, 184, 166, 0.22) !important;
}

:root[data-theme="dark"] .admin-shell tr.hover\:bg-slate-50\/80:hover,
:root[data-theme="dark"] .admin-shell tr:hover {
  background-color: rgba(30, 41, 59, 0.45) !important;
}

:root[data-theme="dark"] body.member-shell {
  background: linear-gradient(180deg, #07111f 0%, #0b1728 100%);
  color: #e5eefb;
}

:root[data-theme="dark"] .member-header {
  border-color: rgba(30, 41, 59, 0.9);
  background: rgba(7, 17, 31, 0.88) !important;
}

:root[data-theme="dark"] .member-shell .text-slate-950,
:root[data-theme="dark"] .member-shell .text-slate-900,
:root[data-theme="dark"] .member-shell .text-slate-700 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .member-shell .text-slate-600,
:root[data-theme="dark"] .member-shell .text-slate-500,
:root[data-theme="dark"] .member-shell .text-slate-400 {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .member-shell .bg-white,
:root[data-theme="dark"] .member-shell .bg-white\/92,
:root[data-theme="dark"] .member-shell .bg-white\/88,
:root[data-theme="dark"] .member-shell .bg-white\/85,
:root[data-theme="dark"] .member-shell .bg-white\/90,
:root[data-theme="dark"] .member-shell .bg-white\/80,
:root[data-theme="dark"] .member-shell .bg-slate-50,
:root[data-theme="dark"] .member-shell .bg-slate-50\/80,
:root[data-theme="dark"] .member-shell .bg-slate-50\/70,
:root[data-theme="dark"] .member-shell .bg-slate-50\/90 {
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .member-shell .border-slate-200,
:root[data-theme="dark"] .member-shell .border-slate-200\/80,
:root[data-theme="dark"] .member-shell .border-slate-200\/70,
:root[data-theme="dark"] .member-shell .border-slate-300 {
  border-color: rgba(51, 65, 85, 0.82) !important;
}

:root[data-theme="dark"] .member-shell .shadow-panel,
:root[data-theme="dark"] .member-shell .shadow-topbar,
:root[data-theme="dark"] .member-shell .shadow-\[0_10px_30px_rgba\(15\,23\,42\,0\.06\)\],
:root[data-theme="dark"] .member-shell .shadow-\[0_10px_30px_rgba\(15\,23\,42\,0\.12\)\] {
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28) !important;
}

:root[data-theme="dark"] .member-shell input,
:root[data-theme="dark"] .member-shell select,
:root[data-theme="dark"] .member-shell textarea {
  border-color: rgba(51, 65, 85, 0.82) !important;
  background: rgba(10, 18, 31, 0.96) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .member-shell input::placeholder,
:root[data-theme="dark"] .member-shell textarea::placeholder {
  color: #64748b;
}

:root[data-theme="dark"] .member-shell .focus\:ring-indigo-100:focus {
  --tw-ring-color: rgba(20, 184, 166, 0.22) !important;
}

:root[data-theme="dark"] .member-shell .bg-slate-100 {
  background-color: rgba(30, 41, 59, 0.92) !important;
}

/* --- Semantic Status Badges in Dark Mode --- */
:root[data-theme="dark"] .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
:root[data-theme="dark"] .text-amber-700,
:root[data-theme="dark"] .text-amber-800 {
  color: #fbbf24 !important;
}

:root[data-theme="dark"] .bg-emerald-100 {
  background-color: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
:root[data-theme="dark"] .text-emerald-700,
:root[data-theme="dark"] .text-emerald-800 {
  color: #34d399 !important;
}

:root[data-theme="dark"] .bg-teal-100 {
  background-color: rgba(20, 184, 166, 0.16) !important;
  border-color: rgba(20, 184, 166, 0.3) !important;
}
:root[data-theme="dark"] .text-teal-700,
:root[data-theme="dark"] .text-teal-800 {
  color: #2dd4bf !important;
}

:root[data-theme="dark"] .bg-sky-100 {
  background-color: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}
:root[data-theme="dark"] .text-sky-700,
:root[data-theme="dark"] .text-sky-800 {
  color: #38bdf8 !important;
}

:root[data-theme="dark"] .bg-slate-200 {
  background-color: rgba(71, 85, 105, 0.25) !important;
  border-color: rgba(100, 116, 139, 0.32) !important;
}

:root[data-theme="dark"] .bg-rose-100 {
  background-color: rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}
:root[data-theme="dark"] .text-rose-700,
:root[data-theme="dark"] .text-rose-800,
:root[data-theme="dark"] .text-rose-600 {
  color: #fb7185 !important;
}

:root[data-theme="dark"] .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.16) !important;
  border-color: rgba(129, 140, 248, 0.3) !important;
}
:root[data-theme="dark"] .text-indigo-700,
:root[data-theme="dark"] .text-indigo-800 {
  color: #a5b4fc !important;
}

/* --- Work State & Selected Candidate Cards in Dark Mode --- */
:root[data-theme="dark"] .bg-teal-50,
:root[data-theme="dark"] .bg-teal-50\/80 {
  background-color: rgba(13, 148, 136, 0.12) !important;
}
:root[data-theme="dark"] .border-teal-200,
:root[data-theme="dark"] .border-teal-200\/80 {
  border-color: rgba(20, 184, 166, 0.3) !important;
}
:root[data-theme="dark"] .text-teal-950 {
  color: #f0fdfa !important;
}

:root[data-theme="dark"] .bg-sky-50,
:root[data-theme="dark"] .bg-sky-50\/80 {
  background-color: rgba(2, 132, 199, 0.12) !important;
}
:root[data-theme="dark"] .border-sky-200 {
  border-color: rgba(14, 165, 233, 0.3) !important;
}
:root[data-theme="dark"] .text-sky-950,
:root[data-theme="dark"] .text-sky-900 {
  color: #f0f9ff !important;
}

:root[data-theme="dark"] .bg-amber-50,
:root[data-theme="dark"] .bg-amber-50\/80 {
  background-color: rgba(180, 83, 9, 0.12) !important;
}
:root[data-theme="dark"] .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}
:root[data-theme="dark"] .text-amber-950,
:root[data-theme="dark"] .text-amber-900 {
  color: #fffbeb !important;
}

/* --- Alerts in Dark Mode --- */
:root[data-theme="dark"] .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.32) !important;
}
:root[data-theme="dark"] .bg-emerald-50 {
  background-color: rgba(6, 78, 59, 0.3) !important;
}

:root[data-theme="dark"] .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.32) !important;
}
:root[data-theme="dark"] .bg-amber-50 {
  background-color: rgba(120, 53, 15, 0.3) !important;
}

:root[data-theme="dark"] .border-rose-200,
:root[data-theme="dark"] .border-rose-300 {
  border-color: rgba(244, 63, 94, 0.32) !important;
}
:root[data-theme="dark"] .bg-rose-50 {
  background-color: rgba(127, 29, 29, 0.3) !important;
}

/* --- Subtle Dividers & Borders in Dark Mode --- */
:root[data-theme="dark"] .border-slate-100,
:root[data-theme="dark"] .border-slate-100\/80,
:root[data-theme="dark"] .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(51, 65, 85, 0.55) !important;
}

:root[data-theme="dark"] .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(51, 65, 85, 0.75) !important;
}

:root[data-theme="dark"] .bg-accentsoft {
  background-color: rgba(20, 184, 166, 0.16) !important;
  border: 1px solid rgba(20, 184, 166, 0.28);
}
:root[data-theme="dark"] .text-accent {
  color: #2dd4bf !important;
}

:root[data-theme="dark"] .member-shell .btn-action-viewed {
  border-color: rgba(71, 85, 105, 0.85) !important;
  background-color: rgba(30, 41, 59, 0.95) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .member-shell .btn-action-viewed:hover {
  border-color: rgba(100, 116, 139, 0.95) !important;
  background-color: rgba(51, 65, 85, 0.95) !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] .member-shell .status-indicator-viewed {
  border-color: rgba(51, 65, 85, 0.5) !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .member-shell #chat-thread {
  background: rgba(10, 18, 31, 0.7) !important;
}

:root[data-theme="dark"] .member-sidebar > div {
  border-color: rgba(51, 65, 85, 0.82) !important;
  background: rgba(8, 18, 33, 0.94) !important;
  box-shadow: 20px 0 60px rgba(2, 6, 23, 0.34) !important;
}

:root[data-theme="dark"] .member-sidebar-link {
  color: #94a3b8;
}

:root[data-theme="dark"] .member-sidebar-link:hover {
  border-color: rgba(51, 65, 85, 0.82);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.24);
}

:root[data-theme="dark"] .member-sidebar-link.is-active {
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.92));
  color: #5eead4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 32px rgba(2, 6, 23, 0.26);
}

.reveal {
  animation: reveal-up 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 150ms; }
.reveal-delay-3 { animation-delay: 220ms; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .product-sidebar {
    display: block;
  }

  .section-space {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .section-title {
    font-size: 44px;
  }

  .feature-card {
    padding: 30px;
  }

  .cta-panel {
    padding: 72px 64px;
  }
}

@media (min-width: 1024px) {
  .feature-card-wide {
    grid-column: span 1;
  }

  .section-space {
    padding-top: 136px;
    padding-bottom: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
