:root {
  --bg: #0b1020;
  --panel: #111a2e;
  --panel2: #15213a;
  --text: #eef4ff;
  --muted: #a9b6cc;
  --line: rgba(255,255,255,.12);
  --accent: #58d68d;
  --accent2: #65a7ff;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(101,167,255,.2), transparent 32rem),
    radial-gradient(circle at top right, rgba(88,214,141,.15), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-header nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--text);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 18px 70px;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,26,46,.92), rgba(21,33,58,.72));
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: .95;
  letter-spacing: -0.07em;
  max-width: 850px;
  margin: 0;
}

.lead {
  max-width: 760px;
  font-size: 19px;
  color: var(--muted);
  margin: 24px 0;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.btn.primary {
  background: var(--accent);
  color: #06110a;
}

.btn.secondary {
  background: rgba(255,255,255,.06);
}

.notice {
  border: 1px solid rgba(88,214,141,.35);
  background: rgba(88,214,141,.08);
  color: #cdf8dc;
  border-radius: 18px;
  padding: 14px 16px;
  max-width: 760px;
}

.grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 20px;
}

.grid h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 26px 18px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    padding: 28px;
  }

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

.section-block {
  margin-top: 34px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.055em;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card,
.card-like,
.command-step,
.prose-block {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 20px;
}

.tool-card h3,
.command-step h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.tool-card p,
.command-step p,
.prose-block p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  border: 1px solid rgba(88,214,141,.35);
  background: rgba(88,214,141,.08);
  color: #cdf8dc;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.mini {
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
}

.builder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.builder-panel,
.builder-main {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 24px;
  padding: 22px;
}

.builder-summary {
  margin-top: 18px;
}

.builder-summary h3 {
  font-size: 24px;
  margin: 12px 0 8px;
}

.command-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.command-check input {
  width: auto;
  margin-top: 6px;
}

.command-check small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #050914;
  border-radius: 16px;
  padding: 14px;
  color: #d9e7ff;
}

.generated-box {
  margin-top: 18px;
}

.generated-box textarea {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  background: #050914;
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .builder-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.notice.success {
  border: 1px solid rgba(88,214,141,.35);
  background: rgba(88,214,141,.08);
  color: #cdf8dc;
}

.notice.error {
  border: 1px solid rgba(255,107,107,.35);
  background: rgba(255,107,107,.08);
  color: #ffd4d4;
}

.example-command {
  margin: 5px 5px 5px 0;
}

.article-body {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-content {
  margin-top: 26px;
  color: var(--text);
  font-size: 17px;
}

.article-content h2,
.article-content h3 {
  letter-spacing: -0.04em;
  margin-top: 28px;
}

.article-content p,
.article-content li {
  color: var(--muted);
}

.article-content a {
  color: var(--accent2);
  text-decoration: underline;
}

.article-content code {
  background: #050914;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 10px;
}
