:root {
  --bg: #09090b;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --border: #27272a;
  --card: #18181b;
  --primary: #00d4aa;
  --primary-hover: #00e5c0;
  --primary-fg: #09090b;
  --gradient-1: #00d4aa;
  --gradient-2: #3b82f6;
  --radius: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

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

/* ══════════════════ NAV ══════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

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

/* ══════════════════ HERO ══════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  gap: 8px;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #27272a;
  color: var(--fg);
}

/* Terminal */
.hero-terminal {
  width: 100%;
  max-width: 640px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.terminal-header {
  height: 36px;
  background: #18181b;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: relative;
}

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

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

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-sans);
}

.terminal-body {
  padding: 20px;
  min-height: 120px;
}

.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.terminal-prompt {
  color: var(--primary);
  user-select: none;
}

.terminal-cursor {
  color: var(--fg);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-output {
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  margin-top: 12px;
}

.terminal-success {
  color: #27c93f;
  margin-right: 8px;
}

.hidden {
  display: none !important;
}

/* ══════════════════ CLIENTS ══════════════════ */
.clients {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #111113;
  text-align: center;
}

.clients-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-item {
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
}

/* ══════════════════ FEATURES ══════════════════ */
.features {
  padding: 120px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #3f3f46;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

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

/* ══════════════════ TOOLS ══════════════════ */
.tools-section {
  padding: 120px 0;
  background: #111113;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.tool-group-title {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.tool-item:last-child {
  border-bottom: none;
}

.tool-item code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-item span {
  font-size: 13px;
  color: var(--muted);
}

/* ══════════════════ SETUP ══════════════════ */
.setup-section {
  padding: 120px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

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

.step-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  margin-top: 6px;
}

.step-content p {
  color: var(--muted);
  font-size: 15px;
}

.step-content a {
  color: var(--primary);
  text-decoration: underline;
}

.step-code {
  background: #000;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-small {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.copy-small:hover {
  color: var(--fg);
}

/* Tabs */
.config-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.tab-btn {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.02);
}

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

.tab-content {
  padding: 24px;
}

.config-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.tab-content pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e4e4e7;
  overflow-x: auto;
}

/* ══════════════════ FOOTER ══════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-weight: 600;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-right a {
  color: var(--muted);
  font-size: 14px;
}

.footer-right a:hover {
  color: var(--fg);
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-github) { display: none; }
  .step { flex-direction: column; gap: 12px; }
}
