:root {
  color-scheme: dark;
  --bg: #07100d;
  --panel: rgba(14, 27, 24, 0.78);
  --panel-strong: rgba(18, 36, 32, 0.92);
  --line: rgba(187, 255, 221, 0.15);
  --text: #effff7;
  --muted: #9ab6ad;
  --green: #29ff87;
  --cyan: #49dcff;
  --yellow: #f8d66d;
  --red: #ff5f6d;
  --purple: #9f7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(41, 255, 135, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18rem),
    linear-gradient(135deg, #06100d 0%, #081713 48%, #060b0a 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.026) 0,
    rgba(255, 255, 255, 0.026) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.28;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.78);
  backdrop-filter: blur(18px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem 0.3rem 0.24rem 0.65rem;
  border: 1px solid rgba(41, 255, 135, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(41, 255, 135, 0.13), rgba(73, 220, 255, 0.07)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 24px rgba(41, 255, 135, 0.11);
}

.lang-label {
  padding-right: 0.35rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.lang-switch button {
  min-width: 2.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.62rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lang-switch button.active {
  background: var(--green);
  color: #04110b;
  box-shadow: 0 0 18px rgba(41, 255, 135, 0.32);
}

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

.brand.compact {
  margin-bottom: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(41, 255, 135, 0.44);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(41, 255, 135, 0.22), rgba(73, 220, 255, 0.15));
  color: var(--green);
  font-size: 0.78rem;
  box-shadow: 0 0 30px rgba(41, 255, 135, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav a,
.sidebar a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.nav a.active,
.nav a:hover,
.sidebar a.active,
.sidebar a:hover {
  color: var(--text);
  background: rgba(41, 255, 135, 0.11);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--green);
}

.legal-view {
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--panel);
}

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

.hero,
.section,
.pricing-hero,
.pricing-grid,
.auth-view {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 5rem);
  align-items: center;
  padding: 4rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero-text,
.section-copy,
.pricing-hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.hero-actions,
.hero-metrics,
.widget-head,
.dashboard-head,
.terminal-header,
.scan-card {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto;
  gap: 0.8rem;
  align-items: end;
  max-width: 52rem;
  margin: 0 0 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.lead-form .lead-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-form .lead-status[data-tone="success"] {
  color: var(--green);
}

.lead-form .lead-status[data-tone="warning"] {
  color: var(--yellow);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.hero-metrics span {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
}

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

.primary-button,
.ghost-button,
.secondary-button {
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 0.55rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--bg);
}

.primary-button {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 14px 38px rgba(41, 255, 135, 0.18);
}

.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.secondary-link {
  color: var(--green);
  font-weight: 800;
}

.full {
  width: 100%;
}

.hero-terminal,
.table-panel,
.widget,
.price-card,
.auth-card,
.steps-grid article,
.alert-preview,
.testimonial,
.scanner-panel {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-terminal {
  overflow: hidden;
  min-height: 35rem;
}

.terminal-header {
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-header span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
}

.terminal-header span:nth-child(2) {
  background: var(--yellow);
}

.terminal-header span:nth-child(3) {
  background: var(--red);
}

.terminal-header p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.scan-card {
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.18);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.safe {
  border-color: rgba(41, 255, 135, 0.34);
  background: rgba(41, 255, 135, 0.12);
  color: var(--green);
}

.badge.danger {
  border-color: rgba(255, 95, 109, 0.38);
  background: rgba(255, 95, 109, 0.12);
  color: var(--red);
}

.radar-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  margin: 1rem;
}

.radar-ring {
  width: min(17rem, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(41, 255, 135, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(41, 255, 135, 0.22) 0 2%, transparent 3%),
    repeating-radial-gradient(circle, transparent 0 3.1rem, rgba(41, 255, 135, 0.22) 3.15rem 3.2rem),
    conic-gradient(from 0deg, rgba(41, 255, 135, 0.02), rgba(41, 255, 135, 0.32), rgba(73, 220, 255, 0.03));
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(1turn); }
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 16, 13, 0.86);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.coin-btc {
  right: 16%;
  top: 18%;
  color: var(--yellow);
}

.coin-usdt {
  left: 12%;
  bottom: 21%;
}

.coin-ton {
  right: 22%;
  bottom: 16%;
  color: var(--cyan);
}

.signal-list {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.signal-list p {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  color: var(--muted);
}

.signal-list span {
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.43rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(41, 255, 135, 0.55);
}

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

.section {
  padding: 4.5rem 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.steps-grid,
.preview-grid,
.pricing-grid,
.widget-grid {
  display: grid;
  gap: 1rem;
}

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

.steps-grid article,
.alert-preview,
.testimonial,
.price-card,
.widget,
.auth-card,
.scanner-panel {
  padding: 1.25rem;
}

.step-index {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--green);
  font-weight: 900;
}

.steps-grid p,
.alert-preview p,
.testimonial p,
.price-card li,
.auth-card .muted {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--text);
}

.preview-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.testimonial {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(73, 220, 255, 0.08), rgba(41, 255, 135, 0.06)),
    var(--panel);
}

.app-shell.active {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: calc(100vh - 4.8rem);
}

.sidebar {
  position: sticky;
  top: 4.75rem;
  align-self: start;
  height: calc(100vh - 4.75rem);
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: rgba(6, 14, 12, 0.5);
}

.sidebar a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 0.5rem;
}

.telegram-card {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(73, 220, 255, 0.22);
  border-radius: 0.5rem;
  background: rgba(73, 220, 255, 0.08);
}

.telegram-card span,
.telegram-card p {
  color: var(--muted);
}

.dashboard {
  width: min(1240px, 100%);
  padding: clamp(1rem, 3vw, 2rem);
}

.dashboard h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.dashboard-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.scanner-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.integration-status {
  min-height: 2.8rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.integration-status[data-tone="success"],
#auth-status[data-tone="success"] {
  border-color: rgba(41, 255, 135, 0.3);
  color: var(--green);
}

.integration-status[data-tone="warning"],
#auth-status[data-tone="warning"] {
  border-color: rgba(248, 214, 109, 0.34);
  color: var(--yellow);
}

.integration-status[data-tone="danger"],
#auth-status[data-tone="danger"] {
  border-color: rgba(255, 95, 109, 0.34);
  color: var(--red);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0.65rem 0.75rem;
}

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

.widget {
  min-height: 12rem;
}

.widget.wide {
  grid-column: span 2;
}

.widget-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

canvas {
  width: 100%;
  height: 14rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.risk-widget {
  text-align: center;
}

.risk-meter {
  --score: 28;
  display: grid;
  place-items: center;
  width: 9.4rem;
  aspect-ratio: 1;
  margin: 0.8rem auto 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel-strong) 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.risk-meter span {
  font-size: 2.6rem;
  font-weight: 900;
}

.positive {
  color: var(--green);
  font-weight: 800;
}

.checks {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
}

.checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--green);
}

.merchant-list,
#alerts-list {
  display: grid;
  gap: 0.75rem;
}

.merchant-row,
.alert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
}

.merchant-row p,
.alert-row p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-hero {
  padding: 5rem 0 2rem;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 14ch;
  margin-right: auto;
  margin-left: auto;
}

.pricing-hero p {
  margin-right: auto;
  margin-left: auto;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem 0 5rem;
}

.price-card {
  min-height: 31rem;
}

.price-card.featured {
  border-color: rgba(41, 255, 135, 0.36);
  background: linear-gradient(180deg, rgba(41, 255, 135, 0.12), rgba(14, 27, 24, 0.8));
}

.price {
  margin: 1rem 0;
  font-size: 3rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  display: grid;
  gap: 0.75rem;
  min-height: 10rem;
  margin: 0 0 2rem;
  padding-left: 1.1rem;
}

.auth-view.active {
  display: grid;
  min-height: calc(100vh - 4.8rem);
  place-items: center;
  padding: 3rem 0;
}

.auth-card {
  width: min(100%, 28rem);
}

.auth-card h1 {
  max-width: none;
  font-size: 2.5rem;
}

.auth-card label {
  margin-bottom: 1rem;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

@media (max-width: 960px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .top-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .preview-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    display: flex;
    height: auto;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .brand,
  .telegram-card {
    display: none;
  }

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

@media (max-width: 640px) {
  .top-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    justify-content: center;
  }

  .topbar .ghost-button {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-terminal {
    min-height: 30rem;
  }

  .hero-metrics {
    display: grid;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .scanner-panel,
  .widget-grid {
    grid-template-columns: 1fr;
  }

  .widget.wide {
    grid-column: auto;
  }

  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .merchant-row,
  .alert-row {
    grid-template-columns: 1fr;
  }
}
