/* NetBird presentation: existing Inter/orange identity, diagram-led layouts. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --paper: #0a0a0a;
  --surface: #171717;
  --ink: #f7f5f2;
  --muted: #c1c1c1;
  --rule: #555;
  --accent: #f68330;
  --accent-ink: #0a0a0a;
  --data: #80dfa4;
  --danger: #ff8b8b;
  --focus: #ffc28f;
  --font: Inter, Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --toolbar-height: 64px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
}
body {
  font-family: var(--font);
}
h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  font-style: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
}
button,
select {
  font: inherit;
}
button,
select,
.toolbar a {
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}
button,
select {
  cursor: pointer;
}
button {
  min-width: 44px;
}
button:hover,
select:hover,
.toolbar a:hover {
  background: var(--surface);
}
button:active,
.toolbar a:active {
  background: var(--rule);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.toolbar {
  display: none;
}
.js .toolbar {
  display: flex;
  position: fixed;
  inset: auto 0 0;
  z-index: 3;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.toolbar button,
.toolbar a {
  white-space: nowrap;
}
.toolbar select {
  max-width: 220px;
  min-width: 0;
}
.toolbar a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.counter {
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}
.slide {
  position: relative;
  padding: 88px 112px 104px;
  width: 1920px;
  height: 1080px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.slide h2 {
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: -2px;
}
.slide h3 {
  font-size: 38px;
  line-height: 1.2;
}
.slide p,
.slide li {
  font-size: 34px;
  line-height: 1.4;
  color: var(--muted);
}
.slide strong {
  color: var(--ink);
  font-weight: 600;
}
.slide code {
  font-family: var(--mono);
  color: var(--ink);
}
.slide footer {
  position: absolute;
  left: 112px;
  right: 112px;
  bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 22px;
  color: var(--muted);
}
.slide footer img {
  width: 142px;
  height: 24px;
  object-fit: contain;
}
.slide aside {
  display: none;
}
.cover {
  padding: 112px 128px;
  justify-content: space-between;
}
.cover .brand {
  width: 283px;
  height: 48px;
  object-fit: contain;
}
.cover h1 {
  font-size: 108px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -4px;
  max-width: 1200px;
}
.cover h1 span {
  color: var(--accent);
}
.cover .intro {
  position: relative;
  display: grid;
  gap: 32px;
}
.cover .intro p {
  max-width: 1000px;
}
.cover .event {
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 3px;
}
.cover .byline {
  font-size: 24px;
}
.cover-art {
  position: absolute;
  left: 1220px;
  top: 120px;
  width: 600px;
  height: 600px;
  color: var(--accent);
}
.cover-art .orbit {
  stroke: var(--rule);
  opacity: 0.4;
}
.cover-art .edge {
  stroke: currentColor;
  opacity: 0.35;
}
.cover-art .node {
  fill: var(--paper);
  stroke: currentColor;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  flex: 1;
  min-height: 0;
}
.bio {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.bio .statement {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.bio .statement span {
  color: var(--accent);
}
.plain-list {
  display: grid;
  gap: 32px;
  list-style: none;
  padding: 0;
}
.plain-list li {
  border-top: 2px solid var(--rule);
  padding-top: 24px;
}
.plain-list h3 {
  margin-bottom: 12px;
}
.large-copy {
  font-size: 42px !important;
  max-width: 32ch;
}
.takeaway {
  border-left: 5px solid var(--accent);
  padding-left: 24px;
  color: var(--ink) !important;
}
.diagram {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram svg {
  display: block;
  width: 100%;
  max-height: 100%;
  overflow: visible;
  font-family: var(--font);
}
.diagram text {
  fill: var(--ink);
  font-size: 34px;
  text-anchor: middle;
}
.diagram .small {
  font-size: 28px;
  fill: var(--muted);
}
.diagram .mono {
  font-family: var(--mono);
  font-size: 28px;
}
.diagram .box {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 3;
  rx: 12px;
}
.diagram .peer {
  stroke: var(--ink);
}
.diagram .control {
  stroke: var(--accent);
  stroke-width: 5;
  fill: none;
}
.diagram .traffic {
  stroke: var(--data);
  stroke-width: 6;
  fill: none;
}
.diagram .blocked {
  stroke: var(--danger);
  stroke-width: 5;
  fill: none;
}
.diagram .label-control {
  fill: var(--accent);
}
.diagram .label-data {
  fill: var(--data);
}
.diagram .label-danger {
  fill: var(--danger);
}
.diagram .dashed {
  stroke-dasharray: 12 10;
}
.diagram-description {
  display: none;
}
.diagram-description ol,
.diagram-description ul {
  padding-left: 24px;
}
.diagram-description li + li {
  margin-top: 12px;
}
.architecture {
  gap: 24px;
}
.architecture .diagram {
  flex: none;
  height: 540px;
}
.walkthrough {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
}
.walkthrough li {
  border-top: 4px solid var(--accent);
  padding-top: 16px;
  font-size: 30px;
}
.walkthrough strong {
  display: block;
  margin-bottom: 8px;
}
[data-mode="slides"] [data-reveal] {
  opacity: 0.12;
  transition: opacity 160ms ease-out;
}
[data-mode="slides"] [data-reveal].revealed {
  opacity: 1;
}
.dual-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.dual-note h3 {
  margin-bottom: 12px;
}
.dual-note p {
  font-size: 30px;
}
.relay .diagram {
  flex: none;
  height: 430px;
}
.demo {
  gap: 48px;
}
.demo h2 {
  font-size: 100px;
}
.demo-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 28px;
}
.demo-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
}
.step-number {
  color: var(--accent);
  font-size: 48px;
  font-weight: 700;
}
.demo-steps code {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}
.resource-links {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.resource-links a {
  font-size: 28px;
  white-space: nowrap;
}
pre {
  margin: 16px 0;
  padding: 16px;
  background: var(--surface);
  border-left: 4px solid var(--data);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 16px/1.65 var(--mono);
}
pre code {
  font: inherit;
}
.sources {
  font-size: 16px;
  line-height: 1.6;
}
.sources a {
  display: inline-block;
  margin: 4px 16px 4px 0;
}
.notes-panel {
  position: fixed;
  inset: auto 16px calc(var(--toolbar-height) + 16px);
  z-index: 4;
  max-height: 45vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.5;
}
.notes-panel h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.notes-panel p + p {
  margin-top: 12px;
}
.notes-panel .sources {
  margin-top: 16px;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 28px;
  font-size: 17px;
  line-height: 1.5;
}
dialog::backdrop {
  background: var(--paper);
  opacity: 0.8;
}
dialog h2,
dialog p,
dialog dl {
  margin-bottom: 20px;
}
dialog dt {
  font-weight: 700;
}
dialog dd {
  margin: 0 0 12px;
  color: var(--muted);
}
dialog button {
  float: right;
}
.noscript {
  padding: 20px;
  text-align: center;
}
[data-mode="slides"] {
  height: 100dvh;
  overflow-y: clip;
}
[data-mode="slides"] .stage {
  position: absolute;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}
[data-mode="slides"] .slide {
  position: absolute;
  inset: 0;
}
[data-mode="slides"] .slide:not(.active) {
  display: none;
}
/* Reading mode is also the no-JavaScript fallback. */
body:not([data-mode="slides"]) {
  padding-bottom: calc(var(--toolbar-height) + 24px);
}
body:not([data-mode="slides"]) .stage {
  max-width: 1200px;
  margin: auto;
}
body:not([data-mode="slides"]) .slide {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 64px 40px;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
body:not([data-mode="slides"]) .slide h1 {
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: -2px;
}
body:not([data-mode="slides"]) .slide h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1px;
}
body:not([data-mode="slides"]) .slide h3 {
  font-size: 26px;
}
body:not([data-mode="slides"]) .slide p,
body:not([data-mode="slides"]) .slide li {
  font-size: 20px;
}
body:not([data-mode="slides"]) .cover-art {
  display: none;
}
body:not([data-mode="slides"]) .cover .brand {
  width: 200px;
  height: auto;
}
body:not([data-mode="slides"]) .cover .event {
  font-size: 16px;
  letter-spacing: 1px;
}
body:not([data-mode="slides"]) .slide footer {
  display: none;
}
body:not([data-mode="slides"]) .split {
  gap: 40px;
}
body:not([data-mode="slides"]) .diagram {
  height: auto;
}
body:not([data-mode="slides"]) .diagram svg {
  max-height: 500px;
}
body:not([data-mode="slides"]) .large-copy {
  font-size: 30px !important;
}
body:not([data-mode="slides"]) .walkthrough {
  gap: 24px;
}
body:not([data-mode="slides"]) .resource-links {
  gap: 24px;
}
body:not([data-mode="slides"]) .resource-links a {
  font-size: 20px;
}
body:not([data-mode="slides"]) .demo-steps li {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
body:not([data-mode="slides"]) .demo-steps code {
  font-size: 18px;
  overflow-wrap: anywhere;
}
body:not([data-mode="slides"]) pre {
  font-size: 17px;
  padding: 24px;
}
body:not([data-mode="slides"]) .slide aside {
  display: block;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
body:not([data-mode="slides"]) .slide aside p,
body:not([data-mode="slides"]) .slide aside li {
  font-size: 17px;
}
body:not([data-mode="slides"]) .slide aside summary {
  cursor: pointer;
  font-size: 17px;
  color: var(--muted);
}
body:not([data-mode="slides"]) .slide aside details[open] summary {
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  body:not([data-mode="slides"]) .slide {
    padding: 40px 24px;
    gap: 24px;
  }
  body:not([data-mode="slides"]) .split,
  body:not([data-mode="slides"]) .dual-note,
  body:not([data-mode="slides"]) .walkthrough {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body:not([data-mode="slides"]) .diagram {
    display: block;
  }
  body:not([data-mode="slides"]) .diagram svg {
    display: none;
  }
  body:not([data-mode="slides"]) .architecture .walkthrough {
    display: none;
  }
  body:not([data-mode="slides"]) .diagram-description {
    display: block;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
  }
  body:not([data-mode="slides"]) .resource-links {
    gap: 20px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar select {
    flex: 1;
    max-width: 220px;
  }
  .toolbar .optional-control {
    display: none;
  }
  .notes-panel {
    inset-inline: 8px;
  }
}
@media (max-width: 440px) {
  .js .toolbar {
    gap: 8px;
    padding: 8px;
  }
  .toolbar select {
    width: 140px;
    max-width: 160px;
  }
  .toolbar .counter {
    display: none;
  }
  body:not([data-mode="slides"]) .slide {
    padding-inline: 20px;
  }
  body:not([data-mode="slides"]) .slide p,
  body:not([data-mode="slides"]) .slide li {
    font-size: 18px;
  }
  body:not([data-mode="slides"]) .resource-links a {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none !important;
  }
}
@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }
  html,
  body {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .toolbar,
  .notes-panel,
  dialog,
  .noscript,
  #announcement {
    display: none !important;
  }
  body .stage {
    position: static !important;
    transform: none !important;
    width: 1920px !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body .stage .slide {
    position: relative !important;
    display: flex !important;
    inset: auto !important;
    break-after: page;
    break-inside: avoid;
    border: none !important;
  }
  body .stage .slide:last-child {
    break-after: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
  }
  .slide aside {
    display: none !important;
  }
}
