:root {
  color-scheme: dark;
  --bg: #070909;
  --bg-2: #0d1211;
  --surface: rgba(17, 24, 23, 0.84);
  --surface-strong: #121918;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f4f1ea;
  --muted: #b9c0ba;
  --dim: #77827d;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.22);
  --teal: #18d4c3;
  --teal-dark: #07897f;
  --teal-soft: rgba(24, 212, 195, 0.16);
  --amber: #ffb44c;
  --amber-soft: rgba(255, 180, 76, 0.16);
  --red: #ff6b5f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #070909;
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(120% 80% at 85% -8%, rgba(24, 212, 195, 0.12), transparent 46%),
    radial-gradient(110% 70% at 0% 4%, rgba(255, 180, 76, 0.08), transparent 44%),
    linear-gradient(180deg, #0a0f0e 0%, #070909 56%, #060807 100%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

code,
pre {
  font-family:
    "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

img {
  max-width: 100%;
}

.hero,
.band,
.footer,
.legal-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: 100%;
  margin: 0;
  padding: 18px max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.94), rgba(7, 9, 9, 0.6) 66%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.nav,
.footer-links {
  gap: 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a,
.footer-links a,
.text-link {
  text-decoration: none;
}

.nav a,
.footer-links a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"],
.footer-links a:hover,
.footer-links a[aria-current="page"],
.text-link:hover {
  color: var(--teal);
  border-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  gap: clamp(2rem, 5vw, 4.4rem);
  padding: clamp(48px, 8vh, 92px) 0 84px;
}

.hero-copy,
.copy-block,
.hero-shot,
.terminal,
.code-panel,
.inline-command,
.screenshot-frame,
.legal-content,
.capability-grid,
.boundary-grid,
.gtk-grid {
  min-width: 0;
}

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

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--amber);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 16ch;
  margin-bottom: 1.3rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: clamp(1.72rem, 2.7vw, 2.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.boundary h2,
.problem h2 {
  max-width: 24ch;
}

h3 {
  margin-bottom: 0.6rem;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 56ch;
  margin-top: 0.4rem;
}

.lede,
.hero p,
.band p,
.legal-content p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

.lede {
  max-width: 700px;
  color: #e4e2dc;
  font-size: clamp(1.22rem, 2.25vw, 1.65rem);
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.12rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(24, 212, 195, 0.56);
  background: linear-gradient(135deg, #12bfaf, #24ead9 58%, #8df5ec);
  color: #03110f;
  box-shadow: 0 18px 46px rgba(24, 212, 195, 0.18);
}

.button.secondary {
  background: rgba(244, 241, 234, 0.055);
  color: var(--text);
}

.proof-note {
  max-width: 620px;
  margin: 1.45rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
}

.hero-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b1010;
  box-shadow: var(--shadow);
}

.hero-shot::after {
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(60% 100% at 80% 0%, rgba(24, 212, 195, 0.16), transparent 70%);
}

.window-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.66rem 0.85rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.22);
}

.window-bar span:first-child {
  background: #ff6b5f;
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--teal);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.band {
  padding: clamp(34px, 5vw, 64px) 0;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.two-column,
.metadata,
.install,
.closing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}

.copy-block {
  width: 100%;
  max-width: 590px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.capabilities > div:first-child,
.migration > div:first-child,
.good-to-know > div:first-child {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.capability-grid article {
  min-width: 0;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.05), transparent 80px),
    rgba(13, 18, 17, 0.82);
}

.capability-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(24, 212, 195, 0.3);
  border-radius: 8px;
  color: var(--teal);
  font-family:
    "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.capability-grid p {
  margin-bottom: 0;
  font-size: 1rem;
}

.capability-grid code {
  color: #e1fbf7;
  font-size: 0.86em;
}

.screenshot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-media {
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #050707;
  box-shadow: var(--shadow);
}

.demo-media figcaption {
  max-width: 760px;
  margin: 0.92rem 0 0;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.terminal,
.code-panel,
.inline-command {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.07), transparent 44px),
    #080c0c;
  box-shadow: var(--shadow);
}

.command-list,
.inline-command {
  padding: 0.58rem;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
  padding: 0.68rem 0.72rem;
  border-radius: 6px;
  background: rgba(244, 241, 234, 0.032);
}

.command-row + .command-row {
  margin-top: 1px;
}

.single-command {
  margin: 0.58rem;
  grid-template-columns: minmax(0, 1fr);
}

.inline-command .single-command,
.command-list .command-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.command-line {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
}

.prompt {
  color: rgba(185, 192, 186, 0.58);
  font-family:
    "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: right;
  user-select: none;
}

.copy-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 6px;
  background: rgba(244, 241, 234, 0.055);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.copy-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.copy-button .check-icon {
  display: none;
}

.copy-button[data-state="copied"] .copy-icon {
  display: none;
}

.copy-button[data-state="copied"] .check-icon {
  display: block;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: rgba(24, 212, 195, 0.46);
  background: rgba(24, 212, 195, 0.1);
  color: #dcfffb;
}

.copy-button:focus-visible {
  outline: 2px solid rgba(24, 212, 195, 0.42);
  outline-offset: 2px;
}

.copy-button[data-state="copied"] {
  border-color: rgba(24, 212, 195, 0.5);
  background: rgba(24, 212, 195, 0.12);
  color: #dcfffb;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.78rem 0.95rem 0.66rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.code-panel pre {
  margin: 0;
  padding: 1rem 1.05rem 1.12rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal code,
.code-panel code,
.inline-command code {
  color: #e1fbf7;
  font-size: 0.9rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.command-row code {
  line-height: 1.5;
  white-space: pre-wrap;
}

.command-row .copy-button {
  margin-top: -0.08rem;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.before-after .code-panel {
  display: flex;
  flex-direction: column;
}

.before-after pre {
  flex: 1;
}

.code-panel .panel-label.danger {
  color: var(--red);
}

.code-panel .panel-label.safe {
  color: var(--teal);
}

.run-line {
  margin-top: 1rem;
}

.run-note {
  max-width: 60ch;
  margin: 0.9rem 0 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.code-panel {
  padding-top: 0;
}

.panel-label,
.panel-note {
  padding: 0 1.1rem;
}

.panel-label {
  margin-bottom: 0;
  padding: 0;
}

.panel-note {
  color: var(--dim);
  font-size: 0.9rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.boundary-grid > div {
  padding: 1.3rem;
  background: rgba(12, 17, 16, 0.82);
}

.boundary-grid > div:first-child {
  border-top: 3px solid var(--teal);
}

.boundary-grid > div + div {
  border-top: 3px solid var(--amber);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

li + li {
  margin-top: 0.42rem;
}

.text-link {
  color: #dcfffb;
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.gtk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.gtk-grid > div {
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
  background: rgba(12, 17, 16, 0.82);
}

.gtk-grid p {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.plain-list {
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  margin: 0;
  padding: 0.32rem 0 0.32rem 1.3rem;
  color: var(--muted);
}

.plain-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "›";
}

.closing {
  padding-bottom: clamp(34px, 5vw, 64px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  color: var(--dim);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.footer-product {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  width: fit-content;
  color: #e4e2dc;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-product img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.46rem;
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.license-pill {
  padding: 0.18rem 0.44rem;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-meta a:hover {
  color: var(--teal);
  border-color: currentColor;
}

.legal-page {
  background:
    linear-gradient(rgba(244, 241, 234, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.024) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 180, 76, 0.09), transparent 30%),
    linear-gradient(180deg, #0a0f0e 0%, #070909 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.legal-main {
  padding: clamp(58px, 9vw, 110px) 0 clamp(78px, 12vw, 140px);
}

.legal-hero {
  max-width: 900px;
  margin-bottom: clamp(44px, 7vw, 78px);
}

.legal-date {
  color: var(--amber);
  font-size: 0.94rem;
  font-weight: 800;
}

.legal-content {
  max-width: 830px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.02;
}

.legal-content a {
  color: #dcfffb;
  overflow-wrap: anywhere;
}

.docs-main {
  max-width: none;
}

.docs-hero {
  max-width: 980px;
}

.docs-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.docs-sidebar nav {
  display: grid;
  gap: 0.38rem;
}

.docs-sidebar a {
  display: block;
  padding: 0.46rem 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.docs-sidebar a:hover {
  color: var(--teal);
  border-color: currentColor;
}

.docs-content {
  min-width: 0;
  max-width: 920px;
}

.docs-section {
  padding: clamp(2.5rem, 5vw, 4.6rem) 0;
  border-top: 1px solid var(--line);
}

.docs-section:first-child {
  padding-top: 0;
}

.docs-section h2 {
  max-width: 18ch;
}

.docs-section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.68;
}

.docs-section code {
  overflow-wrap: anywhere;
}

.docs-section .code-panel {
  margin: 1.35rem 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.4rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.docs-grid > div {
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.45rem);
  background: rgba(12, 17, 16, 0.84);
}

.docs-grid p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.docs-qa-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.docs-qa-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 16, 0.78);
}

.docs-qa-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.docs-qa-list p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  .hero,
  .two-column,
  .metadata,
  .install,
  .closing,
  .code-grid,
  .boundary-grid,
  .gtk-grid,
  .docs-layout,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    top: auto;
    padding: 0 0 1.2rem;
  }

  .docs-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
  }

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

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .metadata .copy-block {
    order: -1;
  }

  h1 {
    max-width: none;
  }
}

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

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
  }

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

  h1 {
    font-size: clamp(3.1rem, 14vw, 4.45rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.32rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .closing-actions {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .terminal code,
  .code-panel code,
  .inline-command code {
    font-size: 0.82rem;
  }

  .code-panel pre,
  .command-row code,
  .inline-command {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .command-list,
  .inline-command {
    padding: 0.46rem;
  }

  .command-row {
    gap: 0.5rem;
    padding: 0.58rem;
  }

  .copy-button {
    width: 30px;
    min-width: 30px;
  }
}

@media (max-width: 420px) {
  .hero,
  .band,
  .footer,
  .legal-main {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nav {
    font-size: 0.86rem;
  }
}
