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

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #111111;
  --surface:   #1a1a1a;
  --surface-2: #222222;
  --border:    #2a2a2a;
  --border-h:  #3a3a3a;
  --text:      #e5e5e5;
  --text-2:    #a0a0a0;
  --text-3:    #666666;
  --accent:    #00e599;
  --accent-2:  #00cc88;
  --accent-dim:#00e59920;
  --radius:    12px;
  --radius-sm: 8px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }

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

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

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

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

.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-links svg { display: block; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Install Tabs (Hero) ─────────────────────────────────────── */
.install-tabs {
  display: inline-block;
  text-align: left;
}

.install-tab-bar, .code-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.install-tab, .code-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.install-tab:hover, .code-tab:hover { color: var(--text-2); }

.install-tab.active, .code-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.install-panel, .code-panel { display: none; }
.install-panel.active, .code-panel.active { display: block; }

.install-panel {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-width: 340px;
}

.install-panel.active { display: flex; }

.install-panel code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}

.copy-btn:hover { color: var(--text); background: var(--surface-2); }

.copy-btn.copied { color: var(--accent); }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

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

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

.section-sub {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 520px;
}

/* ── Code Card ───────────────────────────────────────────────── */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-tab-bar {
  padding: 0 4px;
  background: var(--bg);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.code-filename {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}

.code-panel pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.code-panel code {
  font-family: inherit;
}

/* Syntax highlighting */
.kw { color: #c678dd; }
.str { color: #98c379; }
.num { color: #d19a66; }
.cmt { color: #5c6370; font-style: italic; }
.fn { color: #61afef; }
.attr { color: #e5c07b; }

/* ── Architecture Visual ─────────────────────────────────────── */
.arch-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.arch-api-layer {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-label-lang {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.arch-label-sep {
  color: var(--text-3);
  font-size: 18px;
}

.arch-binding {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 4px;
}

.arch-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.arch-core {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 24px;
  width: 100%;
  max-width: 520px;
}

.arch-core-title {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}

.arch-core-title span {
  font-weight: 400;
  color: var(--text-3);
  font-size: 13px;
  margin-left: 4px;
}

.arch-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.arch-mod {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.arch-mod:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

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

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ── Providers ───────────────────────────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.provider-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.provider-item.supported { color: var(--text); }

.check::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.provider-item.planned {
  color: var(--text-3);
}

.planned-dot::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-3);
  flex-shrink: 0;
}

.planned-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  opacity: 0.7;
}

.provider-note {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 4px;
}

/* ── Bindings ────────────────────────────────────────────────── */
.bindings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.binding-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
  color: var(--text);
}

.binding-card:hover { border-color: var(--accent); opacity: 1; }

.binding-card.planned { opacity: 0.5; cursor: default; }
.binding-card.planned:hover { border-color: var(--border); }

.binding-lang {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.binding-pkg {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.binding-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-3);
}

.binding-status.available {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 14px;
}


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

.footer-links a {
  color: var(--text-3);
  font-size: 14px;
}

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

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid, .provider-grid {
    grid-template-columns: 1fr;
  }

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

  .hero { padding: 120px 0 60px; }

  .section { padding: 64px 0; }

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

  .install-panel { min-width: auto; }

  .footer-inner { flex-direction: column; gap: 16px; }
}

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

  .hero-sub { font-size: 16px; }

  .code-panel pre { padding: 16px; font-size: 12px; }
}
