:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171b22;
  --panel-soft: #202733;
  --line: #313844;
  --text: #f5f7fb;
  --muted: #b4bfcb;
  --dim: #84909f;
  --orange: #ff7b2f;
  --orange-dark: #dd5c1f;
  --blue: #7aa2ff;
  --green: #7bd88f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  color: #d9e6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

pre code {
  display: block;
  color: #eff5ff;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img {
  width: 28px;
  height: 28px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
}

.nav-action {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 88vh);
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px);
  background-image: url('assets/img/screen-json-1280.png');
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(8, 10, 14, 0.72);
}

.hero-copy {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  color: #e6ebf2;
  font-size: clamp(19px, 2.6vw, 27px);
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 740;
}

.button.primary {
  background: var(--orange);
  color: #150904;
}

.button.primary:hover {
  background: #ff8f4f;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.band {
  background: #141820;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 108px) 0;
}

.problem-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.problem-grid article,
figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.problem-grid article {
  padding: 22px;
}

.problem-grid p,
.workflow p,
.privacy p,
.install p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 2px;
}

figure {
  margin: 0;
  overflow: hidden;
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.demo-layout,
.workflow-layout,
.privacy-layout,
.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.demo-layout {
  align-items: center;
}

.demo-video,
.page-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.demo-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shortcut-list {
  display: grid;
  gap: 10px;
}

.shortcut-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

kbd {
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #0d1016;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.shortcut-list span,
.privacy li {
  color: var(--muted);
}

.privacy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy li {
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: var(--panel);
}

.install-layout {
  align-items: center;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.use-case-grid a,
.use-case-grid article {
  display: block;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.use-case-grid a:hover {
  border-color: rgba(122, 162, 255, 0.58);
}

.use-case-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  background:
    linear-gradient(rgba(8, 10, 14, 0.82), rgba(8, 10, 14, 0.82)),
    url('assets/img/screen-json-1280.png') center / cover;
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: min(720px, 84vh);
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.page-copy {
  max-width: 980px;
}

.page-copy > p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.code-compare {
  display: grid;
  gap: 14px;
}

.code-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.94);
}

.code-card figcaption {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--green);
  font-weight: 740;
}

.code-card pre {
  padding: 16px;
}

.page-media {
  margin: 0;
}

.page-shortcuts {
  max-width: 680px;
  margin-top: 28px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

footer span {
  color: var(--text);
  font-weight: 740;
}

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 82vh;
  }

  .problem-grid,
  .media-grid,
  .use-case-grid,
  .demo-layout,
  .page-hero-layout,
  .workflow-layout,
  .privacy-layout,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .section-inner {
    width: min(100% - 28px, var(--max));
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .install-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
