:root {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --primary: #38bdf8;
  --secondary: #818cf8;
  --accent: #2dd4bf;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass: blur(12px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  background-image: 
      radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.1) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 3.5rem; background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); margin:auto; }
a:hover { color: var(--accent); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border); padding: 1rem 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-link { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-btn {
  background: var(--primary); color: #0f172a; padding: 0.5rem 1.25rem;
  border-radius: 2rem; font-weight: 600; transition: var(--transition);
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3); }

/* --- Hero Section --- */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  position: relative; padding-top: 80px;
}
.hero-content { max-width: 600px; z-index: 2; }
.hero-text { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-visual {
  position: absolute; 
  right: -10%; 
  top: 15%; 
  transform: translateY(-50%);
  width: 65%; 
  height: 90%;
  z-index: 1; /* Below navbar, parallel to text */
  cursor: grab; /* Shows it is interactive */
}

.hero-visual:active {
  cursor: grabbing;
}

#rna-viewport {
  /* Ensure no background-color is set here */
  background: transparent; 
}
/* This targets the canvas NGL creates inside your viewport */
#rna-viewport canvas {
  background: transparent !important;
}

/* --- Custom List Styles --- */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* Teal dots for the first list */
.styled-list li::before {
  content: "•";
  color: var(--primary); /* Teal */
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Arrows for the "Where to start" list */
.arrow-list li::before {
  content: "→";
  font-size: 1.2rem;
  top: -2px;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .hero-visual { 
      position: relative; 
      width: 100%; 
      height: 400px; 
      right: auto; 
      top: auto; 
      transform: none; 
      margin-top: 2rem;
  }
}
/* --- Cards (Features) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 1rem; padding: 2rem; transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-card h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); }

/* --- Web Server Form --- */
.app-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 3rem; margin-top: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}
.tab-switcher {
  display: flex; gap: 1rem; margin-bottom: 2rem; justify-content: center;
  background: rgba(0,0,0,0.2); padding: 0.5rem; border-radius: 1rem; width: fit-content; margin-left: auto; margin-right: auto;
}
.tab-btn {
  background: transparent; border: none; color: var(--text-muted);
  padding: 0.75rem 2rem; border-radius: 0.75rem; cursor: pointer;
  font-size: 1rem; font-weight: 600; transition: var(--transition);
}
.tab-btn.active { background: var(--card-bg); color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-input, .form-select {
  width: 100%; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border);
  padding: 1rem; border-radius: 0.5rem; color: var(--text-main); font-family: var(--font-mono);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); }

/* Custom Radio Cards */
.radio-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.radio-card-label { cursor: pointer; flex: 1; min-width: 140px; }
.radio-card-label input { display: none; }
.radio-card-content {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 1rem; border-radius: 0.5rem; text-align: center;
  transition: var(--transition); font-weight: 500;
}
.radio-card-label input:checked + .radio-card-content {
  background: rgba(56, 189, 248, 0.15); border-color: var(--primary); color: var(--primary);
}

.submit-btn {
  width: 100%; background: linear-gradient(to right, var(--primary), var(--secondary));
  border: none; padding: 1rem; border-radius: 0.5rem; color: white;
  font-weight: 700; font-size: 1.1rem; cursor: pointer; margin-top: 1rem;
  transition: var(--transition);
}
.submit-btn:hover { filter: brightness(1.1); transform: scale(1.01); }

/* --- Data Tables --- */
.data-controls {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
  background: var(--card-bg); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border);
}
.table-wrapper { overflow-x: auto; border-radius: 1rem; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: rgba(56, 189, 248, 0.1); padding: 1rem; text-align: left; color: var(--primary); font-weight: 600; }
td { padding: 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-main); }

/* --- Animation Classes --- */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- Progress Bar --- */
#progress-container { margin-top: 1.5rem; background: rgba(255,255,255,0.1); height: 6px; border-radius: 3px; overflow: hidden; display: none; }
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }

/* Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-visual { position: relative; width: 100%; height: 300px; transform: none; margin-top: 2rem; }
  h1 { font-size: 2.5rem; }
}