:root {
  --bg: #0b0f14;
  --bg-elev: #111722;
  --bg-card: #151d2b;
  --border: #233044;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --accent: #4f8cff;
  --accent-strong: #6aa1ff;
  --green: #3fb950;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 120% at 80% -20%, rgba(79, 140, 255, 0.25), transparent),
    radial-gradient(50% 100% at 10% 110%, rgba(63, 185, 80, 0.12), transparent),
    var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px 72px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-card);
}

/* Layout */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

section p {
  color: var(--text-dim);
  margin-bottom: 14px;
}

code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.92em;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
}

/* Feature grid */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.feature-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-grid span:last-child {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Capabilities */
.capability-list {
  list-style: none;
  margin-top: 8px;
}

.capability-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.capability-name {
  font-weight: 600;
  color: var(--text);
}

.capability-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Commands */
.command-examples {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.command-examples code {
  background: var(--bg-card);
  color: var(--green);
}

/* Address box */
.address-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 8px;
}

.address-box code {
  font-size: 1.15rem;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
}

.address-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Budget cards */
.budget-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.budget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-amount {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.budget-period {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 8px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 56px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* Dialog */
.talk {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.95rem;
}

.talk .say {
  color: var(--text);
}

.talk .user,
.talk .bot {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
}

.talk .user {
  background: rgba(79, 140, 255, 0.15);
  color: var(--accent-strong);
}

.talk .bot {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

/* Command tables */
.table-heading {
  font-size: 1.05rem;
  margin: 28px 0 12px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

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

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
  background: rgba(79, 140, 255, 0.06);
}

.data-table code {
  white-space: nowrap;
  background: var(--bg-elev);
  color: var(--green);
}

/* FAQ accordion */
.faq {
  margin-top: 10px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "▾";
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq details[open] summary {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.faq .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq .faq-body > div {
  overflow: hidden;
}

.faq details[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq .faq-body p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 560px) {
  .hero {
    padding: 64px 20px 48px;
  }

  .steps li {
    padding-left: 48px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
}
