/* ========== VARIABLES & RESET ========== */
:root {
  --bg: #030712;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #00f0ff;
  --accent2: #a855f7;
  --gradient: linear-gradient(135deg, #00f0ff, #a855f7);
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --nav-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

/* ========== PARTICLE CANVAS ========== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== NAVIGATION ========== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { border-color: rgba(0, 240, 255, 0.15); box-shadow: none; }
  50% { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 16px rgba(0, 240, 255, 0.1); }
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#dna-helix {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
#hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
  font-style: italic;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 64px;
}
.scroll-line {
  width: 1px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.section-dark {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 20px;
}
.section-desc {
  color: var(--text-dim);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* ========== GLASS CARD ========== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

/* ========== QUESTIONS GRID ========== */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.question-card {
  padding: 40px 32px;
  position: relative;
}
.q-mark {
  display: block;
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.question-card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

/* ========== VISION TEASER ========== */
.vision-center {
  max-width: 680px;
  text-align: center;
}
.vision-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}
.vision-text.dim {
  color: var(--text-dim);
  font-size: 1rem;
}
.vision-text:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: rgba(148, 163, 184, 0.7);
}

/* ========== PCA VISUALIZATION ========== */
.pca-wrapper {
  position: relative;
  padding: 24px;
  margin-top: 8px;
}
#pca-canvas {
  width: 100%;
  height: 450px;
  display: block;
  border-radius: 12px;
  cursor: crosshair;
}
.pca-tooltip {
  position: absolute;
  padding: 8px 14px;
  background: rgba(3, 7, 18, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  white-space: nowrap;
}
.pca-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.pca-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ========== SIGNUP / CTA ========== */
.signup-container { max-width: 640px; }
.cta-block {
  padding: 56px 48px;
  text-align: center;
}
.signup-form {
  margin-top: 32px;
}
.signup-form .form-row {
  display: flex;
  gap: 12px;
}
.form-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--accent); }
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--gradient);
  color: #030712;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.25);
}
.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.5);
}

@media (max-width: 520px) {
  .signup-form .form-row { flex-direction: column; }
  .cta-block { padding: 40px 24px; }
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.4);
}

/* ========== REVEAL ANIMATION ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
