:root {
  --bg: #0a0618;
  --bg2: #110b2e;
  --purple: #2d1b69;
  --purple-light: #4d3b8a;
  --green: #00e676;
  --green-dim: #00c853;
  --green-glow: rgba(0, 230, 118, 0.15);
  --text: #e0e0e0;
  --text-dim: #9e8ec4;
  --text-muted: #6b5b95;
  --radius: 12px;
}

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

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

nav, .hero, .features, .tools, .architecture, .install, footer {
  position: relative;
  z-index: 1;
}

html { scroll-behavior: smooth; }

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

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

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 6, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 27, 105, 0.5);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.nav-icon { width: 28px; height: 28px; border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.btn-nav {
  padding: 6px 16px !important;
  background: var(--purple);
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
}

.btn-nav:hover { background: var(--purple-light); }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, rgba(100, 50, 200, 0.05) 40%, transparent 70%);
  pointer-events: none;
  transition: none;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  transition: transform 0.15s ease-out;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.3));
}

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

h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green), #69f0ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-sub strong { color: var(--green); }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn {
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease-out;
  display: inline-block;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: #69f0ae;
  box-shadow: 0 0 30px var(--green-glow);
}

.btn-secondary {
  background: var(--purple);
  color: var(--text);
  border: 1px solid var(--purple-light);
}

.btn-secondary:hover { background: var(--purple-light); }

/* Terminal */
.hero-terminal {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--purple);
  text-align: left;
}

.terminal-bar {
  background: var(--purple);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-body {
  background: #0d0825;
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.8;
}

.t-prompt { color: var(--green); font-weight: 700; }
.t-tool { color: #bb86fc; }
.t-dim { color: var(--text-muted); }
.t-result { color: var(--green); }

/* Features */
.features {
  padding: 100px 0;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s ease-out;
  will-change: transform;
}

.feature-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 30px var(--green-glow);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Tools */
.tools {
  padding: 80px 0 100px;
  background: var(--bg2);
}

.tools h2 { margin-bottom: 8px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  margin-top: 48px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.tool-item:hover {
  background: rgba(45, 27, 105, 0.5);
  border-color: var(--purple);
}

.tool-name {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  min-width: 160px;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-dim);
}

/* Architecture */
.architecture {
  padding: 100px 0;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}

.arch-box {
  background: var(--bg2);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  min-width: 150px;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
}

.arch-box.highlight {
  border-color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

.arch-label {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.arch-detail {
  font-size: 12px;
  color: var(--text-dim);
}

.arch-arrow {
  padding: 0 12px;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 13px;
}

/* Install */
.install {
  padding: 100px 0;
  background: var(--bg2);
}

.steps {
  max-width: 700px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--bg);
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.step-content p {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

.step-content code {
  background: var(--purple);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--green);
}

.code-block {
  background: #0d0825;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
}

.code-block code {
  background: none;
  padding: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--purple);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-icon { width: 20px; height: 20px; border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

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

.footer-right {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social:hover { color: var(--green); }

.footer-sep { color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .arch-flow { flex-direction: column; gap: 8px; }
  .arch-arrow { transform: rotate(90deg); padding: 4px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-links a:not(.btn-nav) { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { gap: 16px; }
}
