:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.4);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.4);
  --accent-cyan: #22d3ee;
  --accent-cyan-glow: rgba(34, 211, 238, 0.3);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f59e0b 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  top: -200px;
  right: -200px;
  background: var(--accent-indigo);
  animation: float 20s ease-in-out infinite;
}

.bg-glow-2 {
  bottom: -200px;
  left: -200px;
  background: var(--accent-amber);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, 50px); }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-evolve {
  color: var(--text-primary);
}

.logo-rcm {
  color: var(--accent-indigo);
  font-weight: 500;
}

.logo-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

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

.nav-cta {
  padding: 12px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-indigo-glow);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 140px 60px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-text p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 16px 36px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px var(--accent-indigo-glow);
}

.btn-secondary {
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* HELIX Visualization */
.helix-container {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helix-visual {
  position: relative;
  width: 400px;
  height: 520px;
}

/* Orbital rings - positioned at the very bottom of the DNA */
.orbital-rings-container {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  perspective: 800px;
}

.orbital-ring {
  position: absolute;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.orbital-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: rotateX(75deg) rotateZ(0deg);
  animation-duration: 25s;
}

.orbital-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-color: rgba(245, 158, 11, 0.4);
  transform: rotateX(75deg) rotateZ(60deg);
  animation-duration: 30s;
  animation-direction: reverse;
}

.orbital-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-color: rgba(34, 211, 238, 0.35);
  transform: rotateX(75deg) rotateZ(120deg);
  animation-duration: 35s;
}

@keyframes orbit {
  from { transform: rotateX(75deg) rotateZ(0deg); }
  to { transform: rotateX(75deg) rotateZ(360deg); }
}

/* DNA Helix with SVG curves */
.dna-helix-svg {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 340px;
  z-index: 10;
}

.dna-strand-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.strand-left {
  stroke: url(#strandGradientLeft);
}

.strand-right {
  stroke: url(#strandGradientRight);
}

.dna-connector-line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

/* DNA Nodes */
.dna-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 20px var(--accent-indigo-glow), 0 0 40px var(--accent-indigo-glow);
  animation: pulse 2.5s ease-in-out infinite;
  z-index: 15;
}

.dna-node.amber {
  background: var(--accent-amber);
  box-shadow: 0 0 20px var(--accent-amber-glow), 0 0 40px var(--accent-amber-glow);
}

.dna-node.cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow), 0 0 40px var(--accent-cyan-glow);
}

.dna-node.purple {
  background: #a78bfa;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.5), 0 0 40px rgba(167, 139, 250, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

/* Core glow - centered on rings */
.core-glow {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(245, 158, 11, 0.1) 40%, transparent 70%);
  animation: coreGlow 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes coreGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* Floating particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-indigo);
  border-radius: 50%;
  animation: particleFloat 12s linear infinite;
  z-index: 1;
}

.particle:nth-child(2) { animation-delay: 3s; }
.particle:nth-child(3) { animation-delay: 6s; }
.particle:nth-child(4) { animation-delay: 9s; }

@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-450px) rotate(720deg); opacity: 0; }
}

/* HELIX label - positioned well below the visual */
.helix-label {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
}

.helix-label h3 {
  font-family: 'Space Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.35em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.helix-label p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Meet HELIX Section */
.meet-helix {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent-indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.helix-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.helix-description h3 {
  font-size: 32px;
  margin-bottom: 24px;
}

.helix-description p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 18px;
}

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

.stat-box {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
}

.stat-box .number {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Capabilities Section */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.capability-card {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.capability-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-icon {
  width: 64px;
  height: 64px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.capability-card:nth-child(2) .capability-icon {
  background: rgba(245, 158, 11, 0.1);
}

.capability-card:nth-child(3) .capability-icon {
  background: rgba(34, 211, 238, 0.1);
}

.capability-card:nth-child(4) .capability-icon {
  background: rgba(139, 92, 246, 0.1);
}

.capability-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.capability-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.capability-card.full-width {
  grid-column: 1 / -1;
}

.agent-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.agent-letter {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capability-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

/* Integrations Section */
.integrations {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.integration-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.integration-type {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.integration-type h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.integration-type > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.integration-logo {
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.integration-logo:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.05);
}

.integration-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.integration-logo.placeholder {
  color: var(--text-muted);
  font-size: 14px;
  border-style: dashed;
}

.collaboratemd-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Contact Section */
.contact {
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 48px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-method-text {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-method-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-indigo);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px var(--accent-indigo-glow);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  padding: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--accent-indigo);
  font-weight: 500;
}

footer p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  nav {
    padding: 20px 30px;
  }

  section {
    padding: 100px 30px;
  }

  .hero-content,
  .helix-intro,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .helix-container {
    height: 400px;
  }

  .helix-visual {
    width: 300px;
    height: 300px;
  }

  .capabilities-grid,
  .integration-types {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .helix-stats {
    grid-template-columns: 1fr;
  }
}
