/* === Tokens === */
:root {
  --purple: #a855f7;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, #a855f7, #6366f1, #22d3ee);
  --gradient-subtle: linear-gradient(135deg, #faf8ff 0%, #f0f0ff 40%, #eef9fc 100%);

  --text-primary: #1e1b4b;
  --text-body: #4c4676;
  --text-muted: #78738c;

  --bg-white: #ffffff;
  --bg-light: #faf8ff;
  --bg-alt: #f5f3ff;
  --bg-dark: #0f0f23;

  --border: #e9e5f5;
  --border-light: #f0edf8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 15, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 15, 35, 0.08);
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.65;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo img {
  width: 32px;
  height: auto;
}

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

.nav-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; }

/* === Hero === */
.hero {
  padding: 80px 0 100px;
  background: var(--gradient-subtle);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--purple);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
}

.prose p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* === Callout === */
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--purple);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 20px;
}

.callout p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--purple);
}

.feature p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* === MCP Block === */
.mcp-block {
  background: var(--bg-dark);
  color: #e2e0ef;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88rem;
  line-height: 2.2;
  margin-top: 24px;
  overflow-x: auto;
}

.mcp-block code {
  color: var(--cyan);
  background: none;
  padding: 0;
  border-radius: 0;
}

/* === Check List === */
.check-list {
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.check-list li {
  padding: 10px 0 10px 32px;
  font-size: 1.05rem;
  color: var(--text-body);
  position: relative;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

/* === Page Header (sub-pages) === */
.page-header {
  padding: 48px 0;
  background: var(--gradient-subtle);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-body);
  font-size: 1rem;
}

/* === Content (sub-pages) === */
.content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.content p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
}

.content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.content ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-body);
  font-size: 1rem;
}

.content ul li::before {
  content: "\2022";
  position: absolute;
  left: 8px;
  color: var(--purple);
  font-weight: 700;
}

.content strong {
  color: var(--text-primary);
}

.content a {
  color: var(--purple);
}

/* === Footer === */
.footer {
  padding: 48px 0;
  background: var(--bg-dark);
  color: #9e9aaf;
}

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

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

.footer-logo img {
  width: 28px;
  height: auto;
}

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

.footer-links a {
  color: #9e9aaf;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* === Mobile === */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 72px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .mcp-block {
    padding: 20px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .features {
    gap: 16px;
  }

  .feature {
    padding: 22px;
  }
}
