:root {
  /* Clean Minimalist Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-code: #0f172a;
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Text - High Contrast & Solid Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Accents */
  --primary: #0f172a;
  --accent-blue: #0284c7;
  --accent-green: #16a34a;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Common Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Clean Solid Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
}

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

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--border-hover);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.brand-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.brand-title {
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-menu a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 1.5rem 3rem 1.5rem;
  text-align: center;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Clean Install Box */
.hero-install-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.install-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}

.code-prompt {
  color: var(--accent-blue);
  margin-right: 0.35rem;
}

.copy-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: #e2e8f0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Mockup Frame */
.hero-mockup-frame {
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.mockup-header {
  background: #1e293b;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.mockup-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

.mockup-tab-pill {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.tab-switch {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-switch.active {
  background: #0284c7;
  color: #ffffff;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: 360px;
  background: #090a0f;
}

.mockup-canvas-area {
  position: relative;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mockup-grid-hud {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.hud-pill {
  background: rgba(20, 24, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #94a3b8;
}

.hud-pill strong {
  color: #f8fafc;
}

.canvas-nodes-demo {
  width: 100%;
  height: 100%;
  position: relative;
}

.mockup-sidebar-preview {
  background: #11141e;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.76rem;
  color: #e2e8f0;
}

.sidebar-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.sidebar-symbol-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  color: #f8fafc;
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.sidebar-file-loc {
  color: #64748b;
  font-size: 0.68rem;
  margin-bottom: 0.75rem;
}

.sidebar-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

.meta-k {
  font-size: 0.62rem;
  color: #94a3b8;
  display: block;
}

.meta-v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
}

.highlight-yellow { color: #facc15; }
.highlight-green { color: #4ade80; }

.sidebar-section-lbl {
  font-size: 0.64rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.sidebar-code-block, .sidebar-doc-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-code-block {
  font-family: var(--font-mono);
  color: #38bdf8;
  white-space: pre-wrap;
}

.sidebar-doc-block {
  color: #cbd5e1;
}

/* Metrics Bar */
.metrics-bar {
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.metrics-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Common Section Styles */
.features-section, .compare-section, .mcp-section, .quickstart-section, .cta-banner-section {
  padding: 4.5rem 1.5rem;
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon-blue { color: #0284c7; }
.feature-icon-purple { color: #7c3aed; }
.feature-icon-green { color: #16a34a; }
.feature-icon-yellow { color: #d97706; }

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.feature-list li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  margin-right: 0.45rem;
}

/* Comparison Table */
.compare-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.compare-table th, .compare-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.82rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: #f8fafc;
  font-weight: 600;
}

.good { color: #15803d; font-weight: 600; }
.poor { color: #b45309; }
.bad { color: #dc2626; }
.neutral { color: var(--text-muted); }

/* MCP Tools Grid */
.mcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mcp-tool-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s ease;
}

.mcp-tool-pill:hover {
  border-color: var(--border-hover);
}

.mcp-tool-pill code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 700;
}

.mcp-tool-pill span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Quickstart Tabs */
.code-tabs-box {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.code-tabs-header {
  display: flex;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.code-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.code-tab.active {
  color: #ffffff;
  border-bottom-color: #38bdf8;
  background: rgba(255, 255, 255, 0.03);
}

.code-tab-content {
  display: none;
  padding: 1.25rem;
}

.code-tab-content.active {
  display: block;
}

.code-snippet-title {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.code-block {
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #f1f5f9;
  overflow-x: auto;
}

/* CTA Banner */
.cta-banner-container {
  max-width: 800px;
  margin: 0 auto;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-banner-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.cta-banner-subtitle {
  color: #94a3b8;
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-banner-actions .btn-primary {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.cta-banner-actions .btn-primary:hover {
  background: #f1f5f9;
}

.cta-banner-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-banner-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  background: #ffffff;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.footer-links-group {
  display: flex;
  gap: 3.5rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet Screens (<= 960px) */
@media (max-width: 960px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .mockup-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .mockup-canvas-area {
    height: 260px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .mcp-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .site-header {
    padding: 0.25rem 0;
  }

  .header-container {
    padding: 0.6rem 1rem;
  }

  .hero-section {
    padding: 3rem 1rem 2rem 1rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-install-box {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    margin-bottom: 1.5rem;
  }

  .install-code {
    font-size: 0.8rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }

  .section-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.86rem;
    margin-bottom: 2rem;
  }

  .features-section, .compare-section, .mcp-section, .quickstart-section, .cta-banner-section {
    padding: 3rem 1rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-title {
    font-size: 1.05rem;
  }

  .feature-desc {
    font-size: 0.82rem;
  }

  .mcp-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .mcp-tool-pill {
    padding: 0.75rem 0.85rem;
  }

  .metrics-bar {
    padding: 2rem 1rem;
  }

  .metrics-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .compare-table th, .compare-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
  }

  .cta-banner-container {
    padding: 2.5rem 1.25rem;
  }

  .cta-banner-title {
    font-size: 1.4rem;
  }

  .cta-banner-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }

  .footer-links-group {
    gap: 2rem;
    flex-direction: column;
  }

  .site-footer {
    padding: 2.5rem 1rem 1.5rem 1rem;
  }
}
