:root {
  --bg: #140f0a;
  --bg-deep: #0c0907;
  --panel: rgba(31, 22, 15, 0.8);
  --panel-strong: rgba(27, 20, 14, 0.94);
  --panel-blue: rgba(31, 43, 62, 0.6);
  --text: #fff7e8;
  --muted: #d2c6b5;
  --gold: #d8ae54;
  --gold-bright: #f2d17a;
  --gold-soft: rgba(216, 174, 84, 0.18);
  --blue: #6f93be;
  --blue-bright: #97b8de;
  --blue-soft: rgba(111, 147, 190, 0.18);
  --line: rgba(255, 233, 190, 0.14);
  --line-strong: rgba(216, 174, 84, 0.3);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Onest", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 174, 84, 0.18), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(111, 147, 190, 0.2), transparent 20%),
    linear-gradient(180deg, #120d09 0%, #17100b 44%, #0d0a08 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 233, 190, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 233, 190, 0.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  left: -12rem;
  top: 8rem;
  background: rgba(216, 174, 84, 0.2);
}

.page-glow-right {
  right: -10rem;
  top: 3rem;
  background: rgba(111, 147, 190, 0.18);
}

.page-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 170px 170px;
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 20px 0 0;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 236, 199, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 246, 225, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(18, 13, 10, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 251, 239, 0.45), transparent 36%),
    linear-gradient(135deg, var(--gold-bright), var(--gold) 62%, #9e7635);
  color: #160f09;
  font-family: "Unbounded", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow:
    0 16px 34px rgba(216, 174, 84, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid #120d09;
  border-radius: 22px;
  pointer-events: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #efe1cb;
}

.nav a {
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--gold-bright);
}

.hero {
  padding: 48px 0 24px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 36px 0;
}

.eyebrow,
.section-tag,
.card-label,
.plan-kicker,
.feature-index,
.plan-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #f4e7d4;
  font-size: 0.88rem;
}

.eyebrow-dot,
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(216, 174, 84, 0.58);
}

.hero h1,
.section-head h2,
.ui-card h3,
.plan-card h3,
.feature-card h3,
.logo-stack span {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 20px;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.96;
}

.hero-text,
.section-head p,
.ui-card p,
.plan-card p,
.feature-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 56ch;
  margin: 22px 0 0;
}

.hero-actions,
.button-stack,
.hero-note,
.visual-footer,
.chip-grid,
.toggle-grid,
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #140f09;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 250, 237, 0.5), transparent 24%),
    linear-gradient(135deg, #f8d98b 0%, var(--gold) 48%, #b78531 100%);
  border-color: rgba(255, 226, 167, 0.48);
  box-shadow:
    0 18px 44px rgba(216, 174, 84, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.button-primary:hover {
  box-shadow:
    0 24px 50px rgba(216, 174, 84, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.button-telegram {
  color: #eef6ff;
  background:
    linear-gradient(180deg, rgba(121, 158, 199, 0.86), rgba(73, 106, 149, 0.95));
  border-color: rgba(166, 199, 236, 0.34);
  box-shadow:
    0 18px 36px rgba(73, 106, 149, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(24, 18, 14, 0.7);
  border-color: rgba(255, 236, 199, 0.12);
  backdrop-filter: blur(14px);
}

.button-ghost {
  color: #f6ddb0;
  border-style: dashed;
  border-color: rgba(216, 174, 84, 0.26);
}

.button-compact {
  min-height: 46px;
  padding: 0 18px;
}

.hero-note {
  margin-top: 22px;
}

.hero-note span,
.visual-pill,
.choice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 236, 199, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #eadfcb;
  font-size: 0.92rem;
}

.choice-chip {
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.choice-chip-active {
  color: #160f09;
  background: linear-gradient(135deg, #f7d88b, var(--gold));
  border-color: rgba(255, 230, 170, 0.52);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.card {
  border: 1px solid rgba(255, 236, 199, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  width: min(100%, 540px);
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: -14%;
  top: -8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(216, 174, 84, 0.14);
  filter: blur(80px);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(111, 147, 190, 0.14);
  filter: blur(80px);
}

.mascot-stage {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 390px;
  padding-top: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(111, 147, 190, 0.14);
  border: 1px solid rgba(151, 184, 222, 0.18);
  color: #d8e8fb;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-illustration {
  width: min(100%, 470px);
  display: block;
  margin-top: 18px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

.scene-caption {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: -10px;
}

.scene-caption span {
  color: var(--gold-bright);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1;
  text-shadow:
    -4px -4px 0 #0a0806,
    4px -4px 0 #0a0806,
    -4px 4px 0 #0a0806,
    4px 4px 0 #0a0806,
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.scene-caption small {
  color: #d0b888;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.floating-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 162px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 236, 199, 0.1);
  background: rgba(18, 13, 10, 0.82);
  backdrop-filter: blur(16px);
}

.floating-chip strong {
  font-size: 1rem;
}

.floating-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.chip-fast {
  top: 26px;
  right: 18px;
}

.chip-online {
  left: 18px;
  bottom: 114px;
}

.chip-signal {
  right: 22px;
  bottom: 44px;
  background:
    linear-gradient(180deg, rgba(111, 147, 190, 0.12), rgba(216, 174, 84, 0.06)),
    rgba(18, 13, 10, 0.86);
}

.chip-devices {
  left: 22px;
  top: 112px;
  background:
    linear-gradient(180deg, rgba(216, 174, 84, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(18, 13, 10, 0.86);
}

.visual-footer {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
}

.metrics {
  padding: 14px 0 32px;
}

.metrics-row,
.ui-grid,
.plans-grid,
.feature-grid {
  display: grid;
  gap: 20px;
}

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

.metric {
  padding: 22px;
}

.metric strong {
  color: var(--gold-bright);
  font-family: "Unbounded", sans-serif;
  font-size: 0.94rem;
}

.metric p {
  margin: 12px 0 0;
  color: #f1e2ce;
  line-height: 1.54;
}

.section-head {
  padding-top: 56px;
}

.section-head h2 {
  margin-top: 18px;
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.section-head p {
  max-width: 64ch;
  margin: 18px 0 0;
}

.button-lab,
.plans,
.features {
  padding-bottom: 30px;
}

.ui-grid {
  grid-template-columns: 1.02fr 0.98fr;
  margin-top: 24px;
}

.ui-card,
.plan-card,
.feature-card {
  padding: 26px;
}

.ui-card-top,
.plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ui-card h3,
.plan-card h3,
.feature-card h3 {
  margin-top: 18px;
  font-size: 1.46rem;
  line-height: 1.25;
}

.button-stack,
.chip-grid,
.toggle-grid {
  margin-top: 24px;
}

.card-badge {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(216, 174, 84, 0.12);
  border: 1px solid rgba(216, 174, 84, 0.18);
  color: #f7e4b8;
  font-size: 0.88rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.status-gold {
  background: rgba(216, 174, 84, 0.12);
  border-color: rgba(216, 174, 84, 0.18);
}

.status-blue {
  background: rgba(111, 147, 190, 0.14);
  border-color: rgba(111, 147, 190, 0.2);
}

.status-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 236, 199, 0.08);
}

.status-contrast {
  color: #140f09;
  background: linear-gradient(135deg, #f7d98d, var(--gold));
}

.plans-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.plan-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.plan-card-featured {
  transform: translateY(-8px);
}

.plan-card-standard {
  border-color: rgba(151, 184, 222, 0.14);
}

.plan-card-plus {
  border-color: rgba(216, 174, 84, 0.18);
  background:
    linear-gradient(180deg, rgba(216, 174, 84, 0.09), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.plan-type {
  background: rgba(111, 147, 190, 0.12);
  border-color: rgba(151, 184, 222, 0.2);
  color: #d6e5f7;
}

.plan-meta {
  margin-top: 20px;
}

.plan-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 236, 199, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #efdfc4;
  font-size: 0.9rem;
}

.price-table {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 236, 199, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(13, 10, 8, 0.4);
}

.price-row span {
  color: var(--muted);
}

.price-row strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.plan-card-plus .price-row strong {
  color: var(--gold-bright);
}

.plan-button {
  width: 100%;
  margin-top: 28px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  padding-bottom: 66px;
}

.feature-index {
  color: #140f09;
  background: linear-gradient(135deg, #f7da91, var(--gold));
  border-color: rgba(255, 231, 172, 0.48);
}

@media (max-width: 1080px) {
  .hero-layout,
  .ui-grid,
  .plans-grid,
  .feature-grid,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .plan-card-featured {
    transform: none;
  }

  .section-head h2 {
    max-width: unset;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-top: 14px;
  }

  .header-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding-top: 12px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .hero-card {
    min-height: 520px;
    padding: 24px;
  }

  .floating-chip {
    min-width: 144px;
    padding: 14px 15px;
  }

  .chip-fast {
    right: 10px;
  }

  .chip-online {
    left: 10px;
    bottom: 108px;
  }

  .chip-signal {
    right: 10px;
    bottom: 34px;
  }

  .chip-devices {
    left: 10px;
    top: 104px;
  }

  .hero-illustration {
    width: min(100%, 420px);
  }
}

@media (max-width: 520px) {
  :root {
    --container: min(100% - 24px, 100%);
  }

  .header-shell,
  .metric,
  .ui-card,
  .plan-card,
  .feature-card,
  .hero-card {
    border-radius: 22px;
  }

  .button,
  .button-compact {
    width: 100%;
  }

  .hero-actions,
  .button-stack {
    flex-direction: column;
  }

  .hero-note,
  .visual-footer,
  .chip-grid,
  .toggle-grid,
  .plan-meta {
    gap: 10px;
  }

  .hero-card {
    min-height: 470px;
  }

  .mascot-stage {
    min-height: 260px;
  }

  .hero-illustration {
    width: 100%;
    margin-top: 14px;
  }

  .floating-chip {
    position: static;
    margin-top: 12px;
  }

  .visual-footer {
    position: static;
    margin-top: 18px;
  }

  .section-head {
    padding-top: 44px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
