:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(14, 18, 28, 0.78);
  --panel-strong: rgba(22, 27, 39, 0.92);
  --text: #f6f7fb;
  --muted: #a4adbf;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff4056;
  --orange: #ff8a2a;
  --yellow: #ffd166;
  --green: #41e58a;
  --blue: #2aabee;
  --blue-deep: #168acd;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 64, 86, 0.24), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(42, 171, 238, 0.14), transparent 32%),
    linear-gradient(135deg, #030407 0%, #080b11 42%, #120609 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
}

.shell {
  width: min(1140px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 64px;
  padding: 34px 0;
}

.copy {
  position: relative;
  z-index: 1;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: #dce5f7;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 38px rgba(255, 64, 86, 0.28), 0 0 18px rgba(65, 229, 138, 0.12);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-dot {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #d8deea;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.proof-grid span {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #dfe6f5;
  font-size: 14px;
  line-height: 1.25;
}

.proof-grid span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  background: transparent;
  box-shadow: 3px 3px 12px rgba(255, 209, 102, 0.38);
  transform: translateY(-62%) rotate(42deg);
}

.proof-grid span::after {
  content: none;
}

.proof-grid span.negative::before {
  left: 17px;
  width: 13px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 64, 86, 0.55);
  transform: translateY(-50%) rotate(45deg);
}

.proof-grid span.negative::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 64, 86, 0.55);
  transform: translateY(-50%) rotate(-45deg);
}

.cta-block {
  margin-top: 34px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 58px;
  padding: 0 26px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 44px rgba(42, 171, 238, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  animation: cta-breathe 4.8s ease-in-out 1.2s infinite;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(42, 171, 238, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.primary-cta:focus-visible {
  outline: 3px solid rgba(42, 171, 238, 0.62);
  outline-offset: 4px;
}

.telegram-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
}

.cta-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.terminal-panel {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58), 0 0 74px rgba(255, 64, 86, 0.1);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.brand-row,
h1,
.lead,
.proof-grid,
.cta-block,
.terminal-panel {
  animation: fade-up 520ms ease both;
}

h1 {
  animation-delay: 80ms;
}

.lead {
  animation-delay: 150ms;
}

.proof-grid {
  animation-delay: 220ms;
}

.cta-block {
  animation-delay: 290ms;
}

.terminal-panel {
  animation-delay: 180ms;
}

.terminal-panel::before {
  content: "";
  position: absolute;
  inset: -70px -120px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 64, 86, 0.28);
  filter: blur(45px);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 16px 44px rgba(42, 171, 238, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }

  50% {
    box-shadow: 0 18px 52px rgba(42, 171, 238, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.panel-topline,
.mode-card,
.risk-line,
.state-strip,
.chart {
  position: relative;
  z-index: 1;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-dots span:nth-child(1) {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 64, 86, 0.45);
}

.window-dots span:nth-child(2) {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}

.window-dots span:nth-child(3) {
  background: var(--green);
  box-shadow: 0 0 10px rgba(65, 229, 138, 0.35);
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid rgba(65, 229, 138, 0.28);
  border-radius: 999px;
  background: rgba(65, 229, 138, 0.08);
  color: #bfffd8;
  letter-spacing: 0.08em;
}

.mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 148px;
  padding: 24px;
  border: 1px solid rgba(255, 209, 102, 0.27);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 209, 102, 0.18), transparent 34%),
    radial-gradient(circle at 8% 110%, rgba(255, 64, 86, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(255, 138, 42, 0.18), rgba(255, 64, 86, 0.11)),
    var(--panel-strong);
}

.mode-card > div:first-child {
  min-width: 0;
}

.muted-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.mode-card strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 0 26px rgba(255, 209, 102, 0.32);
}

.mode-card p {
  max-width: 310px;
  margin: 12px 0 0;
  color: #b7c0d3;
  font-size: 13px;
  line-height: 1.35;
}

.risk-meter {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 68%, rgba(255, 255, 255, 0.12) 68% 100%);
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.24);
}

.risk-meter span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff3c4;
  font-size: 24px;
  font-weight: 900;
}

.risk-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.risk-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 7, 11, 0.52);
}

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

.risk-line strong {
  color: #fff;
  font-size: 14px;
  text-align: right;
}

.state-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.state {
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease;
}

.state span {
  display: block;
  width: 22px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
}

.state b {
  font-size: 13px;
  font-weight: 800;
}

.state.calm span {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.state.caution span {
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.state.danger span {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.state.active {
  border-color: rgba(255, 209, 102, 0.55);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.055));
}

.chart {
  height: 160px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
}

.chart svg {
  position: absolute;
  inset: 8px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 16px);
}

.risk-window {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 18%;
  border-left: 1px solid rgba(255, 64, 86, 0.5);
  border-right: 1px solid rgba(255, 64, 86, 0.32);
  background: linear-gradient(90deg, rgba(255, 64, 86, 0.02), rgba(255, 64, 86, 0.16), rgba(255, 64, 86, 0.02));
  box-shadow: 0 0 36px rgba(255, 64, 86, 0.16);
}

.time-window {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 64, 86, 0.14);
  color: #ffbdc6;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .shell {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 14px;
    overflow: hidden;
  }

  .copy,
  .terminal-panel {
    justify-self: center;
    width: min(100%, calc(100vw - 28px));
  }

  .brand-row {
    margin-bottom: 24px;
  }

  .live-dot {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.6vw, 41px);
    line-height: 1.02;
  }

  .lead {
    margin-top: 14px;
    font-size: 17px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .proof-grid span {
    min-height: 38px;
    padding: 10px 12px 10px 34px;
    font-size: 13px;
  }

  .proof-grid span::before,
  .proof-grid span::after {
    left: 14px;
  }

  .proof-grid span.negative::before,
  .proof-grid span.negative::after {
    left: 13px;
  }

  .cta-block {
    margin-top: 18px;
  }

  .primary-cta {
    width: 100%;
    min-height: 54px;
  }

  .terminal-panel {
    width: min(100%, calc(100vw - 28px));
    min-width: 0;
    padding: 15px;
    border-radius: 22px;
  }

  .panel-topline {
    margin-bottom: 12px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .status-pill {
    padding: 6px 8px;
    font-size: 10px;
  }

  .mode-card {
    min-height: 106px;
    padding: 16px;
    overflow: hidden;
  }

  .mode-card strong {
    font-size: 31px;
  }

  .risk-meter {
    width: 56px;
    height: 56px;
  }

  .risk-meter span {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .risk-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 12px;
  }

  .risk-line strong {
    text-align: left;
  }

  .state {
    min-height: 58px;
    padding: 11px;
  }

  .state span {
    margin-bottom: 10px;
  }

  .chart {
    height: 112px;
    margin-top: 12px;
  }

  .lead,
  .proof-grid,
  .cta-block,
  .terminal-panel,
  .risk-lines,
  .state-strip,
  .chart {
    max-width: 100%;
  }
}

@media (max-width: 430px) and (max-height: 880px) {
  .shell {
    gap: 12px;
    padding: 12px 0;
  }

  .brand-row {
    margin-bottom: 16px;
  }

  .lead {
    line-height: 1.32;
  }

  .proof-grid {
    margin-top: 14px;
  }

  .terminal-panel {
    padding: 11px;
  }

  .panel-topline > span:nth-of-type(1) {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-pill {
    display: none;
  }

  .mode-card {
    gap: 10px;
    padding: 14px;
  }

  .mode-card p {
    max-width: 230px;
  }

  .risk-meter {
    width: 48px;
    height: 48px;
  }

  .risk-meter span {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .chart {
    display: none;
  }
}
