:root {
  color-scheme: dark;
  --bg: #070711;
  --panel: #0d0c18;
  --surface: #151426;
  --surface-2: #1a182d;
  --text: #ececff;
  --muted: #a6a4c8;
  --faint: #747198;
  --line: rgba(142, 123, 255, 0.26);
  --line-strong: rgba(94, 234, 212, 0.34);
  --violet: #a855f7;
  --indigo: #6366f1;
  --cyan: #5eead4;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(168, 85, 247, 0.07), transparent 30%, rgba(94, 234, 212, 0.06) 62%, transparent),
    linear-gradient(180deg, #070711 0%, #090a14 48%, #070711 100%);
  color: var(--text);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 88%);
}

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

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: rgba(8, 8, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 45, 169, 0.5));
}

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

.nav a,
.header-cta,
.lang-wrap {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.nav a {
  padding: 0 12px;
}

.nav a:hover,
.header-cta:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-wrap {
  gap: 8px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.lang-wrap span {
  color: var(--faint);
}

.lang-wrap select {
  min-width: 64px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 850;
}

.lang-wrap option {
  color: #111827;
}

.header-cta {
  padding: 0 13px;
  border-color: rgba(94, 234, 212, 0.28);
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 17, 0.96), rgba(7, 7, 17, 0.68) 47%, rgba(7, 7, 17, 0.24)),
    linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(94, 234, 212, 0.05));
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 39%, rgba(168, 85, 247, 0.12) 40%, transparent 41% 100%),
    linear-gradient(118deg, transparent 0 55%, rgba(94, 234, 212, 0.11) 56%, transparent 57% 100%);
}

.hero-samurai {
  position: absolute;
  right: 5vw;
  top: 50%;
  width: 540px;
  height: 540px;
  object-fit: contain;
  transform: translateY(-48%);
  opacity: 0.78;
  filter: saturate(1.12) contrast(1.08) drop-shadow(0 0 42px rgba(168, 85, 247, 0.26));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.kicker {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 710px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 17px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 880;
  cursor: pointer;
}

.btn-primary {
  color: #061114;
  background: linear-gradient(135deg, var(--cyan), #9ef7c1);
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 16px 40px rgba(94, 234, 212, 0.16);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 168px));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-stats div,
.notice-band,
.studio-surface,
.feature-card,
.audience-card,
.price-card,
.telegram-panel,
.changelog-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 14, 28, 0.74);
  box-shadow: 0 18px 42px var(--shadow);
}

.hero-stats div {
  padding: 12px;
}

.hero-stats dt {
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.notice-band {
  width: min(1180px, calc(100% - 48px));
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -33px auto 0;
  padding: 12px 16px;
  position: relative;
  z-index: 5;
  background: rgba(14, 15, 30, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.notice-band span {
  flex: 0 0 auto;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.notice-band p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notice-band a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-copy {
  max-width: 610px;
}

h2 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.section p,
.feature-card p,
.audience-card p,
.price-card li,
.faq-item p {
  color: var(--muted);
  line-height: 1.62;
}

.product-section,
.telegram-section,
.roadmap-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.studio-surface {
  overflow: hidden;
  background: rgba(10, 10, 22, 0.9);
}

.studio-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  background: rgba(10, 10, 22, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 0 48px rgba(124, 58, 237, 0.12);
}

.studio-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
}

.surface-header {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.surface-header strong {
  font-size: 13px;
}

.surface-header em {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.traffic {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 18px 0 var(--amber), 36px 0 var(--green);
}

.surface-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 330px;
}

.surface-sidebar {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.surface-sidebar span {
  min-height: 31px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.surface-sidebar .active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.13);
}

.surface-main {
  padding: 16px;
}

.run-card {
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.07), rgba(168, 85, 247, 0.08));
}

.run-card div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.run-card img,
.feature-card img,
.telegram-panel img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.run-card p {
  margin: 10px 0 0;
  font-size: 13px;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.surface-grid div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.surface-grid span,
.surface-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surface-grid span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
}

.surface-grid strong {
  margin-top: 6px;
  font-size: 13px;
}

.status-line {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  color: var(--cyan);
  background: #06070e;
  border: 1px solid rgba(94, 234, 212, 0.16);
  font: 12px/1.4 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-grid,
.audience-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 12px;
}

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

.feature-card,
.audience-card {
  padding: 18px;
}

.feature-card h3,
.audience-card h3 {
  margin: 15px 0 8px;
}

.feature-card p,
.audience-card p {
  margin: 0;
  font-size: 14px;
}

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

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

.roadmap-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-left: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.035);
}

.roadmap-list span {
  color: var(--cyan);
  font-weight: 950;
}

.roadmap-list strong {
  display: block;
  margin-bottom: 4px;
}

.roadmap-list p {
  margin: 0;
  font-size: 14px;
}

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

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 12, 24, 0.78);
}

.checkout-panel label,
.checkout-panel label span {
  display: block;
}

.checkout-panel label span {
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.checkout-panel input:focus {
  border-color: rgba(94, 234, 212, 0.46);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.09);
}

#checkoutStatus {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#checkoutStatus.loading {
  color: var(--cyan);
}

#checkoutStatus.error {
  color: #fda4af;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 372px;
  padding: 16px;
  background: rgba(13, 12, 24, 0.78);
}

.price-card.featured {
  border-color: rgba(94, 234, 212, 0.48);
  box-shadow: 0 20px 54px rgba(94, 234, 212, 0.1);
}

.price-head {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-head strong {
  font-size: 14px;
}

.price-head span {
  color: var(--cyan);
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
}

.price {
  font-size: 36px;
  font-weight: 950;
}

.quota-row {
  display: grid;
  gap: 6px;
}

.quota-row span {
  color: var(--muted);
  font-size: 12px;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.price-card button {
  min-height: 40px;
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  color: #061114;
  background: linear-gradient(135deg, var(--cyan), #9ef7c1);
  font-size: 13px;
  font-weight: 880;
  cursor: pointer;
}

.price-card button:disabled {
  color: var(--faint);
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: wait;
}

.pricing-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.telegram-section {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.telegram-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(168, 85, 247, 0.08)),
    rgba(13, 12, 24, 0.88);
}

.telegram-panel strong {
  font-size: 24px;
}

.telegram-panel span {
  color: var(--muted);
  line-height: 1.55;
}

.changelog-card {
  padding: 18px;
}

.changelog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.changelog-meta span {
  color: var(--faint);
  font-size: 13px;
}

.changelog-card ul {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.changelog-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.changelog-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

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

.faq-item {
  padding: 16px;
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 90px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 1120px) {
  .site-header {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    padding: 10px 18px;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-samurai {
    right: -80px;
    width: 470px;
    height: 470px;
    opacity: 0.52;
  }

  h1 {
    font-size: 64px;
  }

  .product-section,
  .roadmap-section,
  .telegram-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 640px;
  }

  .hero-inner,
  .section,
  .notice-band,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding: 54px 0 86px;
  }

  .hero-samurai {
    right: -150px;
    top: 58%;
    width: 430px;
    height: 430px;
    opacity: 0.36;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .btn,
  .telegram-panel .btn {
    width: 100%;
  }

  .hero-stats,
  .feature-grid,
  .audience-grid,
  .pricing-grid,
  .faq-grid,
  .checkout-panel,
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .notice-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .surface-body {
    grid-template-columns: 1fr;
  }

  .surface-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .surface-sidebar span {
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
