@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --chassis: light-dark(#e8e6e1, #121110);
  --panel: light-dark(#f6f5f2, #1c1a18);
  --well: light-dark(#ecebe7, #0f0e0d);
  --line: light-dark(#dcd9d3, #2b2926);
  --ink: light-dark(#1b1a18, #f1ede6);
  --dim: light-dark(#5f5c56, #a39d93);
  --faint: light-dark(#8c887f, #6f6a62);
  --accent: #e4572e;
  --accent-text: light-dark(#c2421d, #f0764f);
  --accent-soft: light-dark(rgba(228, 87, 46, 0.1), rgba(228, 87, 46, 0.14));
  --accent-border: rgba(228, 87, 46, 0.4);
  --led: light-dark(rgba(228, 87, 46, 0.35), rgba(228, 87, 46, 0.5));
  --cap: radial-gradient(circle at 40% 30%, #f48a63, #d4471f);
  --well-shadow:
    inset 0 1px 2px light-dark(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.7)),
    inset 0 0 0 1px light-dark(transparent, rgba(0, 0, 0, 0.45)),
    0 1px 0 light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.07));
  --key: linear-gradient(light-dark(#fdfcfa, #2c2925), light-dark(#efede8, #221f1c));
  --key-shadow:
    inset 0 1px 0 light-dark(#fff, rgba(255, 255, 255, 0.09)),
    0 0 0 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)),
    0 1px 3px light-dark(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.5));
  --cap-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    0 2px 8px light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    0 0 18px light-dark(transparent, rgba(228, 87, 46, 0.3));
  --panel-shadow:
    inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.06)),
    0 12px 32px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --page: min(1120px, 100% - 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--chassis);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--chassis) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

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

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.topbar nav a:not(.button) {
  color: var(--dim);
  text-decoration: none;
}

.topbar nav a:not(.button):hover {
  color: var(--ink);
}

.lang-switch {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--key);
  box-shadow: var(--key-shadow);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.lang-switch:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--cap);
  box-shadow: var(--cap-shadow);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease);
}

.button:hover {
  box-shadow:
    var(--cap-shadow),
    0 0 0 4px var(--accent-soft);
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button.small {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.hero {
  position: relative;
  padding: 88px 0 112px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--led);
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(46px, 6.8vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.lede {
  max-width: 34em;
  margin-bottom: 32px;
  color: var(--dim);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.cta-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.browsers {
  margin-top: 18px;
  color: var(--faint);
  font-size: 14px;
}

.showcase {
  position: relative;
  justify-self: end;
  width: 360px;
  padding-top: 104px;
}

.showcase > img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px light-dark(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
}

.toast {
  position: absolute;
  top: 0;
  right: 0;
  left: -48px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  gap: 0 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: light-dark(rgba(246, 245, 242, 0.85), rgba(58, 56, 54, 0.62));
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.12)),
    0 0 0 1px light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45)),
    0 18px 40px -12px light-dark(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
  font-family: system-ui, sans-serif;
  animation: toast-in 0.7s var(--ease) 0.6s both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

.chrome-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from -60deg, #db4437 0 120deg, #f4c20d 0 240deg, #0f9d58 0 360deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chrome-icon i {
  position: absolute;
  inset: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #4285f4;
}

.toast-text {
  min-width: 0;
}

.toast strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.toast p,
.toast small {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toast p {
  color: var(--ink);
  opacity: 0.85;
}

.toast small {
  color: var(--faint);
}

.toast time {
  position: absolute;
  top: 9px;
  right: 14px;
  color: var(--faint);
  font-size: 11px;
}

.toast-avatar {
  width: 44px;
  height: 44px;
  margin-top: 12px;
  border-radius: 10px;
  background: #121110;
}

section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.section-index {
  padding-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.section-head h2 {
  max-width: 20ch;
  margin-bottom: 14px;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 40em;
  color: var(--dim);
  font-size: 17px;
}

.indented {
  margin-left: 204px;
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #121110;
  box-shadow: var(--panel-shadow);
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
}

.play {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: var(--cap);
  box-shadow: var(--cap-shadow);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.play:hover {
  transform: scale(1.06);
}

.play:active {
  transform: scale(0.96);
}

.play svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
  fill: #fff;
}

.player-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.player-note a {
  color: var(--dim);
}

.player.playing .play {
  opacity: 0;
  pointer-events: none;
}

.log {
  overflow-x: auto;
  padding: 22px 24px;
  background: var(--well);
  box-shadow: var(--well-shadow);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
}

.log-line {
  display: grid;
  grid-template-columns: 64px 72px minmax(0, 1fr);
  white-space: nowrap;
}

.log-time {
  color: var(--faint);
}

.log-kind {
  color: var(--dim);
}

.log-line.hit .log-kind,
.log-line.hit .log-text {
  color: var(--accent-text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.facts dt {
  margin-bottom: 6px;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 14px;
}

.facts dd {
  color: var(--dim);
  font-size: 15px;
}

.specs {
  border-top: 1px solid var(--line);
}

.spec {
  display: grid;
  grid-template-columns: 180px 240px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.spec code {
  justify-self: start;
  padding: 3px 8px;
  background: var(--key);
  box-shadow: var(--key-shadow);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.spec h3 {
  font-size: 18px;
  font-weight: 700;
}

.spec p {
  color: var(--dim);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 20px;
  align-items: start;
  margin-top: 56px;
}

.gallery figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery img {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gallery figcaption {
  color: var(--faint);
  font-size: 14px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.node {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
}

.node strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.node span {
  color: var(--dim);
  font-size: 14px;
}

.node.gone {
  background: none;
  border-style: dashed;
  box-shadow: none;
}

.node.gone strong {
  color: var(--faint);
  text-decoration: line-through;
}

.link-arrow {
  color: var(--accent-text);
  text-shadow: 0 0 12px var(--led);
  font-family: var(--mono);
  font-size: 18px;
}

.link-arrow.cut {
  color: var(--faint);
}

.privacy-text {
  max-width: 44em;
  color: var(--dim);
  font-size: 17px;
}

.privacy-text a,
.faq a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.privacy-text p + p {
  margin-top: 16px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--faint);
  font-family: var(--mono);
  font-size: 20px;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-text);
}

.faq details p {
  max-width: 46em;
  padding-bottom: 22px;
  color: var(--dim);
}

.feedback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.feedback-card:hover {
  border-color: var(--accent-border);
}

.feedback-card:active {
  transform: translateY(1px);
}

.feedback-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.feedback-via {
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-card strong {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.feedback-card span:last-child {
  color: var(--dim);
  font-size: 15px;
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a {
  color: var(--dim);
  text-decoration: none;
}

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

.doc {
  max-width: 760px;
  padding: 72px 0 96px;
}

.doc .kicker {
  margin-bottom: 16px;
}

.doc h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.doc h2 {
  margin: 56px 0 16px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--dim);
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.doc code {
  padding: 1px 6px;
  background: var(--well);
  box-shadow: var(--well-shadow);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88em;
}

.doc a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.doc .summary {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  color: var(--ink);
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.perm-table th,
.perm-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.perm-table th {
  width: 38%;
  padding-right: 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

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

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .showcase {
    justify-self: center;
    margin-top: 16px;
  }

  .toast {
    left: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .indented {
    margin-left: 0;
  }

  .spec {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .spec p {
    grid-column: 2;
  }

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

  .gallery figure:last-child {
    grid-column: 1 / -1;
  }

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

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

  .link-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
  }

  .topbar nav a.text {
    display: none;
  }

  .hero {
    padding: 56px 0 80px;
  }

  .showcase {
    width: 100%;
    max-width: 340px;
    padding-top: 0;
  }

  .toast {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 16px;
  }

  section {
    padding: 72px 0;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spec {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spec p {
    grid-column: auto;
  }

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

  .player {
    border-radius: 14px;
  }

  .play {
    left: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  .play svg {
    width: 24px;
    height: 24px;
  }

  .log {
    padding: 16px;
    font-size: 12.5px;
    line-height: 1.7;
  }

  .log-line {
    grid-template-columns: 48px 56px minmax(0, 1fr);
    padding: 3px 0;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toast {
    animation: none;
  }
}
