@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #050811;
  --surface: #0c1222;
  --surface-2: #10182d;
  --text: #edf2ff;
  --muted: #98a7cc;
  --stroke: #1d2a4f;
  --blue: #5d86ff;
  --teal: #54d7ff;
  --violet: #9176ff;
  --success: #36e17d;
  --warning: #ffb020;
  --danger: #ff4d6d;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 0 0 1px rgba(93, 134, 255, 0.16), 0 24px 80px rgba(93, 134, 255, 0.14);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(93, 134, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(145, 118, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #060913 0%, #050811 44%, #07101f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

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

a:hover {
  opacity: 0.96;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(93, 134, 255, 0.2), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(145, 118, 255, 0.16), transparent 38%),
    radial-gradient(circle at 68% 68%, rgba(84, 215, 255, 0.12), transparent 42%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.36) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-bg > .container > .section:first-child {
  padding-top: 104px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 17, 0.62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 42, 79, 0.62);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(237, 242, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(18, 28, 54, 0.6);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(29, 42, 79, 0.82);
  border-radius: 999px;
  background: rgba(14, 21, 39, 0.8);
}

.lang-link {
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(152, 167, 204, 0.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.lang-link.active {
  background: linear-gradient(135deg, rgba(93, 134, 255, 0.3), rgba(84, 215, 255, 0.22));
  color: rgba(237, 242, 255, 0.98);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(29, 42, 79, 0.82);
  border-radius: 16px;
  background: rgba(14, 21, 39, 0.68);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: rgba(18, 28, 54, 0.86);
  border-color: rgba(93, 134, 255, 0.32);
  transform: translateY(-1px);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 52%, var(--violet) 100%);
  color: #06101d;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(29, 42, 79, 0.78);
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.72);
  color: rgba(152, 167, 204, 0.96);
  font-size: 12px;
  font-weight: 600;
}

.pill {
  color: rgba(237, 242, 255, 0.9);
  font-weight: 700;
}

.pill.warn {
  color: rgba(255, 176, 32, 0.95);
}

.pill.ok {
  color: rgba(54, 225, 125, 0.95);
}

.pill.error {
  color: rgba(255, 77, 109, 0.95);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.section {
  position: relative;
  z-index: 1;
  padding: 84px 0;
}

.h1,
.page-title {
  margin: 18px 0 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.sub,
.section-sub,
.small,
.muted,
.footer-link,
.empty-state,
.footer-note {
  color: rgba(152, 167, 204, 0.92);
}

.sub,
.section-sub {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.74;
}

.small {
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1.15fr 0.85fr;
}

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

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

.card,
.form-card {
  border: 1px solid rgba(29, 42, 79, 0.78);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 21, 39, 0.82), rgba(11, 17, 31, 0.78));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.card.glow {
  box-shadow: var(--shadow-glow);
}

.card-pad,
.form-card {
  padding: 24px;
}

.kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 18px;
  border: 1px solid rgba(29, 42, 79, 0.72);
  border-radius: 18px;
  background: rgba(6, 10, 22, 0.46);
}

.kpi b {
  display: block;
  font-size: 16px;
}

.kpi span {
  color: rgba(152, 167, 204, 0.92);
  font-size: 13px;
}

.kpi-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 134, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(93, 134, 255, 0.2), rgba(84, 215, 255, 0.12));
  color: rgba(237, 242, 255, 0.96);
  font-size: 12px;
  font-weight: 800;
}

.split,
.form-actions,
.dashboard-quick-links,
.legal-doc-nav,
.list-actions,
.surface-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions {
  margin-top: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.section-title {
  margin: 14px 0 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  gap: 28px;
  align-items: center;
}

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

.hero-main-title {
  max-width: 9.5ch;
}

.hero-subtitle {
  max-width: 52ch;
}

.hero-actions {
  margin-top: 24px;
}

.hero-note {
  margin-top: 14px;
  max-width: 58ch;
  color: rgba(152, 167, 204, 0.9);
  font-size: 14px;
}

.hero-metrics {
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  pointer-events: none;
}

.hero-stage::before {
  top: 28px;
  right: 42px;
  width: 220px;
  height: 220px;
  background: rgba(93, 134, 255, 0.18);
}

.hero-stage::after {
  bottom: 40px;
  left: 10px;
  width: 250px;
  height: 250px;
  background: rgba(145, 118, 255, 0.16);
}

.hero-panel {
  position: absolute;
  overflow: hidden;
}

.hero-panel-main {
  top: 0;
  right: 0;
  width: 100%;
  max-width: 470px;
}

.hero-panel-device {
  left: 0;
  bottom: 26px;
  width: 260px;
}

.hero-panel-card {
  top: 56px;
  left: 18px;
  width: 230px;
  padding: 18px;
}

.hero-stage-label {
  color: rgba(152, 167, 204, 0.96);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stage-value {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.hero-mini-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(29, 42, 79, 0.72);
}

.hero-mini-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-visual img,
.mock-image {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.floating {
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 320px;
}

.feature-grid,
.mini-card-grid,
.document-grid,
.info-grid,
.surface-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.surface-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.feature-card-title,
.mini-card-title,
.document-card-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-card-copy,
.mini-card-copy,
.document-card-copy,
.surface-copy {
  margin-top: 8px;
  color: rgba(152, 167, 204, 0.92);
  font-size: 14px;
  line-height: 1.68;
}

.surface-card {
  position: relative;
  overflow: hidden;
}

.surface-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(84, 215, 255, 0.08);
  filter: blur(18px);
  pointer-events: none;
}

.surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.surface-title {
  margin: 14px 0 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.surface-stack {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.network-points,
.platform-list {
  display: grid;
  gap: 14px;
}

.network-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 42, 79, 0.72);
  border-radius: 18px;
  background: rgba(6, 10, 22, 0.42);
}

.platform-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(29, 42, 79, 0.72);
  border-radius: 18px;
  background: rgba(6, 10, 22, 0.42);
}

.platform-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(93, 134, 255, 0.18), rgba(84, 215, 255, 0.14));
  color: rgba(237, 242, 255, 0.96);
  font-size: 12px;
  font-weight: 800;
}

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

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(29, 42, 79, 0.55);
  color: rgba(237, 242, 255, 0.9);
  flex-wrap: wrap;
}

.list li:first-child {
  border-top: 0;
}

.list-main {
  flex: 1;
  min-width: 220px;
}

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

.price {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.price small {
  color: rgba(152, 167, 204, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: rgba(29, 42, 79, 0.55);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.input,
.inline-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(29, 42, 79, 0.78);
  border-radius: 14px;
  background: rgba(6, 10, 22, 0.42);
  color: var(--text);
}

.input:focus,
.inline-form select:focus {
  outline: 2px solid rgba(93, 134, 255, 0.35);
  border-color: rgba(93, 134, 255, 0.55);
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-form button {
  width: auto;
}

.errorlist {
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(255, 77, 109, 0.95);
}

.auth-shell,
.dashboard-shell,
.legal-shell {
  padding: 64px 0;
}

.form-card,
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(29, 42, 79, 0.75);
  border-radius: 999px;
  background: rgba(13, 19, 36, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.status-tag.active {
  color: rgba(54, 225, 125, 0.95);
}

.status-tag.pending {
  color: rgba(255, 176, 32, 0.95);
}

.status-tag.expired,
.status-tag.cancelled {
  color: rgba(255, 77, 109, 0.95);
}

.tele-widget,
.telegram-login-block {
  margin-top: 18px;
}

.footer-link {
  margin-top: 12px;
}

.footer-link a {
  color: rgba(237, 242, 255, 0.96);
}

.stub-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 176, 32, 0.22);
  border-radius: 14px;
  background: rgba(255, 176, 32, 0.08);
  color: rgba(255, 176, 32, 0.95);
}

.legal-content h2 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content ul {
  color: rgba(152, 167, 204, 0.92);
}

.legal-content ul {
  padding-left: 18px;
}

footer.site-footer {
  border-top: 1px solid rgba(29, 42, 79, 0.55);
  padding: 44px 0 54px;
  color: rgba(152, 167, 204, 0.92);
}

.footer-card {
  padding: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-title {
  max-width: 16ch;
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.footer-pills {
  display: grid;
  gap: 10px;
}

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

.footer-heading {
  color: rgba(237, 242, 255, 0.92);
  font-weight: 800;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-support,
.footer-legal {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .feature-grid,
  .mini-card-grid,
  .document-grid,
  .surface-grid,
  .info-grid,
  .pricing {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-tools {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .hero-stage {
    min-height: 620px;
  }

  .floating {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .section,
  .auth-shell,
  .dashboard-shell,
  .legal-shell {
    padding: 56px 0;
  }

  .hero-bg > .container > .section:first-child {
    padding-top: 76px;
  }

  .btn,
  .form-actions .btn,
  .dashboard-quick-links .btn {
    width: 100%;
  }

  .nav-tools,
  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    flex: 1;
  }

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

  .lang-link {
    flex: 1;
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .hero-panel {
    position: static;
    width: 100%;
    max-width: none;
  }

  .hero-panel-device,
  .hero-panel-card {
    width: 100%;
  }

  .platform-row {
    grid-template-columns: auto 1fr;
  }

  .inline-form {
    width: 100%;
  }

  .inline-form button,
  .inline-form select {
    width: 100%;
  }
}
