:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: rgba(16, 24, 42, 0.72);
  --line: rgba(120, 160, 220, 0.14);
  --text: #e8eefc;
  --muted: #93a0bd;
  --accent: #00e5a8;
  --accent-2: #4f8cff;
  --danger: #ff6b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

/* Keyboard focus — mouse clicks keep a clean look */
:focus {
  outline: none;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.bg-glow {
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 229, 168, 0.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(79, 140, 255, 0.16), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(0, 229, 168, 0.08), transparent 35%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  min-height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-shrink: 0;
}

.header__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
}

.header__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}

.header__tagline {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 280px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: url("assets/logo-bot-512.png") center / cover no-repeat;
  box-shadow: 0 0 20px rgba(0, 229, 168, 0.4);
  flex-shrink: 0;
}

.logo__text span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav a.active {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #19c4ff);
  color: #041018;
  font-weight: 700;
  border: 0;
  box-shadow: 0 10px 30px rgba(0, 229, 168, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 229, 168, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--stop {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.45);
}

.btn--stop:hover {
  color: #ffd0d0;
  border-color: rgba(255, 120, 120, 0.7);
  box-shadow: none;
  transform: none;
}

.btn--maintenance-on {
  color: #ffe2c4;
  border-color: rgba(255, 170, 80, 0.55);
  background: rgba(140, 70, 20, 0.35);
}

.btn--maintenance-on:hover {
  color: #fff0dc;
  border-color: rgba(255, 170, 80, 0.8);
  background: rgba(160, 80, 24, 0.45);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1,
.section__head h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead,
.section__head p,
.cta p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 2rem;
}

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

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--mono);
  color: var(--text);
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.dot:nth-child(1) { background: #ff6b8a; }
.dot:nth-child(2) { background: #ffd166; }
.dot:nth-child(3) { background: #00e5a8; }

.panel__title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.panel__body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.probe-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(120, 160, 220, 0.12);
  font-family: var(--mono);
  font-size: 0.92rem;
}

.probe-row span:first-child {
  color: var(--muted);
}

.probe-row--total {
  border-bottom: 0;
  margin-bottom: 0.8rem;
}

.probe-value--online {
  color: var(--accent-2);
  font-weight: 600;
}

.probe-value--ping {
  color: var(--accent);
  font-weight: 600;
}

.probe-value--accent,
.probe-value--ok {
  color: var(--accent);
  font-weight: 600;
}

.probe-value--bad {
  color: var(--danger);
  font-weight: 600;
}

.probe-value--wait {
  color: var(--muted);
}

#spark {
  width: 100%;
  height: 90px;
  display: block;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.55), transparent);
  border-block: 1px solid var(--line);
}

.section__head {
  margin-bottom: 2rem;
  max-width: 720px;
}

.cards,
.services,
.metrics {
  display: grid;
  gap: 1rem;
}

.cards--3,
.services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.service,
.metric {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(8px);
}

.card__icon {
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.card h3,
.service h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.card p,
.service p,
.metric__hint {
  color: var(--muted);
}

.service ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.service li + li {
  margin-top: 0.35rem;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric__label {
  display: block;
  font-family: var(--mono);
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--mono);
  margin-bottom: 0.35rem;
}

.section--cta {
  padding-bottom: 5rem;
}

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(0, 229, 168, 0.12), transparent 40%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.cta__box {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.cta__link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cta__note {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__grid,
  .cards--3,
  .services,
  .metrics,
  .cta {
    grid-template-columns: 1fr;
  }

  .header__tagline {
    display: none;
  }

  .header__actions {
    margin-left: auto;
  }

  .header .btn--sm {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: rgba(7, 11, 20, 0.96);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    padding: 0.5rem 1rem 1rem;
    z-index: 60;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

.products {
  display: grid;
  gap: 1.2rem;
}

.product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
}

.product__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

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

.product__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.product__badge {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.product h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .product__head {
    flex-direction: column;
    align-items: stretch;
  }

  .product__cta {
    align-self: flex-end;
  }
}

.product__url {
  margin-bottom: 1rem;
}

.product__url a,
.cta p a,
.cta__note a,
.product code {
  color: var(--accent-2);
}

.product p,
.product__list,
.product__note {
  color: var(--muted);
}

.product__list {
  margin: 1rem 0 1rem 1.1rem;
}

.product__list li + li {
  margin-top: 0.35rem;
}

.product__note {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.product code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.lab-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.steps {
  margin: 1rem 0 1.5rem 1.1rem;
  color: var(--muted);
}

.steps li + li {
  margin-top: 0.7rem;
}

.steps strong {
  color: var(--text);
}

.flow {
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow__ok {
  color: var(--accent);
}
