/*
 * starxui.com — product site for the StarUI IPTV panel.
 * Palette and type follow the panel's Ultra Dark design system (apps/web/src/app/globals.css):
 * background #08090B · sidebar #0D0F12 · cards #12151A · elevated #191D24 · borders #252A33
 * text #F4F6FA · secondary text #9CA5B4 · accent #397BFF · success #22C55E · warning #F59E0B.
 * No inline styles anywhere: the Content-Security-Policy does not allow them.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2?v=206f01ed08") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2?v=55419aa06f") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --side: #0d0f12;
  --card: #12151a;
  --elev: #191d24;
  --border: #252a33;
  --line: #1d2128;
  --line-soft: #16191f;
  --text: #f4f6fa;
  --muted: #9ca5b4;
  --faint: #6b7383;
  --accent: #397bff;
  --accent-hover: #4d89ff;
  --accent-text: #8fb2ff;
  --ok: #22c55e;
  --ok-text: #4ade80;
  --warn: #f59e0b;
  --warn-text: #fbbf24;
  --radius: 16px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: clip;
}

::selection {
  background: rgba(57, 123, 255, .38);
  color: #fff;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.i {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 1.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .2s, transform .15s;
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(57, 123, 255, .7);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(57, 123, 255, .8);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #353b47;
  background: rgba(255, 255, 255, .06);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15.5px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 9, 11, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .2s, background-color .2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(8, 9, 11, .86);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 30px;
}

.brand-x {
  color: var(--accent);
}

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

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}

.nav a:not(.btn):hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}

.lang-switch .i {
  width: 16px;
  height: 16px;
}

.lang-switch:hover {
  border-color: var(--border);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle .i {
  width: 20px;
  height: 20px;
}

.menu-toggle span {
  display: inline-flex;
}

.menu-toggle .menu-icon-close,
.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: inline-flex;
}

@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 15, .98);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 16px;
  }

  .nav a:not(.btn):hover {
    background: transparent;
  }

  .nav-cta {
    display: inline-flex;
    height: 46px;
    margin-top: 18px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 104px);
}

.hero-bg {
  position: absolute;
  top: calc(-1 * var(--header-h));
  right: 0;
  left: 0;
  height: 980px;
  pointer-events: none;
  background:
    radial-gradient(50% 42% at 50% 0%, rgba(57, 123, 255, .22), transparent 72%),
    radial-gradient(26% 30% at 88% 18%, rgba(124, 116, 255, .08), transparent 70%),
    radial-gradient(26% 30% at 10% 30%, rgba(57, 123, 255, .06), transparent 70%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 6%, #000 25%, transparent 100%);
  mask-image: radial-gradient(58% 52% at 50% 6%, #000 25%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(57, 123, 255, .3);
  border-radius: 999px;
  background: rgba(57, 123, 255, .08);
  color: #c7d8ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 123, 255, .18), 0 0 12px rgba(57, 123, 255, .9);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 4.75rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(92deg, #a7c3ff 0%, #5b91ff 42%, #397bff 68%, #8d84ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 479px) {
  .hero-ctas {
    flex-direction: column;
    align-self: stretch;
  }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .i {
  width: 16px;
  height: 16px;
  color: var(--ok);
  stroke-width: 2.25;
}

/* ---------- Dashboard illustration ---------- */

.mock-wrap {
  position: relative;
  margin-top: clamp(52px, 7vw, 84px);
}

.mock-wrap::before {
  content: "";
  position: absolute;
  top: 6%;
  right: 12%;
  left: 12%;
  height: 64%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(57, 123, 255, .34), transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}

.mock {
  position: relative;
  overflow: hidden;
  border: 1px solid #272c36;
  border-radius: 14px;
  background: #0a0c0f;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .018), 0 50px 120px -40px rgba(0, 0, 0, .95);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}

.mock p {
  margin: 0;
}

.mock-bar {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--side);
}

.mock-dots {
  display: flex;
  gap: 7px;
}

.mock-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #262b33;
}

.mock-url {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.mock-url .i {
  width: 12px;
  height: 12px;
}

.mock-url span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
}

.mock-side {
  padding: 14px 10px 24px;
  border-right: 1px solid var(--line);
  background: var(--side);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 10px;
}

.mock-brand .mark {
  width: 26px;
  height: 26px;
}

.mock-brand b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.mock-brand small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mock .mock-group {
  margin: 12px 8px 4px;
  color: #5d6575;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mock-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-side li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mock-side li span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-side li .i {
  width: 14px;
  height: 14px;
}

.mock-side li.is-active {
  background: var(--elev);
  color: var(--text);
}

.mock-side li.is-active .i {
  color: var(--accent);
}

.mock-side li em {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.mock-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px 22px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock .mock-title {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.02em;
}

.mock-top-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-pill,
.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11.5px;
  white-space: nowrap;
}

.mock-pill {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}

.mock-pill .i {
  width: 13px;
  height: 13px;
}

.mock-live {
  background: rgba(34, 197, 94, .1);
  color: var(--ok-text);
  font-weight: 600;
}

.mock-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mock-stat,
.mock-card {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #1f242c;
  border-radius: 10px;
  background: var(--card);
}

.mock-stat p {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.mock-stat strong small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.mock-stat > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-stat > span.up {
  color: var(--ok-text);
}

.mock-stat > span.warn {
  color: var(--warn-text);
}

.mock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 10px;
}

.mock-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mock .mock-card-head p {
  font-size: 12px;
  font-weight: 600;
}

.mock-card-head span {
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
}

.chart {
  position: relative;
  height: 148px;
}

.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid {
  fill: none;
  stroke: #1f242c;
  stroke-dasharray: 3 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-peak {
  position: absolute;
  top: 13.2%;
  left: 83.333%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 0 16px 4px rgba(57, 123, 255, .7);
}

.chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #5d6575;
  font-family: var(--mono);
  font-size: 10px;
}

.meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 11px;
}

.meter b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meter i {
  display: block;
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #1e232b;
}

.meter u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #397bff, #6f9dff);
}

.w-23 { width: 23%; }
.w-41 { width: 41%; }
.w-58 { width: 58%; }

.mock-svc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.mock-svc span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mock-svc i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(34, 197, 94, .7);
}

.mock-svc b {
  color: var(--ok-text);
  font-size: 10.5px;
  font-weight: 600;
}

.mock-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.mock-table th {
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  color: #5d6575;
  font-size: 10.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.mock-table td {
  padding: 8px;
  border-bottom: 1px solid #171a20;
  color: var(--muted);
  white-space: nowrap;
}

.mock-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.mock-table th:first-child,
.mock-table td:first-child {
  padding-left: 0;
}

.mock-table th:last-child,
.mock-table td:last-child {
  padding-right: 0;
}

.mock-table tr:last-child td {
  border-bottom: 0;
}

.mock-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 19px;
  margin-right: 9px;
  border-radius: 4px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}

.ch-1 { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.ch-2 { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.ch-3 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.ch-4 { background: linear-gradient(135deg, #f59e0b, #92400e); }

.st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.st:has(.spin)::before {
  display: none;
}

.st-ok {
  background: rgba(34, 197, 94, .1);
  color: var(--ok-text);
}

.st-warn {
  background: rgba(245, 158, 11, .1);
  color: var(--warn-text);
}

.spin {
  display: inline-flex;
}

.spin .i {
  width: 12px;
  height: 12px;
  stroke-width: 2.25;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1023px) {
  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-side {
    display: none;
  }
}

@media (max-width: 719px) {
  .mock {
    border-radius: 12px;
  }

  .mock-bar {
    grid-template-columns: 52px minmax(0, 1fr) 0;
    padding: 0 12px;
  }

  .mock-main {
    padding: 14px 12px 16px;
  }

  .mock-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .mock-health,
  .mock-pill,
  .mock-table .c-cat,
  .mock-table .c-br {
    display: none;
  }

  .chart {
    height: 120px;
  }
}

/* ---------- Players strip ---------- */

.players {
  padding: 64px 0 8px;
}

.players-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.players-label {
  margin: 0;
  color: var(--faint);
  font-size: 13.5px;
  letter-spacing: .01em;
}

.players-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.players-list li {
  color: #8a93a3;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 650;
  letter-spacing: -.02em;
}

.players-list .players-any {
  padding: 6px 13px;
  border: 1px dashed #2c323d;
  border-radius: 999px;
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(80px, 11vw, 128px) 0;
}

.section-tint {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0a0b0e, #0b0d10);
}

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(44px, 6vw, 64px);
  text-align: center;
}

.section-head-start {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.section-lead a,
.faq-a a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(57, 123, 255, .6);
  text-underline-offset: 3px;
}

.section-lead a:hover,
.faq-a a:hover {
  text-decoration-color: var(--accent);
}

/* ---------- Features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(57, 123, 255, .07), transparent 70%),
    linear-gradient(180deg, #111419 0%, #0c0e12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s;
}

.card:hover {
  border-color: #2a303b;
}

.card-wide {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(57, 123, 255, .26);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(57, 123, 255, .2), rgba(57, 123, 255, .06));
  box-shadow: 0 8px 22px -10px rgba(57, 123, 255, .6);
  color: var(--accent-text);
}

.card-icon .i {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.card-wide > p {
  margin-bottom: 26px;
}

.viz {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 8px;
  border: 1px solid #1a1e25;
  border-radius: 12px;
  background: #0a0c0f;
}

.vrow,
.srow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #191d24;
  border-radius: 9px;
  background: #101318;
  font-size: 13px;
}

.vrow .ch {
  margin-right: 0;
}

.vname {
  flex: none;
  min-width: 90px;
  font-weight: 560;
}

.eq {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  height: 18px;
  padding-right: 4px;
}

.eq i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #7aa5ff, #397bff);
  transform: scaleY(.35);
  transform-origin: bottom;
  animation: eq 1.3s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: -.9s; }
.eq i:nth-child(3) { animation-delay: -.3s; }
.eq i:nth-child(4) { animation-delay: -1.1s; }
.eq i:nth-child(5) { animation-delay: -.6s; }
.eq i:nth-child(6) { animation-delay: -.15s; }
.eq i:nth-child(7) { animation-delay: -.75s; }
.eq i:nth-child(8) { animation-delay: -.45s; }

.eq-idle i {
  background: #2a303b;
  transform: scaleY(.15);
  animation: none;
}

@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.a-1 { background: linear-gradient(135deg, #397bff, #1d4ed8); }
.a-2 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.a-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }

.sinfo {
  flex: 1;
  min-width: 0;
}

.sinfo b {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.sinfo small {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sip {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.sflag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 99px;
  background: rgba(245, 158, 11, .1);
  color: var(--warn-text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.sflag .i {
  width: 12px;
  height: 12px;
}

.sbtn {
  padding: 4px 10px;
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 7px;
  background: rgba(239, 68, 68, .08);
  color: #fca5a5;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.srow.is-flagged {
  border-color: rgba(245, 158, 11, .26);
  background: linear-gradient(90deg, rgba(245, 158, 11, .07), #101318 62%);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 9px;
  border: 1px solid #222731;
  border-radius: 7px;
  background: #0b0d10;
  color: #b9c6dc;
  font-family: var(--mono);
  font-size: 12px;
}

.card .kbds {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--faint);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid #2a303b;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 959px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    grid-column: span 1;
  }

  .card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .sip {
    display: none;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f13;
}

.step-n {
  display: block;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(91, 145, 255, .95), rgba(57, 123, 255, .08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 630;
  letter-spacing: -.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 859px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Roadmap ---------- */

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

.rm-col {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f13;
}

.rm-next {
  border-color: rgba(57, 123, 255, .32);
  background: linear-gradient(180deg, rgba(57, 123, 255, .08), #0d0f13 62%);
}

.rm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rm-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 630;
  letter-spacing: -.015em;
}

.rm-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rm-now .rm-dot {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(34, 197, 94, .8);
}

.rm-next .rm-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(57, 123, 255, .9);
}

.rm-later .rm-dot {
  background: #4b5261;
}

.rm-badge {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(57, 123, 255, .28);
  border-radius: 99px;
  background: rgba(57, 123, 255, .1);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.rm-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.rm-col li .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.rm-now li .i { color: var(--ok); }
.rm-next li .i { color: var(--accent); }
.rm-later li { color: var(--muted); }
.rm-later li .i { color: #4b5261; }

@media (max-width: 959px) {
  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Stack ---------- */

.stack {
  padding: 0;
}

.stack-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(57, 123, 255, .09), transparent 70%),
    #0b0d10;
}

.stack-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.stack-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  padding: 8px 12px;
  border: 1px solid #232832;
  border-radius: 9px;
  background: var(--card);
  color: #c8d2e3;
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 859px) {
  .stack-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px;
  }

  .stack-list {
    justify-content: flex-start;
  }
}

/* ---------- FAQ ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 56px;
}

.faq-wrap .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0f13;
  transition: border-color .2s, background-color .2s;
}

.faq-item[open] {
  border-color: #2a303b;
  background: #101318;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline-offset: -2px;
}

.faq-item summary .i {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform .2s var(--ease), color .2s;
}

.faq-item[open] summary .i {
  color: var(--text);
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 20px 20px;
}

.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 899px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .faq-wrap .section-head {
    position: static;
  }
}

/* ---------- Call to action ---------- */

.cta-section {
  padding-top: 0;
}

.cta {
  position: relative;
  padding: clamp(52px, 8vw, 92px) clamp(22px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(57, 123, 255, .3);
  border-radius: 24px;
  background: linear-gradient(180deg, #0f1420, #0b0d12);
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -45%;
  right: -10%;
  left: -10%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 35%, rgba(57, 123, 255, .34), transparent 70%);
  pointer-events: none;
}

.cta-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-position: center;
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(40% 50% at 50% 55%, #000 10%, transparent 100%);
  mask-image: radial-gradient(40% 50% at 50% 55%, #000 10%, transparent 100%);
}

.cta > :not(.cta-glow) {
  position: relative;
}

.cta-mark {
  display: inline-flex;
  margin-bottom: 26px;
  filter: drop-shadow(0 12px 30px rgba(57, 123, 255, .55));
}

.cta-mark .mark {
  width: 54px;
  height: 54px;
}

.cta h2 {
  max-width: 740px;
  margin: 0 auto;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.cta p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 34px;
}

.cta-email {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(57, 123, 255, .5);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
}

.cta-email:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line-soft);
  background: #07080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 400px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand .footer-legal {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--faint);
  text-decoration: none;
}

@media (max-width: 859px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ---------- Language hint (English page, Balkan browser languages) ---------- */

.lang-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border: 1px solid #2a303b;
  border-radius: 14px;
  background: rgba(18, 21, 26, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85);
  transform: translateX(-50%);
  animation: hint-in .4s var(--ease);
}

.lang-hint[hidden] {
  display: none;
}

.lang-hint p {
  margin: 0;
  font-size: 14px;
}

.lang-hint-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-hint-close:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.lang-hint-close .i {
  width: 16px;
  height: 16px;
}

@keyframes hint-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 559px) {
  .lang-hint {
    right: 16px;
    left: 16px;
    flex-wrap: wrap;
    width: auto;
    max-width: none;
    transform: none;
    animation: none;
  }

  .lang-hint p {
    flex: 1 1 100%;
  }
}

/* ---------- 404 ---------- */

.nf {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 16px;
  text-align: center;
}

.nf .brand {
  justify-content: center;
  margin-bottom: 40px;
}

.nf .nf-code {
  margin: 0;
  background: linear-gradient(180deg, #8fb2ff, rgba(57, 123, 255, .1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
}

.nf h1,
.nf h2 {
  margin: 18px 0 6px;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -.02em;
}

.nf p {
  margin: 0;
  color: var(--muted);
}

.nf-lang + .nf-lang {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.nf .btn {
  margin-top: 18px;
}

/* ---------- Scroll reveal (set up by site.js; without JS everything is visible) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
