:root {
  --bg: #0d0d0f;
  --bg-alt: #131315;
  --text: #f0f0f2;
  --text-muted: #878790;
  --accent: #e07b39;
  --accent-soft: rgba(224, 123, 57, 0.12);
  --line: rgba(240, 240, 242, 0.08);
  --card: #111113;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Syne", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 15, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 150ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-has-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: "Syne", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 150ms ease;
  line-height: inherit;
}

.nav-dropdown-trigger:focus,
.nav-dropdown-trigger:focus-visible {
  outline: none;
  box-shadow: none;
}

.nav-dropdown-trigger:hover,
.nav-has-dropdown:hover .nav-dropdown-trigger,
.nav-has-dropdown.is-open .nav-dropdown-trigger {
  color: var(--text);
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 200ms ease;
  display: inline-block;
}

.nav-has-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #1a1a1e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.3rem 0.3rem;
  list-style: none;
  margin: 0;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 100;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
  font-weight: 500;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(240, 240, 242, 0.06);
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.eyebrow {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.lead {
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: "Syne", sans-serif;
  transition: opacity 150ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a0a02;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-ghost {
  border-color: rgba(240, 240, 242, 0.18);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(240, 240, 242, 0.4);
}

.quick-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quick-nav a,
.text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.quick-nav a:hover,
.text-link:hover {
  text-decoration: underline;
}

.hero-card,
.panel,
.asset-card,
.media-card,
.spec-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card {
  padding: 1.4rem;
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-card p {
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.hero-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-card ul li {
  margin-bottom: 0.3rem;
}

.hero-glow {
  display: none;
}

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.asset-card {
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.15s;
}

.asset-card:hover {
  background: var(--bg-alt);
}

.asset-thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #1a1a1e;
  border-bottom: 1px solid var(--line);
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-content {
  padding: 1rem;
}

.asset-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.asset-price {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.asset-content p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tag {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-actions .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}

.filter-bar {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.filter-bar select {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-family: "Syne", sans-serif;
  font-size: 0.88rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.panel {
  padding: 1.25rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item h3 {
  margin-bottom: 0.25rem;
}

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

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.asset-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.media-card,
.spec-card {
  padding: 1.25rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.media-grid img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.features-list {
  padding-left: 1.1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 1.25rem;
}

th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(240, 240, 242, 0.16);
  color: var(--text-muted);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

td code,
td:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  color: var(--accent);
}

.fade-up {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 350ms ease forwards;
}

.fade-up:nth-child(2) {
  animation-delay: 60ms;
}

.fade-up:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .docs-layout,
  .asset-detail {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 4rem;
  }
}
