*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #09090b;
  --bg-card: #131316;
  --bg-card-hover: #1a1a1f;
  --surface: #111114;
  --border: #27272a;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  color: var(--accent-light);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--accent-glow), 0 8px 32px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(99, 102, 241, 0.06);
}

.btn-nav {
  padding: 8px 20px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: var(--radius-sm);
}

.btn-nav:hover { box-shadow: 0 0 20px var(--accent-glow); }

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25) !important;
}

/* ============================================
   HERO — with molecular lattice + SMILES
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
    var(--bg);
}

/* Real PubChem molecular structure images */
.mol-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mol {
  position: absolute;
  opacity: 0.85;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(10deg) brightness(2);
  mix-blend-mode: screen;
}
.mol.mol-processed {
  filter: none;
  mix-blend-mode: normal;
}

/* --- Row 1: top edge --- */
.mol-1  { width: 100px; top: 1%;  left: 1%;   animation: molFloat1 26s ease-in-out infinite; }
.mol-2  { width: 140px; top: 0%;  right: 1%;  animation: molFloat2 32s ease-in-out -4s infinite; }
.mol-3  { width: 120px; top: 3%;  left: 25%;  animation: molFloat3 28s ease-in-out -8s infinite; opacity: 0.6; }
.mol-4  { width: 150px; top: 1%;  right: 22%; animation: molFloat4 34s ease-in-out -12s infinite; }

/* --- Row 2: upper-mid --- */
.mol-5  { width: 140px; top: 22%; left: 0%;   animation: molFloat2 30s ease-in-out -6s infinite; }
.mol-6  { width: 110px; top: 24%; right: 2%;  animation: molFloat3 28s ease-in-out -16s infinite; }
.mol-13 { width: 160px; top: 20%; left: 35%;  animation: molFloat1 36s ease-in-out -2s infinite; opacity: 0.6; }
.mol-16 { width: 100px; top: 26%; right: 28%; animation: molFloat4 24s ease-in-out -9s infinite; opacity: 0.6; }

/* --- Row 3: middle --- */
.mol-7  { width: 140px; top: 42%; left: 2%;   animation: molFloat4 26s ease-in-out -10s infinite; }
.mol-8  { width: 140px; top: 40%; right: 0%;  animation: molFloat1 30s ease-in-out -14s infinite; }
.mol-14 { width: 100px; top: 45%; left: 30%;  animation: molFloat2 22s ease-in-out -5s infinite; opacity: 0.6; }
.mol-17 { width: 90px;  top: 44%; right: 25%; animation: molFloat3 20s ease-in-out -13s infinite; opacity: 0.6; }

/* --- Row 4: lower-mid --- */
.mol-9  { width: 110px; top: 62%; left: 4%;   animation: molFloat3 24s ease-in-out -18s infinite; }
.mol-15 { width: 130px; top: 60%; right: 3%;  animation: molFloat4 28s ease-in-out -11s infinite; }
.mol-19 { width: 90px;  top: 64%; left: 32%;  animation: molFloat1 22s ease-in-out -7s infinite; opacity: 0.6; }
.mol-18 { width: 130px; top: 62%; right: 28%; animation: molFloat2 30s ease-in-out -15s infinite; opacity: 0.6; }

/* --- Row 5: bottom --- */
.mol-10 { width: 100px; bottom: 6%; left: 5%;  animation: molFloat1 22s ease-in-out -3s infinite; }
.mol-11 { width: 110px; bottom: 4%; left: 25%; animation: molFloat4 28s ease-in-out -20s infinite; }
.mol-12 { width: 110px; bottom: 2%; right: 2%; animation: molFloat2 26s ease-in-out -7s infinite; }
.mol-20 { width: 80px;  bottom: 8%; right: 30%; animation: molFloat3 20s ease-in-out -17s infinite; opacity: 0.6; }

/* --- Ligand binders --- */
.mol-21 { width: 100px; top: 12%; left: 42%;  animation: molFloat2 24s ease-in-out -3s infinite; opacity: 0.6; }
.mol-22 { width: 120px; top: 35%; right: 14%; animation: molFloat4 28s ease-in-out -8s infinite; opacity: 0.6; }
.mol-23 { width: 130px; top: 50%; left: 14%;  animation: molFloat1 26s ease-in-out -12s infinite; opacity: 0.6; }
.mol-24 { width: 90px;  top: 70%; right: 18%; animation: molFloat3 22s ease-in-out -6s infinite; opacity: 0.6; }
.mol-25 { width: 80px;  top: 18%; right: 38%; animation: molFloat2 20s ease-in-out -15s infinite; opacity: 0.6; }
.mol-26 { width: 90px;  bottom: 14%; left: 38%; animation: molFloat4 24s ease-in-out -10s infinite; opacity: 0.6; }

/* --- Extra structures, varied sizes --- */
.mol-27 { width: 200px; top: 5%;  left: 50%;  animation: molFloat1 30s ease-in-out -2s infinite; opacity: 0.65; }
.mol-28 { width: 60px;  top: 14%; left: 8%;   animation: molFloat3 18s ease-in-out -5s infinite; opacity: 0.75; }
.mol-29 { width: 180px; top: 30%; right: 5%;  animation: molFloat2 32s ease-in-out -9s infinite; opacity: 0.6; }
.mol-30 { width: 70px;  top: 8%;  right: 15%; animation: molFloat4 20s ease-in-out -3s infinite; opacity: 0.8; }
.mol-31 { width: 220px; top: 50%; left: 20%;  animation: molFloat1 34s ease-in-out -7s infinite; opacity: 0.6; }
.mol-32 { width: 55px;  top: 55%; right: 10%; animation: molFloat3 16s ease-in-out -11s infinite; opacity: 0.8; }
.mol-33 { width: 170px; top: 15%; left: 60%;  animation: molFloat2 28s ease-in-out -14s infinite; opacity: 0.6; }
.mol-34 { width: 85px;  top: 75%; left: 8%;   animation: molFloat4 22s ease-in-out -6s infinite; opacity: 0.7; }
.mol-35 { width: 65px;  top: 68%; right: 40%; animation: molFloat1 19s ease-in-out -12s infinite; opacity: 0.75; }
.mol-36 { width: 190px; bottom: 5%; right: 15%; animation: molFloat3 30s ease-in-out -8s infinite; opacity: 0.6; }
.mol-37 { width: 50px;  top: 38%; left: 45%;  animation: molFloat2 17s ease-in-out -4s infinite; opacity: 0.85; }
.mol-38 { width: 75px;  bottom: 20%; left: 55%; animation: molFloat4 21s ease-in-out -16s infinite; opacity: 0.75; }
.mol-39 { width: 210px; top: 2%;  left: 72%;  animation: molFloat1 32s ease-in-out -10s infinite; opacity: 0.6; }
.mol-40 { width: 160px; bottom: 12%; left: 15%; animation: molFloat2 26s ease-in-out -13s infinite; opacity: 0.65; }
.mol-41 { width: 45px;  top: 82%; right: 8%;  animation: molFloat3 15s ease-in-out -7s infinite; opacity: 0.85; }
.mol-42 { width: 130px; top: 32%; left: 5%;   animation: molFloat4 28s ease-in-out -2s infinite; opacity: 0.65; }
.mol-43 { width: 55px;  top: 58%; left: 62%;  animation: molFloat1 18s ease-in-out -9s infinite; opacity: 0.8; }
.mol-44 { width: 230px; top: 20%; right: 20%; animation: molFloat2 36s ease-in-out -5s infinite; opacity: 0.6; }
.mol-45 { width: 70px;  bottom: 25%; right: 45%; animation: molFloat3 20s ease-in-out -11s infinite; opacity: 0.75; }
.mol-46 { width: 185px; bottom: 2%; left: 45%; animation: molFloat4 30s ease-in-out -15s infinite; opacity: 0.6; }

@keyframes molFloat1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(12px, -18px) rotate(2deg); }
  40%  { transform: translate(-8px, -30px) rotate(-1deg); }
  60%  { transform: translate(16px, -14px) rotate(3deg); }
  80%  { transform: translate(-6px, -24px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes molFloat2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-14px, -22px) rotate(-3deg); }
  50%  { transform: translate(10px, -8px) rotate(2deg); }
  75%  { transform: translate(-18px, -28px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes molFloat3 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(20px, -16px) rotate(4deg); }
  66%  { transform: translate(-12px, -32px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes molFloat4 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-10px, -26px) rotate(-2deg); }
  50%  { transform: translate(14px, -12px) rotate(3deg); }
  80%  { transform: translate(-16px, -20px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Floating SMILES & chemical formulas */
.chem-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.chem-float {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--accent-light);
  opacity: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: chemFloat 24s ease-in-out infinite;
}

.chem-float:nth-child(1)  { animation-delay: 0s; animation-duration: 22s; }
.chem-float:nth-child(2)  { animation-delay: -3s; animation-duration: 26s; }
.chem-float:nth-child(3)  { animation-delay: -6s; animation-duration: 18s; }
.chem-float:nth-child(4)  { animation-delay: -9s; animation-duration: 24s; }
.chem-float:nth-child(5)  { animation-delay: -12s; animation-duration: 28s; }
.chem-float:nth-child(6)  { animation-delay: -15s; animation-duration: 20s; }
.chem-float:nth-child(7)  { animation-delay: -18s; animation-duration: 25s; }
.chem-float:nth-child(8)  { animation-delay: -21s; animation-duration: 22s; }
.chem-float:nth-child(9)  { animation-delay: -2s; animation-duration: 23s; }
.chem-float:nth-child(10) { animation-delay: -7s; animation-duration: 27s; }
.chem-float:nth-child(11) { animation-delay: -10s; animation-duration: 21s; }
.chem-float:nth-child(12) { animation-delay: -16s; animation-duration: 24s; }

@keyframes chemFloat {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  10%  { opacity: 0.3; }
  50%  { opacity: 0.2; transform: translateY(-20px) translateX(10px); }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-40px) translateX(-8px); }
}

.hero-content { position: relative; z-index: 3; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  background: rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero glow replaced by animated aurora blobs */

/* ============================================
   SECTIONS — shared
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Section-level floating molecules */
.section-mols {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.smol {
  position: absolute;
  opacity: 0.85;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(10deg) brightness(2);
  mix-blend-mode: screen;
}
.smol.mol-processed {
  filter: none;
  mix-blend-mode: normal;
}

.section .container { position: relative; z-index: 1; }

.section-dark {
  background: var(--surface);
  border-top: 1px solid rgba(99, 102, 241, 0.06);
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(99, 102, 241, 0.2) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid .feature-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.04), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::after { left: 150%; }

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.feature-icon { font-size: 2rem; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* Steps */
.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.step:hover { padding-left: 8px; }

.step:last-child { border-bottom: none; }

.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.step:hover .step-number { opacity: 0.8; }

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Demo Form */
.demo-form { max-width: 640px; margin: 0 auto; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: all 0.25s ease;
  resize: vertical;
  backdrop-filter: blur(4px);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #52525b; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px rgba(99, 102, 241, 0.1);
}

.btn-submit { width: 100%; padding: 14px; font-size: 1rem; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: #52525b;
  margin-top: 16px;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-links { display: flex; gap: 28px; justify-content: center; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: #52525b; }

/* ============================================
   ENHANCEMENTS
   ============================================ */

/* 1. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active { opacity: 1; transform: none; }

/* 2. Noise Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* 4. Aurora Animated Blobs */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.aurora-1 {
  width: 600px; height: 600px;
  background: rgba(99, 102, 241, 0.14);
  top: -10%; left: -5%;
  animation: aurora1 20s ease-in-out infinite;
}
.aurora-2 {
  width: 500px; height: 500px;
  background: rgba(139, 92, 246, 0.12);
  top: 40%; right: -10%;
  animation: aurora2 25s ease-in-out infinite;
}
.aurora-3 {
  width: 450px; height: 450px;
  background: rgba(167, 139, 250, 0.10);
  bottom: -15%; left: 30%;
  animation: aurora3 22s ease-in-out infinite;
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 40px) scale(1.1); }
  66% { transform: translate(-40px, 80px) scale(0.95); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -50px) scale(1.15); }
  66% { transform: translate(40px, -30px) scale(0.9); }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.1); }
  66% { transform: translate(-70px, 20px) scale(1.05); }
}

/* 5. SVG Wave Dividers */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* 6. Button Micro-interactions */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:active {
  transform: translateY(-1px) scale(0.97) !important;
  transition-duration: 0.1s;
}

/* 7. Particle Canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 8. Typed Text */
.typed-wrapper { margin-top: 28px; min-height: 1.6em; }
.typed-text {
  font-size: 1rem;
  color: var(--accent-light);
  font-weight: 500;
}
.typed-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--accent-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.75s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 9. Animated Timeline */
.steps { position: relative; padding-left: 40px; }
.timeline-track {
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.timeline-fill {
  width: 100%;
  background: var(--gradient);
  border-radius: 1px;
  transition: height 0.3s ease-out;
}
.step { position: relative; }
.step-dot {
  position: absolute;
  left: -33px; top: 40px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  z-index: 2;
  transition: all 0.4s ease;
}
.step.step-active .step-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.3);
}

/* 10. Page Loader + Hero Entrance */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-logo .logo-icon { color: var(--accent-light); font-size: 2.5rem; }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-loaded .hero-content > * { opacity: 1; transform: none; }
.hero-loaded .hero-content > *:nth-child(1) { transition-delay: 0.1s; }
.hero-loaded .hero-content > *:nth-child(2) { transition-delay: 0.25s; }
.hero-loaded .hero-content > *:nth-child(3) { transition-delay: 0.4s; }
.hero-loaded .hero-content > *:nth-child(4) { transition-delay: 0.55s; }
.hero-loaded .hero-content > *:nth-child(5) { transition-delay: 0.7s; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.3s ease;
  }

  body.menu-open .nav-links { right: 0; }
  .mobile-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .chem-float { font-size: 0.6rem; }
  .mol { opacity: 0.85; width: 100px !important; }
  .mol-13, .mol-14, .mol-16, .mol-17, .mol-18, .mol-19, .mol-20,
  .mol-27, .mol-29, .mol-31, .mol-33, .mol-36, .mol-39, .mol-40,
  .mol-44, .mol-46 { display: none; }
  .smol { opacity: 0.85; width: 80px !important; }
  .feature-card { min-height: auto; padding: 24px; }
  .aurora-blob { display: none; }
  #particles-canvas { display: none; }
  .timeline-track { display: none; }
  .steps { padding-left: 0; }
  .step-dot { display: none; }
  .typed-wrapper { min-height: 1.4em; }
  .typed-text { font-size: 0.85rem; }
  .wave-divider svg { height: 30px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
