@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #09090b;
  --charcoal: #1b1d22;
  --white: #f7f9fc;
  --navy: #102b57;
  --blue: #286ee2;
  /* 1 px checkerboard on a 2 px cell: the scene's pixel grid, used for hovers */
  --dither-blue: conic-gradient(rgba(40,110,226,.34) 90deg, transparent 90deg 180deg, rgba(40,110,226,.34) 180deg 270deg, transparent 270deg);
  --dither-blue-strong: conic-gradient(rgba(40,110,226,.62) 90deg, transparent 90deg 180deg, rgba(40,110,226,.62) 180deg 270deg, transparent 270deg);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; user-select: none; }
body {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#scene {
  image-rendering: pixelated;
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage { position: relative; z-index: 6; min-height: 100svh; pointer-events: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dock {
  position: fixed;
  z-index: 5;
  right: clamp(24px, 4.5vw, 72px);
  bottom: 44px;
  left: clamp(24px, 4.5vw, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.left-cluster { display: flex; align-items: flex-start; gap: 25px; }
.identity { display: flex; align-items: center; gap: 13px; height: 52px; white-space: nowrap; }
/* The mark is plain white and takes its colours when the pointer is on the brand. */
.brand-mark { position: relative; display: block; width: 41px; }
.brand-mark img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .22s ease; }
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  -webkit-mask: url("/assets/vorko-logo.png") center / 100% 100% no-repeat;
  mask: url("/assets/vorko-logo.png") center / 100% 100% no-repeat;
  transition: opacity .22s ease;
}
.identity:hover .brand-mark img { opacity: 1; }
.identity:hover .brand-mark::after { opacity: 0; }
.brand-name { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.055em; }

.primary-actions { display: flex; align-items: center; padding-top: 7px; }
.action-row { display: flex; align-items: center; gap: 8px; }
.nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(247,249,252,.12);
  border-radius: 0;
  background: transparent;
  color: rgba(247,249,252,.63);
  font: 400 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.nav-button > span { display: inline-block; transition: transform .22s var(--ease-out); }
.docs-button { gap: 9px; min-width: 80px; }
.docs-button span { font-size: 13px; line-height: 1; }
.apps-button { gap: 9px; min-width: 80px; }
.apps-button span { font-size: 13px; line-height: 1; }
.telegram-button { width: 36px; min-width: 36px; padding: 0; }
.telegram-button img { width: 17px; height: 17px; filter: invert(1); opacity: .68; }

.nav-button:hover, .nav-button:focus-visible {
  border-color: var(--blue);
  background: var(--dither-blue) 0 0 / 2px 2px;
  color: var(--white);
}
.nav-button:hover > span, .nav-button:focus-visible > span { transform: translateX(3px); }
.nav-button:hover img, .nav-button:focus-visible img { opacity: 1; }

/* Difference blending keeps the legal line legible where it crosses the white
   tiles and leaves it unchanged over the dark field. */
.legal-links {
  position: fixed;
  z-index: 5;
  right: clamp(24px, 4.5vw, 72px);
  bottom: 56px;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(247,249,252,.45);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .10em;
  white-space: nowrap;
}
.legal-links a { color: rgba(247,249,252,.63); text-decoration: none; transition: color .16s ease; }
.legal-links a:hover { color: var(--white); }
.nav-button:focus-visible, .legal-links a:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
}


/* Too narrow for one row: the legal line moves under the logo. */
@media (max-width: 900px) {
  .dock { bottom: 74px; }
  .legal-links { right: auto; bottom: 44px; left: clamp(24px, 4.5vw, 72px); }
}

/* Narrow screens, as on stencil.so: the logo and the buttons move to the
   middle of the dark field, the legal line to the bottom centre. */
@media (max-width: 640px) {
  .dock {
    inset: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .dock > * { pointer-events: auto; }
  .left-cluster { flex-direction: column; align-items: center; gap: 32px; }
  .primary-actions { padding-top: 0; }
  .legal-links { right: 0; bottom: 24px; left: 0; justify-content: center; }
}

@media (max-width: 410px) {
  .left-cluster { gap: 26px; }
  .identity { gap: 9px; }
  .brand-mark { width: 34px; }
  .brand-name { font-size: 28px; }
  .nav-button { height: 33px; font-size: 10px; }
  .docs-button { min-width: 69px; }
  .apps-button { min-width: 69px; }
  .telegram-button { width: 33px; min-width: 33px; }
  .legal-links { gap: 12px; font-size: 9px; }
}

@media (max-width: 350px) {
  .action-row { gap: 6px; }
  .apps-button { padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
