:root {
  --bg: #0a0a0a;
  --bg-elevated: #151515;
  --text: #e0e0e0;
  --text-muted: #b3b3b3;
  --accent: #ff5b2e;
  --border: #2b2b2b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top right, #1a1a1a 0%, var(--bg) 48%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  margin: 0 auto;
  max-width: var(--max-content-width);
  padding: 0 1rem;
}

.section {
  padding: 3.5rem 0;
}

.text-muted {
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #1e1e1e 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.btn {
  align-items: center;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #090909;
  display: inline-flex;
  font-weight: 700;
  gap: 0.4rem;
  padding: 0.68rem 1rem;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.site-header {
  backdrop-filter: blur(12px);
  background: rgb(10 10 10 / 88%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo img {
  height: auto;
  width: 152px;
}

.hero {
  padding-top: 4.5rem;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1.4rem;
  width: min(240px, 60vw);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.hero .subtitle {
  margin: 0 auto;
  max-width: 65ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.local-intro {
  margin: 1.4rem auto 0;
  max-width: 68ch;
  text-align: left;
}

.features-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.feature-card {
  color: inherit;
  text-decoration: none;
}

.feature-card:hover {
  border-color: #4a4a4a;
}

.feature-icon {
  align-items: center;
  background: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  margin-bottom: 0.7rem;
  width: 2rem;
}

.install-wrap {
  display: grid;
  gap: 1rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-button {
  background: #171717;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0.48rem 0.9rem;
}

.tab-button[aria-selected="true"] {
  background: #222;
  border-color: var(--accent);
}

.code-card {
  padding: 0;
  overflow: hidden;
}

.code-top {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
}

.copy-btn {
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
}

code {
  color: #ffcfae;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
}

.integrations-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.integration-item {
  align-items: center;
  background: #171717;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.7rem;
  text-align: center;
}

.integration-item img {
  border-radius: 8px;
  height: 34px;
  width: 34px;
}

.integration-item span {
  font-size: 0.82rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.inline-links a {
  color: var(--text);
}

.testimonials-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.testimonial-head {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.testimonial-head img {
  border-radius: 999px;
  height: 48px;
  width: 48px;
}

.testimonial-handle {
  color: var(--text-muted);
  text-decoration: none;
}

.press-grid,
.community-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.community-card {
  text-decoration: none;
}

.community-card h3 {
  font-size: 1rem;
}

.contact-card {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.6rem 0;
}

.site-footer__links,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer__links a,
.site-footer__social a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__social a:hover {
  color: var(--text);
}

.site-footer p {
  margin-bottom: 0.6rem;
}

@media (width >= 700px) {
  .section {
    padding: 4.4rem 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integrations-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .testimonials-grid,
  .press-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .integrations-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
