:root {
  color-scheme: dark;
  --bg: #0f1116;
  --panel: #161a22;
  --panel-soft: #1f2532;
  --border: #2e3144;
  --accent: #46b9ff;
  --accent-soft: rgba(70, 185, 255, 0.2);
  --text: #f8fbff;
  --muted: #c8d0e8;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
}

.hero {
  padding: 2.5rem clamp(1rem, 4vw, 4rem) 3rem;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}


.logo {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--muted);
  margin-left: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.hero--stacked {
  padding-bottom: 1rem;
}

.hero__grid--stacked {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__panel--stacked {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__grid h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero__grid p {
  color: var(--muted);
  line-height: 1.6;
}

.hero__meta {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero__meta__small {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero__actions {
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  margin-right: 0.75rem;
}

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

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

.hero__panel--stacked {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.panel__header {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted);
}

.hero__list li {
  line-height: 1.4;
}

.panel__footer {
  color: var(--muted);
  font-size: 0.8rem;
}

section {
  padding: 3rem clamp(1rem, 4vw, 4rem);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

section p {
  color: var(--muted);
  line-height: 1.6;
}

.features .feature-grid,
.commands .commands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.features article,
.commands article,
.help article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.features article h3,
.commands article h3,
.help article h3 {
  margin-top: 0;
}

.integration {
  background: var(--panel-soft);
  border-top: 1px solid var(--border);
}

.integration__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.integration__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration__stats div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--panel);
}

.integration__stats span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.integration__stats strong {
  font-size: 1.1rem;
}

.legal {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legal article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal a.btn {
  align-self: flex-start;
}

.help {
  border-top: 1px solid var(--border);
}

.help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .panel__row {
    flex-direction: column;
    gap: 0.25rem;
  }
}
