:root {
  color-scheme: dark;
  --bg: #131313;
  --bg-low: #0e0e0e;
  --surface: #1c1b1b;
  --surface-high: #2a2a2a;
  --surface-top: #353534;
  --text: #e5e2e1;
  --muted: #b9c9d3;
  --soft: #8c8582;
  --primary: #ffb4a9;
  --primary-strong: #ff5544;
  --accent: #00daf3;
  --accent-dim: #009fb2;
  --line: rgba(175, 135, 130, 0.18);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 85, 68, 0.14), transparent 28rem),
    radial-gradient(circle at 5% 22%, rgba(0, 218, 243, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 19, 19, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-low);
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 6px;
}

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

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(36px, auto));
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-low);
}

.language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button.is-active,
.language-switch button[aria-pressed="true"] {
  background: var(--surface-high);
  color: var(--text);
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 56px 0 42px;
}

.hero-inner {
  display: grid;
  gap: 32px;
}

.hero-shot {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-low);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  opacity: 0.52;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 7.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  background: var(--surface-high);
  color: var(--text);
}

.btn-primary {
  background: var(--primary);
  color: #690002;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  margin: 14px 0 0;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.panel,
.feature,
.step,
.metric {
  background: rgba(28, 27, 27, 0.86);
  border-radius: 8px;
  padding: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.feature p,
.step p,
.panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.screenshot {
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-low);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.screenshot figcaption {
  color: var(--muted);
  padding: 14px 16px;
  font-size: 0.92rem;
}

.code-card {
  position: relative;
  background: #0e0e0e;
  border-radius: 8px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.code-card pre {
  margin: 0;
  overflow: auto;
  color: var(--text);
  font-size: 0.94rem;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  background: var(--surface-high);
  cursor: pointer;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list li + li {
  margin-top: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(28, 27, 27, 0.86);
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  box-shadow: inset 0 -1px 0 var(--line);
}

.table th {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  color: var(--muted);
}

.site-footer {
  margin-top: 52px;
  padding: 36px 0;
  background: var(--bg-low);
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
