:root {
  color-scheme: dark;
  --font-header: "Instrument Serif", ui-serif, Georgia, serif;
  --font-special: "Saira+Stencil", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Saira+Stencil", ui-sans-serif, system-ui, sans-serif;
  --bg0: #06070f;
  --bg1: #0a1030;
  --panel: rgba(14, 19, 46, 0.55);
  --panel-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.18);

  --text: rgba(238, 245, 255, 0.92);
  --muted: rgba(238, 245, 255, 0.72);

  --accent: #e4ff54;
  --accent-2: #ff7a59;
  --primary: #3fd69a;

  --radius: 18px;
  --radius-2: 26px;

  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #222;
  color: var(--text);
  font-family: var(--font-body), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  overflow-x: hidden;
}

/* Subtle grain + grid overlay */
.bits-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bits-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
}

.bits-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent
      3px);
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 999;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.bits-container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.bits-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 15, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bits-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.bits-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 230px;
}

.bits-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(228, 255, 84, 0.18), rgba(255, 122, 89, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.bits-brand__text {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 2rem;
  font-family: var(--font-special);
}

.bits-brand__sub {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.bits-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bits-nav__link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 160ms ease;
  font-family: "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bits-nav__link:hover {
  color: var(--text);
}

.bits-nav__link--cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(228, 255, 84, 0.18), rgba(63, 214, 154, 0.18));
  border: 1px solid rgba(228, 255, 84, 0.32);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}

.bits-nav__link--cta:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 255, 84, 0.55);
}

.bits-nav-toggle {
  display: none;
}

.bits-main {
  padding-bottom: 44px;
}

.bits-hero {
  padding: 64px 0 22px;
}

.bits-hero__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.bits-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 500;
}

.bits-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(228, 255, 84, 0.12), 0 0 40px rgba(228, 255, 84, 0.25);
}

.bits-h1 {
  margin: 18px 0 12px;
  font-size: clamp(3rem, 5.2vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-family: var(--font-header);
}

.bits-h1 strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
}

.bits-subtitle {
  margin: 0 0 14px;
  color: rgba(238, 245, 255, 0.74);
  font-size: 1.05rem;
  max-width: 60ch;
  font-family: var(--font-header);
}

.bits-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.bits-hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bits-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bits-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.bits-btn--primary {
  border-color: rgba(228, 255, 84, 0.38);
}

.bits-btn__arrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.bits-hero__note {
  margin-top: 18px;
  color: rgba(238, 245, 255, 0.64);
  font-size: 0.95rem;
}

.bits-cards-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bits-pill {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.bits-pill__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  position: relative;
}

.bits-pill__icon svg {
  width: 22px;
  height: 22px;
}

.bits-pill__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bits-pill__desc {
  margin: 8px 0 0;
  color: rgba(238, 245, 255, 0.72);
  font-weight: 300;
  font-size: 0.98rem;
  position: relative;
}

.bits-terminal {
  border-radius: var(--radius-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.bits-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(63, 214, 154, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 122, 89, 0.08), transparent 60%);
  pointer-events: none;
}

.bits-terminal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.bits-terminal__lights {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bits-light {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bits-light--live {
  background: rgba(228, 255, 84, 0.28);
  border-color: rgba(228, 255, 84, 0.45);
  box-shadow: 0 0 26px rgba(228, 255, 84, 0.28);
}

.bits-terminal__label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: rgba(238, 245, 255, 0.78);
  font-size: 0.9rem;
}

.bits-terminal__body {
  position: relative;
  padding: 16px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.92rem;
  color: rgba(238, 245, 255, 0.84);
}

.bits-terminal__line {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.bits-terminal__prompt {
  color: rgba(228, 255, 84, 0.9);
}

.bits-terminal__ok {
  color: rgba(63, 214, 154, 0.92);
}

.bits-terminal__warn {
  color: rgba(255, 122, 89, 0.92);
}

.bits-terminal__cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: rgba(228, 255, 84, 0.7);
  margin-left: 6px;
  vertical-align: -0.15em;
  animation: blink 1100ms steps(2) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.bits-section {
  padding: 52px 0;
}

.bits-section__title {
  margin: 0 0 8px;
  font-size: 3.3rem;
  letter-spacing: -0.02em;
  font-family: var(--font-header);
}

.bits-section__lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

.bits-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bits-panel {
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.bits-panel__kicker {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(228, 255, 84, 0.78);
  margin-bottom: 10px;
}

.bits-list {
  margin: 12px 0 0;
  padding: 0;
  font-weight: 300;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bits-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(238, 245, 255, 0.78);
  font-weight: 500;
}

.bits-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(228, 255, 84, 0.18);
  border: 1px solid rgba(228, 255, 84, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 2px;
}

.bits-check svg {
  width: 12px;
  height: 12px;
}

.bits-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bits-step {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.bits-step__num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: rgba(228, 255, 84, 0.84);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.bits-step__title {
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.bits-step__desc {
  margin: 0;
  color: rgba(238, 245, 255, 0.72);
  font-weight: 500;
}

.bits-contact {
  padding: 62px 0 76px;
}

.bits-contact__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: end;
}

.bits-formlike {
  display: grid;
  gap: 12px;
}

.bits-field {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 500;
}

.bits-field strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.bits-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.bits-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(6, 7, 15, 0.55);
  backdrop-filter: blur(14px);
  padding: 34px 0;
}

.bits-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bits-footer__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.bits-footer__mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(228, 255, 84, 0.32);
  background: rgba(228, 255, 84, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bits-footer__name {
  font-weight: 700;
  font-family: var(--font-special);
}

.bits-footer__copy {
  margin: 0;
  color: rgba(238, 245, 255, 0.72);
  max-width: 58ch;
  font-weight: 500;
}

.bits-footer__meta {
  margin: 0 0 8px;
  color: rgba(238, 245, 255, 0.68);
  font-weight: 500;
}

.bits-footer__meta--mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

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

  .bits-cards-row {
    grid-template-columns: 1fr;
  }

  .bits-grid-2 {
    grid-template-columns: 1fr;
  }

  .bits-steps {
    grid-template-columns: 1fr 1fr;
  }

  .bits-contact__wrap {
    grid-template-columns: 1fr;
  }

  .bits-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .bits-container {
    width: calc(100% - 28px);
  }

  .bits-nav {
    display: none;
  }

  .bits-nav.is-open {
    display: grid;
    gap: 6px;
    padding: 12px;
  }
  .bits-nav.is-open .bits-nav__link {
    padding: 5px 5px 5px 12px;
  }

  .bits-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(6, 7, 15, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    margin: 0;
  }

  .bits-nav__link {
    padding: 12px 0;
  }

  .bits-nav__link--cta {
    justify-content: center;
  }

  .bits-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
  }

  .bits-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(238, 245, 255, 0.86);
    border-radius: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bits-terminal__cursor {
    animation: none;
  }
}

