:root {
  --red: #e63946;
  --red-dark: #c22834;
  --ink: #111114;
  --gray-600: #5b5b63;
  --gray-300: #d8d8dd;
  --gray-100: #f5f5f7;
  --white: #ffffff;
  --radius: 16px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-ghost {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--gray-100);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 90px;
  text-align: center;
  background-image:
    radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center top;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(230, 57, 70, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 28px;
  border-radius: 32px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  box-shadow: 0 20px 50px rgba(17, 17, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 84px;
  height: 84px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.hero .badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

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

.scroll-cue {
  margin-top: 64px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.section {
  padding: 90px 24px;
}

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

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.6;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 17, 20, 0.08);
  border-color: var(--red);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* CTA band */
.cta-band {
  padding: 80px 24px;
  text-align: center;
  background: var(--ink);
  color: var(--white);
}

.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 14px;
}

.cta-band p {
  color: #b9b9c0;
  margin: 0 0 30px;
}

.cta-band .btn-primary {
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.45);
}

/* Footer */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--gray-300);
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

.footer .brand {
  justify-content: center;
  margin-bottom: 10px;
  color: var(--ink);
}

.footer img {
  width: 22px;
  height: 22px;
}

/* Documentation page */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.docs-sidebar a:hover {
  background: var(--gray-100);
  color: var(--ink);
}

.docs-header {
  margin-bottom: 40px;
}

.docs-header h1 {
  font-family: var(--font-head);
  font-size: 40px;
  margin: 0 0 10px;
}

.docs-header p {
  color: var(--gray-600);
  font-size: 16px;
}

.docs-module {
  margin-bottom: 56px;
  scroll-margin-top: 96px;
}

.docs-module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 6px;
}

.docs-module-title .feature-icon {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-radius: 9px;
  margin-bottom: 0;
}

.docs-module-desc {
  color: var(--gray-600);
  font-size: 14.5px;
  margin: 0 0 22px;
}

.command-card {
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.command-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.command-name {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
}

.command-perm {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 3px 9px;
  border-radius: 999px;
}

.command-desc {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.command-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chip {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--gray-600);
}

.option-chip b {
  color: var(--ink);
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    top: auto;
  }
}
