/* CollectiveOS brand tokens, shared by the site and the product.
   The look follows the logo: an open hexagon and one blue dot, white on near-black.
   Depth comes from light (glows, hairlines, glass), not from colour. */

:root {
  --bg: #06080d;
  --bg-2: #0a0d14;
  --panel: #0c1018;
  --surface: rgba(255, 255, 255, 0.034);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.055);
  --line-3: rgba(255, 255, 255, 0.18);

  --text: #f3f5f9;
  --text-2: #bcc3d0;
  --text-3: #858d9d;
  --text-4: #585f6e;

  --blue: #49b6ff;
  --blue-2: #2f8bff;
  --blue-ink: #93d3ff;
  --blue-soft: rgba(73, 182, 255, 0.12);
  --blue-line: rgba(73, 182, 255, 0.4);
  --violet: #a898ff;
  --violet-soft: rgba(168, 152, 255, 0.13);
  --violet-line: rgba(168, 152, 255, 0.38);
  --teal: #5fe0d0;
  --teal-soft: rgba(95, 224, 208, 0.12);
  --teal-line: rgba(95, 224, 208, 0.36);
  --amber: #ffc457;
  --amber-soft: rgba(255, 196, 87, 0.12);
  --amber-line: rgba(255, 196, 87, 0.4);
  --red: #ff7868;
  --red-soft: rgba(255, 120, 104, 0.13);
  --red-line: rgba(255, 120, 104, 0.4);
  --green: #52e0a4;
  --green-soft: rgba(82, 224, 164, 0.12);
  --green-line: rgba(82, 224, 164, 0.4);

  /* Latin letters and digits come from Outfit (the wordmark's face); Hebrew falls through to Heebo. */
  --font: 'Outfit', 'Heebo', 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;

  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(73, 182, 255, 0.3), 0 12px 46px -12px rgba(73, 182, 255, 0.5);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(73, 182, 255, 0.35);
  color: #fff;
}

/* The hexagon lattice the logo is cut from, barely there. */
.lattice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.17v32.33L28 64.67 0 48.5V16.17zM28 64.67V97' fill='none' stroke='%23fff' stroke-opacity='.045'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

.mono {
  font-family: var(--mono);
  direction: ltr;
  unicode-bidi: isolate;
}

a {
  color: var(--blue-ink);
}

/* Wordmark: the mark's dot is the "o", so it must always read left to right. */
.wordmark {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: isolate;
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.wordmark svg { flex: none; display: block; }
.wordmark .dot { transform-box: fill-box; transform-origin: center; }
.wordmark span { margin-inline-start: 0.06em; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: padding-box; border: 2px solid transparent; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
