/* === Design Tokens === */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text2: #8b949e;
  --accent: #f78166;
  --accent-hover: #ff9b80;
  --green: #3fb950;
  --green-bg: rgba(63,185,80,0.12);
  --red: #f85149;
  --red-bg: rgba(248,81,73,0.12);
  --blue: #58a6ff;
  --blue-bg: rgba(88,166,255,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --max-width: 1200px;
  --header-h: 64px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Typography === */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* === Header === */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2em;
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }

/* === Main === */
.site-main { flex: 1; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text2);
  font-size: 1.15em;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}
.btn:hover { background: var(--surface2); border-color: var(--text2); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1117;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(247,129,102,0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.85em; border-radius: 6px; }

/* === Feature Cards === */
.section { padding: 60px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text2); font-size: 1.05em; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 0.92em; }

/* === Tool Card === */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: all 0.2s;
}
.tool-card:hover { border-color: var(--accent); }
.tool-card-icon {
  font-size: 3em;
  flex-shrink: 0;
}
.tool-card-info h3 { margin-bottom: 8px; }
.tool-card-info p { color: var(--text2); margin-bottom: 16px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78em;
}

/* === How it works === */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 600px; margin: 0 auto; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 4px; }
.step-content p { color: var(--text2); font-size: 0.92em; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer p { color: var(--text2); font-size: 0.85em; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer .footer-note {
  margin-top: 8px;
  font-size: 0.8em;
  color: #484f58;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 48px 16px 36px; }
  .section { padding: 36px 16px; }
  .tool-card { flex-direction: column; text-align: center; }
  .nav-links a { padding: 6px 10px; font-size: 0.82em; }
}
