:root {
  color-scheme: dark;
  --bg: #060817;
  --bg-accent: radial-gradient(circle at top, rgba(88, 130, 255, 0.22), transparent 55%), #060817;
  --surface: rgba(14, 19, 40, 0.78);
  --surface-strong: rgba(19, 27, 56, 0.92);
  --border: rgba(120, 137, 255, 0.25);
  --text: #f1f5ff;
  --muted: rgba(202, 210, 255, 0.78);
  --accent: #7bdcff;
  --accent-strong: #37b5ff;
  --accent-soft: rgba(123, 220, 255, 0.12);
  --shadow: 0 20px 45px rgba(6, 8, 23, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-accent);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

.section-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 5vw, 2.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 8, 23, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.primary-nav .cta {
  background: linear-gradient(120deg, #46bdf0, #7bdcff);
  color: #041126;
  font-weight: 600;
  padding: 0.45rem 1.05rem;
  box-shadow: 0 12px 24px rgba(70, 189, 240, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-nav .cta:hover,
.primary-nav .cta:focus-visible {
  color: #041126;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70, 189, 240, 0.3);
}

.hero {
  padding: clamp(4rem, 12vw, 6.5rem) 0;
  background: radial-gradient(circle at 20% -10%, rgba(123, 220, 255, 0.35), transparent 55%),
              radial-gradient(circle at 90% 0%, rgba(102, 84, 255, 0.25), transparent 50%);
}

.hero .section-inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero .section-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(102, 84, 255, 0.22);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin: 1rem 0;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #46bdf0, #7bdcff);
  color: #041126;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(70, 189, 240, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(70, 189, 240, 0.35);
}

.btn.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  box-shadow: none;
}

.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.hero-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(14, 19, 40, 0.65);
  border: 1px solid rgba(123, 220, 255, 0.18);
}

.metric .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.metric .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(123, 220, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(123, 220, 255, 0.16);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-list li {
  background: rgba(123, 220, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(123, 220, 255, 0.18);
  color: var(--text);
  font-size: 0.95rem;
}

.hero-list strong {
  color: var(--accent);
  font-weight: 600;
}

.section-light {
  background: rgba(11, 15, 31, 0.72);
  backdrop-filter: blur(12px);
}

.section-dark {
  background: transparent;
}

.section-light + .section-light,
.section-dark + .section-dark {
  border-top: 1px solid rgba(120, 137, 255, 0.15);
}

.section-light .section-inner,
.section-dark .section-inner {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.section-light h2,
.section-dark h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.feature-grid,
.design-grid,
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid,
  .design-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

.feature-card,
.design-card,
.stat-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(123, 220, 255, 0.18);
  box-shadow: 0 16px 28px rgba(6, 8, 23, 0.48);
}

.feature-card h3,
.design-card h3,
.stat-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--text);
}

.feature-card p,
.design-card p,
.stat-card p {
  margin: 0;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq {
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: rgba(123, 220, 255, 0.08);
  border: 1px solid rgba(123, 220, 255, 0.16);
  color: var(--muted);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq[open] {
  background: rgba(123, 220, 255, 0.12);
}

.design-grid {
  margin-top: 2rem;
}

.doc-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

.doc-steps {
  counter-reset: doc-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.doc-steps li {
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(123, 220, 255, 0.16);
  position: relative;
}

.doc-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.doc-steps p {
  margin: 0;
  color: var(--muted);
}

.doc-side {
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(123, 220, 255, 0.08);
  border: 1px solid rgba(123, 220, 255, 0.18);
  box-shadow: 0 12px 24px rgba(6, 8, 23, 0.4);
}

.doc-side h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.doc-side ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc-side a {
  color: var(--text);
}

.doc-side a:hover {
  color: var(--accent);
}

.guide-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.code-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 960px) {
  .code-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.code-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(123, 220, 255, 0.18);
  box-shadow: 0 18px 30px rgba(6, 8, 23, 0.5);
  padding: 1.4rem 1.6rem;
}

.code-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

pre {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f5f7ff;
  background: rgba(7, 10, 24, 0.9);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(123, 220, 255, 0.2);
  overflow-x: auto;
}

pre code {
  display: block;
  font-family: inherit;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  white-space: pre;
}

.bulleted {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.bulleted li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.55rem;
}

.blog-hero {
  padding: clamp(3rem, 10vw, 5rem) 0 clamp(2rem, 8vw, 3.5rem);
  background: radial-gradient(circle at 30% -10%, rgba(123, 220, 255, 0.2), transparent 55%);
}

.blog-hero .section-inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 760px;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.blog-hero p {
  margin: 0;
  color: var(--muted);
}

.blog-list {
  padding: 0 0 clamp(3rem, 9vw, 5rem);
}

.blog-list .section-inner {
  display: grid;
  gap: 1.6rem;
}

.blog-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  border: 1px solid rgba(123, 220, 255, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: 0 18px 32px rgba(6, 8, 23, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(123, 220, 255, 0.35);
}

.blog-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--text);
}

.blog-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card .blog-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(202, 210, 255, 0.7);
  margin-bottom: 1rem;
}

.blog-card .blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card a {
  font-weight: 600;
  color: var(--accent);
}

.blog-article {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(3.5rem, 10vw, 6rem);
}

.blog-article .section-inner {
  max-width: 760px;
}

.blog-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.blog-article .blog-article-meta {
  color: rgba(202, 210, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-article h2,
.blog-article h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.blog-article p {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.blog-article pre {
  margin: 2rem 0;
}

.blog-article code {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", ui-monospace, monospace;
}

.blog-article ol,
.blog-article ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.blog-article li + li {
  margin-top: 0.6rem;
}

.next {
  color: var(--muted);
  margin-top: 1.5rem;
}

.cta-line {
  margin-top: 2rem;
  color: var(--muted);
}

.cta-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(140deg, rgba(123, 220, 255, 0.25), rgba(102, 84, 255, 0.25));
  text-align: center;
}

.cta-section .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.cta-section p {
  max-width: 42rem;
  margin: 1rem auto 2rem;
  color: var(--muted);
}
.docs-hero {
  background: rgba(11, 15, 31, 0.9);
  border-bottom: 1px solid rgba(123, 220, 255, 0.16);
}

.docs-content {
  background: rgba(6, 8, 23, 0.92);
}

.docs-content .section-inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
}

@media (min-width: 960px) {
  .docs-content .section-inner {
    grid-template-columns: 0.4fr 1fr;
  }
}

.docs-toc {
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(14, 19, 40, 0.82);
  border: 1px solid rgba(123, 220, 255, 0.2);
  position: sticky;
  top: 6rem;
  height: fit-content;
}

.docs-toc h2 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-toc ol {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.docs-toc a {
  color: var(--text);
  font-size: 0.95rem;
}

.docs-toc a:hover {
  color: var(--accent);
}

.docs-body {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.docs-body section h2 {
  margin-top: 0;
}

.callout {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(123, 220, 255, 0.08);
  border: 1px solid rgba(123, 220, 255, 0.2);
  color: var(--muted);
}

.component-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .component-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.component-card {
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: rgba(14, 19, 40, 0.85);
  border: 1px solid rgba(123, 220, 255, 0.18);
  box-shadow: 0 16px 30px rgba(6, 8, 23, 0.45);
}

.component-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--text);
}

.component-card p {
  margin: 0;
  color: var(--muted);
}

.numbered {
  counter-reset: item;
  margin: 1rem 0;
  padding-left: 0;
  display: grid;
  gap: 1rem;
}

.numbered > li {
  list-style: none;
  padding-left: 3.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.numbered > li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .docs-content .section-inner {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
  }
}

.site-footer {
  border-top: 1px solid rgba(120, 137, 255, 0.18);
  background: rgba(6, 8, 23, 0.92);
}

.site-footer p {
  margin: 0;
  color: rgba(202, 210, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 600px) {
  .primary-nav {
    justify-content: flex-start;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .btn,
  .btn.btn-outline {
    width: 100%;
  }
}
