/* МАСКА — landing стиль. Dark minimalist, моноширинный акцент на числах и кодах. */

:root {
  --bg:         #0a0a0a;
  --bg-soft:    #141414;
  --bg-card:    #161616;
  --fg:         #e5e5e5;
  --fg-dim:     #9a9a9a;
  --fg-mute:    #555;
  --accent:     #a855f7;       /* основной фиолетовый — бренд */
  --accent-2:   #c084fc;       /* светлее, для hover/акцентов */
  --accent-glow: rgba(168, 85, 247, 0.35);
  --action:     #4f9a00;       /* приглушённый зелёный для hover */
  --action-2:   #5aa800;       /* чуть светлее, для дополнительного акцента */
  --action-glow: rgba(79, 154, 0, 0.35);
  --rule:       #262626;
  --border:     #2a2a2a;
  --success:    #10b981;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  background-color: #0a0a0a;
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.9)),
    url('/bg-pattern.jpg');
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-attachment: fixed, fixed;
  background-position: center, center;
}

.wrap, .dash-wrap, .login-wrap {
  position: relative;
  z-index: 1;
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--action); }

code, pre, .mono { font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Consolas, monospace; }

/* ─── Layout ──────────────────────────────────────────────── */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}

hr.rule,
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
  width: 100%;
  background: none;
  height: 0;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 32px 0 8px;
}

.mask {
  display: inline-block;
  line-height: 0;
  margin-bottom: -32px;
  filter: drop-shadow(0 0 60px var(--accent-glow))
          drop-shadow(0 0 100px var(--accent-glow));
  animation: pulse 4s ease-in-out infinite;
}

.mask img {
  display: block;
  width: 340px;
  height: auto;
}

@keyframes pulse {
  0%, 100% {
    filter: drop-shadow(0 0 50px var(--accent-glow))
            drop-shadow(0 0 90px var(--accent-glow));
  }
  50% {
    filter: drop-shadow(0 0 80px var(--accent-glow))
            drop-shadow(0 0 130px var(--accent-glow));
  }
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--fg);
}

.tagline {
  font-size: 22px;
  color: var(--fg-dim);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ─── Lead ────────────────────────────────────────────────── */

.lead {
  text-align: center;
  font-size: 18px;
  color: var(--fg-dim);
}

.lead p {
  margin: 0;
  text-wrap: balance;
}

/* ─── Features ───────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
  margin: 40px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg);
}

.feature .glyph {
  color: var(--accent);
  font-family: monospace;
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─── Pricing ────────────────────────────────────────────── */

.pricing h2,
.how h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-align: center;
  margin: 0 0 24px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 16px 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
}

.plan:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.18);
}

/* .plan.best убрана — все карточки одинаковы по умолчанию,
   подсветка только на hover (см. .plan:hover выше). */

.plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 22px;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  font-feature-settings: normal;
}

.plan-price {
  font-size: 32px;
  font-weight: 700;
  margin: 6px 0;
  color: var(--fg);
  text-align: center;
  line-height: 1.15;
  font-feature-settings: normal;
  font-variant-numeric: normal;
  -webkit-font-smoothing: antialiased;
}

.plan-sub {
  font-size: 13px;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}

.plan-cta {
  display: block;
  margin-top: 18px;
  padding: 11px 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
}

.plan-cta:hover {
  background: var(--action);
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 4px 22px var(--action-glow);
}

/* ─── CTA ─────────────────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 8px 0 0;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin: 0 6px 12px;
  min-width: 220px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--action);
  color: #0a0a0a;
  box-shadow: 0 0 36px var(--action-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.cta-hint {
  font-size: 13px;
  color: var(--fg-mute);
  margin: 8px 0 0;
}

/* ─── How it works ───────────────────────────────────────── */

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

.steps li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
}

.steps li:last-child { border-bottom: none; }

.step-num {
  position: absolute;
  left: 0;
  top: 17px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.steps a,
.steps b {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.steps a:hover,
.steps b:hover {
  color: var(--action);
}

/* ─── Footer ─────────────────────────────────────────────── */

.foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.foot-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  margin-bottom: 12px;
}

.foot-cols a {
  display: block;
  color: var(--fg-dim);
  font-size: 14px;
  padding: 2px 0;
  transition: color 0.15s;
}

.foot-cols a:hover { color: var(--accent-2); }

.foot-dim {
  color: var(--fg-mute);
  font-size: 14px;
}

.foot-copy {
  text-align: center;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}

/* ─── Document pages (privacy, terms) ───────────────────── */

.doc {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
}

.doc h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin: 32px 0 12px;
}

.doc h2:first-child { margin-top: 0; }

.doc p {
  color: var(--fg-dim);
  margin: 0 0 12px;
}

.doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.doc ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--fg-dim);
}

.doc ul li::before {
  content: "◉";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent);
  font-family: monospace;
  font-size: 12px;
}

.doc b { color: var(--fg); }

.doc code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent-2);
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  .wrap { padding: 40px 16px 64px; }
  .mask img { width: 220px; height: auto; }
  .hero h1 { font-size: 36px; }
  .tagline { font-size: 16px; }
  .lead { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 10px; }
  .btn { display: block; margin: 10px auto; width: 100%; max-width: 320px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
