:root {
  /* Palette */
  --navy-900: #0B1121;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --cyan-400: #22D3EE;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --white: #F8FAFC;

  /* Semantic */
  --bg-chem: var(--navy-900);
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --border: rgba(148, 163, 184, 0.1);
  --border-highlight: rgba(59, 130, 246, 0.4);
  --text-main: var(--white);
  --text-muted: var(--slate-400);
  --primary: var(--blue-500);
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent-glow: rgba(34, 211, 238, 0.2);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Admin Mappings */
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --text-tertiary: var(--slate-500);
  --gradient-primary: linear-gradient(135deg, #FFF 30%, var(--primary));
}

html.light {
  --bg-chem: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(241, 245, 249, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.3);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --navy-800: #FFFFFF;
  --navy-900: #F1F5F9;
}

/* Light mode: social proof banner — more visible */
html.light .social-proof {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
}

html.light .brand-logo {
  color: #334155;
  opacity: 0.75;
}

/* Light mode: form inputs — light background, dark text */
html.light .input-field,
html.light .input-select,
html.light .input-area {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0F172A;
}

html.light .input-field:focus,
html.light .input-select:focus,
html.light .input-area:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

html.light .demo-ui {
  box-shadow: 0 4px 40px rgba(59, 130, 246, 0.08);
}

/* Light mode: pricing feature list — darker, semi-bold */
html.light .features-list li {
  color: #1E293B;
  font-weight: 500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-chem);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* Background Mesh */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, var(--primary-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, var(--accent-glow) 0%, transparent 40%);
  opacity: 0.6;
  animation: pulseMesh 10s ease-in-out infinite alternate;
}

@keyframes pulseMesh {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: 0.3s;
}

nav.scrolled {
  padding: 12px 0;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

html.light nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field,
.input-select,
.input-area {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.2s;
}

.input-field:focus,
.input-select:focus,
.input-area:focus {
  border-color: var(--primary);
  outline: none;
}
