:root {
  --bg: #070712;
  --bg-2: #10101f;
  --panel: rgba(18, 18, 34, 0.78);
  --panel-strong: rgba(25, 24, 45, 0.92);
  --text: #f7f3ff;
  --muted: #b8b0ce;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #86b7ff;
  --cyan: #63f0ff;
  --pink: #ff8bcb;
  --gold: #ffd166;
  --green: #7ef2c7;
  --danger: #ff6e89;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(134, 183, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 24%, rgba(255, 139, 203, 0.12), transparent 30rem),
    linear-gradient(180deg, #060611 0%, #111020 52%, #080811 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -2;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(7, 7, 18, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 28px rgba(134, 183, 255, 0.24);
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--muted);
  font-size: 0.75rem;
}

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

.nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #ddd7ee;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 92px) 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 17, 0.92) 0%, rgba(6, 6, 17, 0.58) 42%, rgba(6, 6, 17, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 6, 17, 0.06) 0%, rgba(6, 6, 17, 0.2) 56%, #080811 100%),
    var(--hero-image) center / cover no-repeat;
  transform: translate3d(var(--mouse-x, 0), var(--mouse-y, 0), 0) scale(1.04);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  animation: riseIn 900ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

h1 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0;
  max-width: 680px;
  color: #ddd8f1;
  font-size: clamp(1.02rem, 1.7vw, 1.26rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255,255,255,0.09);
  color: white;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.28);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(134,183,255,0.95), rgba(255,139,203,0.88));
  color: #090813;
  border-color: transparent;
}

.btn[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

.section {
  position: relative;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 6vw, 92px);
}

.section.tight {
  padding-top: 36px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-head h2,
.legal-article h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-intro h1 {
  font-size: clamp(2rem, 3.65vw, 3.65rem);
  overflow-wrap: anywhere;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

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

.bot-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.bot-panel img.banner {
  width: 100%;
  aspect-ratio: 17 / 6;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.04) contrast(1.05);
}

.bot-panel-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.bot-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-title-row img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.22);
}

.bot-title-row h3 {
  margin: 0;
  font-size: 1.35rem;
}

.bot-title-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #e8e2f8;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(126,242,199,0.5);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.055);
}

.signal {
  padding: 18px;
  min-height: 116px;
  border-right: 1px solid var(--line);
}

.signal:last-child {
  border-right: 0;
}

.signal strong {
  display: block;
  font-size: 1.6rem;
  color: white;
}

.signal span {
  color: var(--muted);
  line-height: 1.45;
}

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

.legal-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  transition: transform 180ms ease, border-color 180ms ease;
}

.legal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134,183,255,0.42);
}

.legal-card .tag {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-card h3 {
  margin: 18px 0 10px;
  font-size: 1.7rem;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.status-preview {
  overflow: hidden;
}

.status-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-teaser img {
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-teaser > div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 46px);
}

.status-teaser h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.status-teaser p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(126,242,199,0.28);
  background: rgba(126,242,199,0.1);
  color: #a8f8dd;
  font-weight: 900;
  font-size: 0.78rem;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(126,242,199,0.68);
}

.status-main {
  padding-top: 72px;
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.76fr);
  gap: 26px;
  align-items: stretch;
  padding: 124px clamp(20px, 6vw, 92px) 52px;
}

.status-hero-copy,
.status-hero-art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 60px);
}

.status-hero-copy h1 {
  font-size: clamp(3rem, 6vw, 6.8rem);
}

.status-hero-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 760px;
}

.status-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  width: fit-content;
  border: 1px solid rgba(126,242,199,0.22);
  border-radius: var(--radius);
  background: rgba(126,242,199,0.08);
}

.status-pulse,
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(126,242,199,0.72);
}

.status-pulse {
  animation: pulse 1600ms ease-in-out infinite;
}

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

.status-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent),
    rgba(18,18,34,0.76);
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card h2 {
  margin: 0;
  font-size: 1.55rem;
}

.status-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.status-card.degraded .status-dot {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(255,209,102,0.72);
}

.status-card.degraded {
  border-color: rgba(255,209,102,0.26);
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 0.8rem;
}

.status-metrics strong {
  color: white;
  font-size: 1.2rem;
}

.incident-list {
  display: grid;
  gap: 12px;
}

.incident-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,18,34,0.72);
}

.incident-card span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.82rem;
}

.incident-card h3 {
  margin: 8px 0;
  font-size: 1.24rem;
}

.incident-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.dashboard-preview {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
    rgba(255,255,255,0.015);
}

.dashboard-showcase {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 16%, rgba(115, 128, 255, 0.14), transparent 34%),
    radial-gradient(circle at 42% 95%, rgba(255, 117, 196, 0.1), transparent 30%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(8,8,18,0.52);
}

.dash-server-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.dash-server-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

.dash-server-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dash-server-head strong {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-server-head span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.dash-sidebar button,
.feature-nav a {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  text-align: left;
  background: transparent;
  cursor: default;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.dash-sidebar button.active,
.dash-sidebar button:hover,
.feature-nav a.active,
.feature-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.dash-sidebar button:hover {
  transform: translateX(3px);
  box-shadow: inset 2px 0 0 rgba(126, 245, 220, 0.86);
}

.dash-main {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 26px;
}

.dash-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-sync-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.dash-mini-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dash-mini-status span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #dad7ef;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255,255,255,0.055);
}

.bot-switch,
.bot-selector {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
}

.bot-switch button,
.bot-selector button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px 9px 9px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  background: transparent;
  cursor: default;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.bot-switch img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
}

.bot-switch button:hover,
.bot-selector button:hover {
  color: white;
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
}

.bot-switch button.selected,
.bot-selector button.active {
  color: white;
  background: linear-gradient(135deg, rgba(126,245,220,0.18), rgba(255,117,196,0.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.dash-cards,
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-cards > div,
.config-card,
.login-card,
.dashboard-intro,
.dashboard-window,
.dashboard-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,18,34,0.72);
}

.dash-cards > div,
.config-card {
  min-height: 150px;
  padding: 18px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.dash-cards > div:hover {
  transform: translateY(-2px);
  border-color: rgba(126,245,220,0.34);
  background: rgba(24,24,46,0.86);
}

.dash-cards strong,
.config-card h3 {
  display: block;
  margin: 0 0 10px;
  color: white;
  font-size: 1.12rem;
}

.dash-cards span,
.config-card p {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-main {
  padding-top: 72px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 22px;
  padding: 124px clamp(20px, 6vw, 92px) 48px;
}

.dashboard-intro,
.login-card {
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow);
}

.dashboard-intro h1 {
  font-size: clamp(3rem, 6vw, 6.8rem);
}

.dashboard-intro p,
.login-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 16px;
}

.login-card h2 {
  margin: 0;
  font-size: 2rem;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #ddd8f1;
  line-height: 1.55;
}

.dashboard-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 0 clamp(20px, 6vw, 92px) 96px;
}

.dashboard-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(20px, 6vw, 92px) 96px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.dashboard-locked h2 {
  margin: 10px 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.dashboard-locked p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-rail {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.dashboard-rail > strong {
  margin-bottom: 8px;
}

.server-chip {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,0.045);
  color: white;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.server-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.server-chip.active {
  border-color: rgba(99,240,255,0.42);
  background: rgba(99,240,255,0.12);
}

.server-chip.muted {
  opacity: 0.48;
}

.dashboard-window {
  overflow: hidden;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.dashboard-toolbar h2 {
  margin: 8px 0 0;
  font-size: 2.3rem;
}

.bot-selector button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.bot-selector img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
}

.feature-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.feature-workspace {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.owner-warning {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255,209,102,0.22);
  border-radius: var(--radius);
  background: rgba(255,209,102,0.08);
}

.owner-warning strong {
  color: #fff1bc;
}

.owner-warning span {
  color: #e1d5b8;
}

.is-hidden {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 4, 12, 0.78);
  backdrop-filter: blur(18px);
}

.auth-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(99,240,255,0.08), rgba(255,139,203,0.08)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.auth-dialog h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.auth-dialog p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-preview {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(99,240,255,0.2);
  border-radius: var(--radius);
  background: rgba(99,240,255,0.075);
}

.auth-preview strong {
  overflow-wrap: break-word;
}

.auth-preview span {
  color: var(--muted);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ticker {
  border-block: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: #0b0b18;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 48s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 34px;
  color: #d9d4ec;
  font-weight: 900;
  white-space: nowrap;
}

.legal-main {
  padding: 124px clamp(20px, 6vw, 92px) 80px;
}

.legal-article {
  max-width: 1060px;
  margin: 0 auto;
}

.legal-hero-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.legal-intro {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.legal-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-cover {
  min-width: 0;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #080812;
}

.notice {
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  background: rgba(255,209,102,0.1);
  color: #f6ebc4;
  line-height: 1.6;
}

.doc-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 27, 0.86);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: white;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.toc a:hover {
  color: white;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,18,34,0.72);
}

.legal-block h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.legal-block h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  color: var(--cyan);
}

.legal-block p,
.legal-block li {
  color: #d9d3ea;
  line-height: 1.72;
}

.legal-block ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.footer {
  padding: 34px clamp(20px, 6vw, 92px);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(5,5,12,0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowDrift {
  from { transform: translate3d(var(--mouse-x, 0), var(--mouse-y, 0), 0) scale(1.04); }
  to { transform: translate3d(calc(var(--mouse-x, 0) - 18px), calc(var(--mouse-y, 0) + 8px), 0) scale(1.09); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333333%); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    padding-block: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 88vh;
    padding-top: 142px;
  }

  .bot-grid,
  .legal-preview,
  .legal-hero-card,
  .doc-grid,
  .status-teaser,
  .status-hero,
  .dashboard-showcase,
  .dashboard-hero,
  .dashboard-app,
  .dashboard-layout,
  .dashboard-locked {
    grid-template-columns: 1fr;
  }

  .dashboard-locked {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-main,
  .dashboard-main {
    padding-top: 118px;
  }

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

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal:nth-child(2) {
    border-right: 0;
  }

  .signal:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .toc {
    position: static;
  }

  .dash-sidebar,
  .feature-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dash-cards,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.35rem;
  }

  .legal-main {
    padding-inline: 18px;
  }

  .legal-intro,
  .legal-block {
    padding: 22px;
  }

  .legal-article h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.35rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .brand-name span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .bot-panel img.banner {
    height: auto;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-hero {
    padding-top: 32px;
  }

  .dashboard-hero {
    padding-top: 32px;
  }

  .bot-selector {
    width: 100%;
    flex-direction: column;
  }

  .bot-selector button {
    width: 100%;
  }

  .status-hero-art img,
  .status-teaser img {
    min-height: 250px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal:last-child {
    border-bottom: 0;
  }
}
