/* ============================================================
   Anommality Hosting — styles.css
   ============================================================ */

:root {
  --bg:        #0a0712;
  --bg-2:      #110b1f;
  --surface:   #160f26;
  --surface-2: #1d1433;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(167, 139, 250, 0.25);

  --text:      #ece9f4;
  --muted:     #a59cc0;
  --faint:     #6f6790;

  --brand:     #8b5cf6;
  --brand-2:   #a855f7;
  --brand-3:   #c084fc;
  --brand-deep:#6d28d9;

  --grad:  linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.18), rgba(124,58,237,.06));

  --ok:   #34d399;
  --warn: #fbbf24;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 24px 60px -20px rgba(124, 58, 237, .45);
  --shadow-sm:0 8px 30px -12px rgba(0,0,0,.6);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(168,85,247,.12), transparent 55%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.12; letter-spacing: -.02em; }

/* ---------- layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container--narrow { width: min(760px, 92vw); }
.section { padding: clamp(40px, 5.5vw, 72px) 0; }
.section--alt { background:
    linear-gradient(180deg, transparent, rgba(124,58,237,.04) 12%, rgba(124,58,237,.04) 88%, transparent); }

.section__head { text-align: center; max-width: 600px; margin: 0 auto clamp(28px, 4vw, 42px); }
.section__head h2 { font-size: clamp(24px, 3.6vw, 36px); margin: 8px 0 10px; }
.section__head p { color: var(--muted); font-size: .98rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-3);
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --pad: 11px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap; color: var(--text);
}
.btn--primary { background: var(--grad); box-shadow: 0 10px 30px -10px rgba(124,58,237,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,58,237,.85); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-2); background: rgba(168,85,247,.08); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { --pad: 14px 30px; font-size: 1rem; }
.btn--sm { --pad: 8px 16px; font-size: .85rem; }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { background: rgba(10,7,18,.72); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand__logo { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(44px, 7vw, 86px) 0 clamp(28px, 4vw, 48px); text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 640px; height: 640px; pointer-events: none;
  background: radial-gradient(circle, rgba(168,85,247,.28), transparent 60%);
  filter: blur(30px);
}
.hero__inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--grad-soft); color: var(--brand-3); font-size: .82rem; font-weight: 600;
  margin-bottom: 18px;
}
.hero__title { font-size: clamp(32px, 5.5vw, 58px); font-weight: 700; }
.hero__sub { max-width: 580px; margin: 16px auto 26px; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.1rem); }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 700px; margin: clamp(34px, 5vw, 54px) auto 0;
}
.stat strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--faint); font-size: .82rem; }

/* ---------- billing toggle ---------- */
.billing {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 auto; padding: 10px 0 0;
}
.billing__label { color: var(--muted); font-weight: 600; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.billing__label.is-active { color: var(--text); }
.save { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ok);
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: 2px 8px; border-radius: 999px; }
.switch {
  width: 54px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); cursor: pointer; position: relative; padding: 0; transition: background .25s;
}
.switch[aria-checked="true"] { background: var(--grad); border-color: transparent; }
.switch__dot {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.switch[aria-checked="true"] .switch__dot { transform: translateX(24px); }

/* ---------- pricing grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
  opacity: 0; transform: translateY(24px);
}
.card.is-in { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.card--featured::before {
  content: "Популярный"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.card__name { font-size: 1.18rem; font-weight: 700; }
.card__tag { color: var(--faint); font-size: .85rem; margin-top: 2px; min-height: 1.2em; }

.card__price { display: flex; align-items: flex-end; gap: 6px; margin: 16px 0 3px; }
.card__price .cur { color: var(--text); font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.card__price .amt { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.card__price .per { color: var(--faint); font-size: .88rem; margin-bottom: 5px; }
.card__billed { color: var(--faint); font-size: .76rem; min-height: 1.1em; margin-bottom: 14px; }

.card__specs { list-style: none; display: grid; gap: 8px; margin: 2px 0 20px; flex: 1; }
.card__specs li { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; color: var(--muted); }
.card__specs li b { color: var(--text); font-weight: 600; }
.card__specs li::before {
  content: "✓"; color: var(--brand-3); font-weight: 800; font-size: .8rem; flex: none;
  width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(168,85,247,.14); margin-top: 2px;
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color .25s, transform .25s;
  opacity: 0; transform: translateY(24px);
}
.feature.is-in { opacity: 1; transform: translateY(0); }
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature__icon { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 9px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text);
  font: inherit; font-weight: 600; font-size: .98rem; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q::after { content: "+"; color: var(--brand-3); font-size: 1.4rem; transition: transform .25s; flex: none; }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--muted); }
.faq__a p { padding: 0 18px 14px; font-size: .92rem; }

/* ---------- cta ---------- */
.cta__inner { text-align: center; background: var(--grad-soft); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.cta__inner h2 { font-size: clamp(22px, 3.4vw, 32px); }
.cta__inner p { color: var(--muted); margin: 10px 0 22px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 40px; background: rgba(0,0,0,.25); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 32px; padding-bottom: 28px; }
.footer__logo { height: 32px; margin-bottom: 10px; }
.footer__brand p { color: var(--faint); font-size: .88rem; max-width: 300px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 10px; }
.footer__cols a { display: block; color: var(--muted); font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--brand-3); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding: 16px 0; color: var(--faint); font-size: .82rem; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5,3,12,.78); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; width: min(480px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 30px;
  box-shadow: var(--shadow); transform: translateY(20px) scale(.98); transition: transform .3s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted);
  font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color .2s; }
.modal__close:hover { color: var(--text); }
.modal__card h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.modal__plan { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.modal__plan strong { color: var(--brand-3); }
.modal__fineprint { color: var(--faint); font-size: .78rem; text-align: center; margin-top: 12px; }

/* form fields */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field > span em { color: var(--faint); font-style: normal; font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font: inherit; font-size: .95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.field__error { display: block; color: #f87171; font-size: .78rem; min-height: 1em; margin-top: 5px; }

/* success */
.modal__success { text-align: center; padding: 10px 0; }
.check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(124,58,237,.7); animation: pop .4s var(--ease); }
.modal__success h3 { font-size: 1.5rem; }
.modal__success p { color: var(--muted); margin: 12px 0 24px; }
.modal__success strong { color: var(--text); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 13px 22px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-sm); z-index: 300; transition: transform .35s var(--ease); max-width: 90vw;
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid, .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(12,8,22,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 12px 7vw 24px; transform: translateY(-130%); transition: transform .3s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a.btn { margin-top: 12px; border: 1px solid var(--line); justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}
@media (max-width: 560px) {
  .grid, .features { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .card, .feature { opacity: 1; transform: none; }
}
