:root {
  --bg: #0b0f14;
  --bg-alt: #0f151d;
  --surface: #131b25;
  --surface-2: #18222e;
  --border: #23303f;
  --text: #e6edf5;
  --text-dim: #9fb0c3;
  --accent: #35d07f;
  --accent-2: #1fa463;
  --accent-soft: rgba(53, 208, 127, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: #c8f5dd;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Language switch (ID/EN) ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--accent);
  color: #06210f;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06210f;
  font-weight: 800;
  font-size: 15px;
}
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}
.footer-brand .brand-logo { height: 36px; }
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover { background: #43e08d; }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(53, 208, 127, 0.16), transparent 65%),
    radial-gradient(700px 380px at 90% 20%, rgba(31, 164, 99, 0.10), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 860px; }
.badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12.5px;
  font-family: var(--mono);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  margin: 0 0 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}
.hero-points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.hero-points strong { display: block; margin-bottom: 6px; color: var(--accent); }
.hero-points span { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}
.section h2 { margin-top: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 17px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-2);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Terminal / code blocks ---------- */
pre {
  background: #05080c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #cfe3f5;
  margin: 0 0 16px;
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.term .prompt { color: var(--accent); user-select: none; }
.term .ok { color: var(--accent); }
.term .cmt { color: #6b8299; }
.tree code { white-space: pre; }
.flow { margin-top: 40px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td code { white-space: nowrap; }

/* ---------- Notes & lists ---------- */
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.plain { list-style: none; padding: 0; margin: 0 0 18px; }
.plain li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.plain li:last-child { border-bottom: none; }
.plain li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--text-dim); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(53, 208, 127, 0.14), transparent 70%);
}
.cta h2 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.01em; margin: 0 0 14px; }
.cta p { color: var(--text-dim); font-size: 17px; margin: 0 0 28px; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 52px 0 40px;
  background: #05080c;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-brand .brand-name { font-weight: 700; }
.footer-brand .footer-org { color: var(--text); font-weight: 600; }
.footer-brand p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.footer-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-dim); }
.footer-cols a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-points, .steps, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
}
