:root {
  --bg: #000000;
  --panel: #0e0e0e;
  --panel-soft: #121212;
  --text: #ffffff;
  --muted: #d3d3d3;
  --primary: #ffffff;
  --primary-strong: #d6d6d6;
  --border: #2a2a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: url("assets/img/bggrad.png");
  background-attachment: fixed;
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn:focus-visible {
  color: #000000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #000000;
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-small {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.block {
  width: 100%;
}

.hero {
  padding: 80px 0 55px;
}

.docs-hero {
  padding-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  max-width: 67ch;
}

.hero-cta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pricing-card {
  background: linear-gradient(180deg, var(--panel) 0%, #050505 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  align-self: start;
}

.pricing-card h2 {
  margin-top: 0.3rem;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
}

.pricing-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

section {
  padding: 28px 0 58px;
}

section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.story p {
  color: var(--muted);
  max-width: 80ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.feature h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list article {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.faq-list h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.04rem;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

.docs-section {
  padding-top: 18px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.docs-card {
  min-height: 140px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 36px;
  background: #000000;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rainbow-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  width: 100%;
  z-index: 50;
  pointer-events: none;
  background-image: url("assets/img/bggrad.png");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: cover;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .nav {
    gap: 0.7rem;
  }

  .nav a:not(.btn-small) {
    display: none;
  }

  .feature-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

