* {
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,0.66);
  --soft: rgba(255,255,255,0.48);
  --panel: rgba(255,255,255,0.045);
  --panel-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.26);
  --shadow: 0 0 70px rgba(255,255,255,0.065);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.018) 23%, rgba(0,0,0,1) 72%),
    #000;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 42%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.62) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.008) 0px,
      rgba(255,255,255,0.008) 1px,
      transparent 1px,
      transparent 120px
    );
  mix-blend-mode: screen;
  opacity: 0.58;
}

.page {
  position: relative;
  z-index: 2;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.36);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 42px rgba(255,255,255,0.06);
  pointer-events: auto;
}

.brand {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.nav-link,
.support,
.auth-alt a {
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  transition: color .25s ease;
}

.nav-link {
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.support:hover,
.auth-alt a:hover {
  color: #fff;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  white-space: nowrap;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 118px 0 72px;
}

.hero-inner {
  width: min(850px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.76);
  backdrop-filter: blur(12px);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 18px rgba(255,255,255,0.55);
}

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

h1 {
  max-width: 820px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 34px rgba(255,255,255,0.18);
}

.hero p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 26px rgba(255,255,255,0.05);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}

.btn-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.btn-ghost {
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.88);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.44);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 38px rgba(255,255,255,0.11);
}

.btn-primary {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.94);
  color: #000;
  box-shadow: 0 0 42px rgba(255,255,255,0.17);
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 54px rgba(255,255,255,0.22);
}

section {
  padding: 74px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.section-head p {
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.glass {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.072), rgba(255,255,255,0.032));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.11), transparent 34%);
  opacity: 0.55;
}

.feature-card {
  min-height: 238px;
  padding: 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(145deg, rgba(255,255,255,0.092), rgba(255,255,255,0.038));
}

.feature-card h3 {
  position: relative;
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-card p {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.number {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 26px rgba(255,255,255,0.07);
  font-size: 13px;
}

.tariff-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  align-items: stretch;
}

.tariff-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.tariff-copy h2 {
  position: relative;
  max-width: 540px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.tariff-copy p {
  position: relative;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.tariff-card {
  padding: 30px;
}

.tariff-form {
  display: block;
}

.tariff-card h2 {
  position: relative;
  margin-bottom: 28px;
  font-size: 26px;
  line-height: 1.2;
}

.range-row {
  position: relative;
  margin-bottom: 24px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.86) var(--progress), rgba(255,255,255,0.13) var(--progress));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 28px rgba(255,255,255,0.42);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 28px rgba(255,255,255,0.42);
}

.range-labels,
.price-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.range-labels {
  margin-top: 12px;
  color: rgba(255,255,255,0.44);
  font-size: 12px;
}

.price-box {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
}

.price-line span:first-child {
  color: var(--soft);
  font-size: 14px;
}

.price-line span:last-child {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.benefits-head {
  justify-content: center;
  margin-bottom: 44px;
  text-align: center;
}

.benefits-head h2 {
  max-width: 820px;
  text-shadow: 0 0 34px rgba(255,255,255,0.14);
}

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

.benefit {
  min-height: 208px;
  padding: 32px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,0.105), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.078), rgba(255,255,255,0.028));
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.3);
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,0.14), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.098), rgba(255,255,255,0.034));
  box-shadow: 0 0 82px rgba(255,255,255,0.095);
}

.benefit-icon,
.benefit-copy {
  position: relative;
}

.benefit-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 38px rgba(255,255,255,0.08);
}

.benefit-icon svg {
  width: 48px;
  height: 48px;
  overflow: visible;
  fill: none;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.2));
}

.benefit-copy h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.benefit-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 58px;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card,
.profile-card {
  width: min(520px, 100%);
  padding: 34px;
}

.profile-card {
  width: min(780px, 100%);
}

.auth-card h1,
.profile-card h1 {
  position: relative;
  max-width: 100%;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.02;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
  text-transform: none;
}

.auth-subtitle {
  position: relative;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
}

.field span {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  outline: none;
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 15px;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.025);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.field input:focus {
  border-color: rgba(255,255,255,0.42);
  background: rgba(0,0,0,0.38);
  box-shadow: 0 0 34px rgba(255,255,255,0.08);
}

.auth-submit {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.auth-alt {
  position: relative;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.messages {
  position: fixed;
  top: 96px;
  right: max(20px, calc((100vw - 1120px) / 2));
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
  pointer-events: none;
}

.message {
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045)),
    rgba(0,0,0,0.48);
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.45;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 44px rgba(255,255,255,0.08);
  animation: messageIn .32s ease both;
  pointer-events: auto;
}

.message-error {
  border-color: rgba(255,255,255,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 52px rgba(255,255,255,0.09);
}

.message-success {
  border-color: rgba(255,255,255,0.24);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.055)),
    rgba(0,0,0,0.42);
}

.message-info {
  border-color: rgba(255,255,255,0.22);
}

.message-hide {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .24s ease, transform .24s ease;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

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

.profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.profile-item {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(0,0,0,0.24);
}

.profile-item span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.52);
  font-size: 13px;
}

.profile-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.profile-balance {
  background: rgba(255,255,255,0.055);
  box-shadow: 0 0 34px rgba(255,255,255,0.05);
}

.profile-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

footer {
  padding: 56px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    top: 12px;
  }

  .header-inner {
    align-items: flex-start;
    border-radius: 24px;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

  .grid,
  .tariff-wrap,
  .benefits,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    gap: 18px;
  }

  .tariff-copy {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    padding: 156px 0 50px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .hero p {
    font-size: 17px;
  }

  .actions,
  .actions .btn,
  .profile-actions,
  .profile-actions .btn {
    width: 100%;
  }

  section {
    padding: 52px 0;
  }

  .feature-card,
  .tariff-card,
  .tariff-copy,
  .benefit,
  .auth-card,
  .profile-card {
    padding: 22px;
    border-radius: 20px;
  }

  .benefits-head {
    margin-bottom: 30px;
  }

  .benefit {
    min-height: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .benefit-icon svg {
    width: 34px;
    height: 34px;
  }

  .benefit-copy h3 {
    margin-bottom: 9px;
    font-size: 20px;
  }

  .benefit-copy p {
    font-size: 14px;
    line-height: 1.62;
  }

  .tariff-wrap {
    gap: 14px;
  }

  .auth-section {
    padding-top: 172px;
  }

  .auth-card h1,
  .profile-card h1 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .footer-inner {
    display: block;
  }

  .support {
    display: inline-block;
    margin-top: 12px;
  }

  .messages {
    top: 116px;
    right: 14px;
    width: calc(100vw - 28px);
  }
}
