:root {
  --bg: #080b16;
  --bg-soft: #11172a;
  --text: #e6ecff;
  --muted: #b5c0e3;
  --brand: #7aa2ff;
  --brand-2: #66e0c2;
  --card: #121a30;
  --border: #243153;
}

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

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1a2a4e 0%, var(--bg) 50%);
  line-height: 1.6;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 3px;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #04101d;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
}

.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #050810;
  font-weight: 800;
}

.menu {
  display: inline-flex;
  gap: 1rem;
}

.menu a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.menu a:hover {
  color: var(--text);
}
.menu a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.menu a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.hero {
  padding: 5.5rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

h3 {
  margin-top: 0;
}

.hero-copy {
  max-width: 65ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #04101d;
}

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

.meta {
  color: var(--muted);
  margin-top: 1rem;
}

.section {
  padding: 2.4rem 0;
}

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

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

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

.card,
.shot {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 84%, #02030a);
  padding: 1.1rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--card) 90%, #02030a);
  transform: translateY(-2px);
}

.shot {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.download-card {
  padding: 1.6rem;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.download-header h2 {
  margin: 0;
}

.release-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}

.release-date {
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}

.release-details {
  color: var(--muted);
  padding-left: 1.2rem;
  margin: 0 0 1.4rem;
}

.release-details li {
  margin-bottom: 0.3rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.step-card {
  position: relative;
  padding-top: 1.4rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #04101d;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-size: 0.9em;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brand-2);
  font-size: 0.9rem;
}

.docs-content {
  max-width: 100%;
}

.docs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.docs-nav-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-nav-btn:hover {
  background: var(--card);
  border-color: var(--brand);
}

.docs-nav-btn.active {
  background: var(--brand);
  color: #04101d;
  border-color: var(--brand);
}

.docs-container {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 84%, #02030a);
  padding: 1.5rem;
  min-height: 400px;
}

.docs-container .loading {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.docs-container h1,
.docs-container h2,
.docs-container h3,
.docs-container h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.docs-container h1 {
  font-size: 2rem;
  margin-top: 0;
}

.docs-container h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.docs-container h3 {
  font-size: 1.25rem;
}

.docs-container p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.docs-container ul,
.docs-container ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-container li {
  margin-bottom: 0.5rem;
}

.docs-container code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.docs-container pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.docs-container pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
}

.docs-container blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--muted);
  font-style: italic;
}

.docs-container a {
  color: var(--brand-2);
  text-decoration: underline;
}

.docs-container a:hover {
  text-decoration: none;
}

.docs-container .error {
  text-align: center;
  color: #ff6b6b;
  font-style: italic;
  padding: 2rem;
}

@media (max-width: 860px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    right: 4vw;
    top: 72px;
    width: min(240px, 92vw);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem;
    flex-direction: column;
  }

  .menu[data-open="true"] {
    display: flex;
  }

  .menu a {
    padding: 0.5rem 0.75rem;
  }
}
