:root {
  --bg-dark: #0a0c10;
  --bg-card: rgba(255, 255, 255, 0.03);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(12px);
}

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

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

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

/* Navbar */
nav {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.github-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.github-link:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 5rem 0 8rem;
  text-align: center;
}

h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Terminal Mockup */
.terminal-window {
  max-width: 850px;
  margin: 0 auto;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  overflow: hidden;
}

.terminal-header {
  height: 44px;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-content {
  background: #0d1117;
}

.terminal-content img {
  width: 100%;
  display: block;
}

/* Features */
.features {
  padding: 6rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-card h3 i {
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
}

/* OS Support */
.os-support {
  padding: 2rem 0 6rem;
  text-align: center;
}

.os-support h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.os-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.os-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.os-item i {
  width: 20px;
  height: 20px;
}

/* Architecture */
.architecture {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.architecture h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.flow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.flow-step {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-5px);
}

.flow-step span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.flow-step.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}

.flow-step.active span {
  color: var(--text-main);
}

.step-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.flow-step:hover .step-icon {
  transform: scale(1.1);
}

.arrow {
  color: var(--border);
  display: flex;
  align-items: center;
}

/* Node Details Styling */
.node-details-container {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  animation: detailsFadeIn 0.5s forwards;
}

@keyframes detailsFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.node-info-box {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  text-align: left;
}

.node-info-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-info-box p {
  color: var(--text-muted);
  line-height: 1.7;
}

.node-info-box code {
  color: var(--accent);
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Install Section */
.install-section {
  padding: 6rem 0;
  text-align: center;
}

.install-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.install-content {
  margin-top: 2.5rem;
  text-align: left;
}

.platform-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.platform-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-method {
  margin-bottom: 2rem;
}

.install-method h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.command-box {
  background: #000;
  padding: 1.25rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.command-box code {
  color: var(--accent);
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--text-main);
}

.install-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.install-footer p {
  margin-bottom: 0.5rem;
}

.install-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.install-footer a:hover {
  text-decoration: underline;
}

.secondary-info {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .hero { padding: 3rem 0; }
  .install-container { padding: 1.5rem; }
}
