:root {
  color-scheme: dark;
  --bg: #050711;
  --bg-soft: #090d19;
  --panel: rgba(19, 23, 39, 0.84);
  --panel-strong: rgba(21, 27, 46, 0.96);
  --line: rgba(151, 164, 216, 0.16);
  --line-strong: rgba(130, 99, 255, 0.44);
  --text: #f8f9ff;
  --muted: #a6adc4;
  --muted-strong: #c3c8d8;
  --purple: #8257ff;
  --blue: #2f89ff;
  --cyan: #3ce1ff;
  --green: #42d887;
  --gold: #f5bf4e;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 68% 12%, rgba(98, 55, 190, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 38%, rgba(35, 129, 231, 0.18), transparent 28rem),
    linear-gradient(180deg, #070916 0%, var(--bg) 46%, #060911 100%);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 17, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(130, 87, 255, 0.42);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted-strong);
  font-size: 14px;
}

.desktop-nav a,
.nav-login {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-login:hover {
  color: var(--text);
}

.nav-login {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
}

.header-cta {
  justify-self: end;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  box-shadow: 0 14px 36px rgba(63, 115, 255, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.mobile-menu-button {
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

.mobile-nav {
  display: none;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px clamp(24px, 4vw, 68px) 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 22px;
  border: 1px solid rgba(130, 87, 255, 0.32);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(130, 87, 255, 0.12);
  color: #c8b8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
  background: linear-gradient(90deg, #a78bff 0%, #4ca4ff 50%, #58e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.command-card,
.dashboard-shell,
.feature-card,
.ranking-board,
.contact-section,
.demo-dialog {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 27, 47, 0.92), rgba(9, 13, 24, 0.92));
  box-shadow: var(--shadow);
}

.command-card {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-radius: 28px;
  padding: 26px;
}

.command-card::before {
  position: absolute;
  inset: -30% -18% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 137, 255, 0.2), transparent 68%);
  content: "";
}

.panel-header,
.section-title,
.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header strong,
.section-title strong {
  display: block;
  font-size: 18px;
}

.panel-header span,
.section-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 30px;
  border: 1px solid rgba(66, 216, 135, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(66, 216, 135, 0.1);
  color: #6df0a7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.metric-grid article,
.mini-panel,
.dashboard-metrics article,
.live-card,
.activity-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.72);
}

.metric-grid article {
  padding: 20px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.operations-map {
  position: relative;
  display: grid;
  width: min(440px, 100%);
  aspect-ratio: 1.8;
  place-items: center;
  margin: 26px auto 18px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(130, 87, 255, 0.34);
  border-radius: 50%;
}

.orbit-one {
  width: 88%;
  height: 78%;
  animation: spin 14s linear infinite;
}

.orbit-two {
  width: 60%;
  height: 52%;
  border-color: rgba(47, 137, 255, 0.34);
  animation: spin 10s linear infinite reverse;
}

.orbit-center {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 8px solid rgba(130, 87, 255, 0.36);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(130, 87, 255, 0.96), rgba(47, 137, 255, 0.96));
  box-shadow: 0 0 52px rgba(92, 89, 255, 0.52);
  font-weight: 900;
}

.agent {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(13, 18, 34, 0.96);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(130, 87, 255, 0.28);
}

.agent-a {
  top: 15%;
  left: 18%;
}

.agent-b {
  top: 16%;
  right: 17%;
}

.agent-c {
  bottom: 12%;
  right: 22%;
}

.agent-d {
  bottom: 15%;
  left: 20%;
}

.mini-panel {
  position: relative;
  z-index: 2;
  padding: 18px;
}

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

.team-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.team-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.team-list strong {
  color: var(--green);
}

.chat-preview {
  margin-top: 14px;
}

.chat-preview p {
  margin: 12px 0 0;
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 13px;
}

.chat-preview span {
  color: #b79cff;
  font-weight: 800;
}

.section-block,
.teams-section,
.contact-section {
  padding: 86px clamp(24px, 4vw, 68px);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.teams-section h2,
.contact-section h2,
.demo-dialog h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.section-heading p,
.teams-section p,
.contact-section p,
.demo-dialog p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 210px;
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 87, 255, 0.42);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 28px 0 0;
  font-size: 22px;
}

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

.dashboard-section {
  padding: 30px clamp(24px, 4vw, 68px) 86px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  max-width: 1380px;
  margin: 0 auto;
  border-radius: 24px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 680px;
  border-right: 1px solid var(--line);
  padding: 24px;
  background: rgba(5, 8, 17, 0.72);
}

.brand.compact {
  margin-bottom: 22px;
}

.dashboard-sidebar a {
  border-radius: 10px;
  padding: 12px;
  color: var(--muted-strong);
}

.dashboard-sidebar a.active,
.dashboard-sidebar a:hover {
  background: rgba(130, 87, 255, 0.16);
  color: white;
}

.dashboard-content {
  min-width: 0;
  padding: 28px;
}

.dashboard-topbar h2 {
  margin: 0;
}

.dashboard-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.dashboard-metrics article {
  padding: 18px;
}

.dashboard-metrics span,
.dashboard-metrics small {
  color: var(--muted);
}

.dashboard-metrics strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.dashboard-metrics small {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

.live-card,
.activity-card {
  min-height: 330px;
  padding: 22px;
}

.agent-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.agent-lines p {
  margin: 0;
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.agent-lines b,
.agent-lines span {
  display: block;
}

.agent-lines span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.activity-card ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.activity-card li {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted-strong);
}

.activity-card li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.activity-card b {
  color: var(--muted);
  font-size: 12px;
}

.teams-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.ranking-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
  border-radius: 24px;
  padding: 26px;
}

.rank-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.rank-card.first {
  min-height: 250px;
  border-color: rgba(245, 191, 78, 0.36);
  box-shadow: 0 0 46px rgba(245, 191, 78, 0.12);
}

.rank-card.second,
.rank-card.third {
  min-height: 200px;
}

.rank-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-weight: 900;
}

.rank-card.first span {
  background: linear-gradient(135deg, var(--gold), #ff7c42);
}

.rank-card strong {
  font-size: 20px;
}

.rank-card p {
  margin: 12px 0 0;
  color: var(--muted-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 36px;
  align-items: start;
  margin: 0 clamp(24px, 4vw, 68px) 68px;
  border-radius: 24px;
}

.application-section {
  position: relative;
  overflow: hidden;
}

.application-section::before {
  position: absolute;
  inset: auto auto -170px -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 225, 255, 0.11), transparent 68%);
  content: "";
}

.application-steps {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.application-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.application-steps strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(130, 87, 255, 0.18);
  color: #c8b8ff;
  font-size: 12px;
}

.application-steps span {
  color: var(--muted-strong);
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.login-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(7, 11, 22, 0.84);
  color: var(--text);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.login-form input:focus {
  border-color: rgba(130, 87, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(130, 87, 255, 0.13);
}

.lead-form textarea {
  min-height: 118px;
  resize: vertical;
  padding: 14px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.form-feedback[data-type="success"] {
  color: #79f2ad;
}

.form-feedback[data-type="error"] {
  color: #ff8f9b;
}

.is-loading button[type="submit"] {
  opacity: 0.72;
  cursor: wait;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.demo-dialog {
  width: min(640px, calc(100vw - 32px));
  border-radius: 24px;
  padding: 28px;
  color: var(--text);
}

.demo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  font-size: 24px;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.demo-flow span {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-weight: 800;
}

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

@media (max-width: 1100px) {
  .hero-section,
  .teams-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .command-card {
    min-height: auto;
  }

  .feature-grid,
  .dashboard-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .icon-button {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    position: sticky;
    top: 76px;
    z-index: 19;
    display: grid;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    background: rgba(5, 7, 17, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    border-radius: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-login {
    min-height: 44px;
    border-radius: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
  }

  .hero-section {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .metric-grid,
  .feature-grid,
  .dashboard-metrics,
  .dashboard-grid,
  .agent-lines,
  .ranking-board,
  .demo-flow,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .command-card,
  .dashboard-content,
  .ranking-board,
  .contact-section {
    padding: 20px;
  }

  .panel-header,
  .dashboard-topbar {
    flex-direction: column;
  }

  .teams-section,
  .section-block,
  .dashboard-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .contact-section {
    margin-bottom: 34px;
  }
}
