/* ============================================================
   HushVPS design system — self-contained, zero CDN.
   Premium dark / stealth. Own fingerprint (not shared with siblings).
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* ---------- tokens ---------- */
:root {
  --bg:        #05060a;
  --bg-2:      #080910;
  --panel:     #0c0d15;
  --panel-2:   #11121c;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #d6d6e0;
  --head:      #f4f4f8;
  --dim:       #8b8b99;
  --faint:     #61616e;
  --violet:    #a78bfa;
  --violet-2:  #8b5cf6;
  --violet-3:  #7c3aed;
  --ok:        #34d399;
  --amber:     #fbbf24;

  --glow: 0 0 0 1px rgba(139,92,246,.14), 0 30px 80px -40px rgba(124,58,237,.55);
  --shadow: 0 20px 50px -30px rgba(0,0,0,.9);
  --radius: 16px;
  --radius-lg: 24px;

  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
}

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(167,139,250,.32); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

* { scrollbar-width: thin; scrollbar-color: #2a2a36 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #3a3a48; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.divider { border-top: 1px solid var(--line); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px){ .cols-2 { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 860px){
  .cols-3 { grid-template-columns: repeat(3,1fr);}
  .cols-4 { grid-template-columns: repeat(4,1fr);}
}
@media (min-width: 640px) and (max-width: 859px){ .cols-4 { grid-template-columns: repeat(2,1fr);} }

/* ---------- type ---------- */
.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .28em;
  font-size: .72rem; color: var(--violet); font-weight: 600;
}
.micro { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--dim); }
.eyebrow { display:inline-flex; align-items:center; gap:.55rem; }

h1, h2, h3, h4 { color: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.display {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -.045em; line-height: .98;
}
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--dim); }
.muted { color: var(--dim); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }

.gradient-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 55%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(139,92,246,.08); color: var(--violet);
}
.pill--soft { background: rgba(255,255,255,.04); color: var(--dim); border-color: var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 12px; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--line-2); color: var(--head);
  transition: transform .06s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.05); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--violet-2), var(--violet-3));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124,58,237,.8);
}
.btn--primary:hover { background: linear-gradient(180deg, #9d6bfb, #6d28d9); box-shadow: 0 14px 36px -12px rgba(124,58,237,.95); }
.btn--ghost { background: transparent; border-color: rgba(139,92,246,.5); color: var(--violet); }
.btn--ghost:hover { background: rgba(139,92,246,.10); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- icons ---------- */
.ic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 26px; height: 26px; }
.icon-box {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.25); color: var(--violet);
}

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.card--hover:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card--glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)) ,
    var(--panel);
}
.card--feature { border-color: rgba(139,92,246,.4); box-shadow: var(--glow); }
.card--feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(139,92,246,.14), transparent 60%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(5,6,10,.92), rgba(5,6,10,.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { color: var(--violet); }
.brand__word { font-family: var(--mono); font-weight: 700; letter-spacing: -.03em; font-size: 1.18rem; color: var(--head); }
.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .9rem; color: var(--dim); transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--head); }
.nav__right { display: flex; align-items: center; gap: .6rem; }
.nav__burger { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); color: var(--text); }
.nav__mobile { display: none; border-top: 1px solid var(--line); padding: 10px 0 16px; }
.nav__mobile a { display: block; padding: .65rem 0; color: var(--dim); }
.nav__mobile a:hover { color: var(--head); }
.nav__mobile.is-open { display: block; }
@media (min-width: 900px){
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 720px;
  background:
    radial-gradient(50% 55% at 78% 8%, rgba(139,92,246,.30), transparent 60%),
    radial-gradient(40% 45% at 12% 30%, rgba(88,28,135,.28), transparent 65%),
    radial-gradient(45% 40% at 55% 0%, rgba(167,139,250,.14), transparent 60%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.hero__noise { position:absolute; inset:0; opacity:.5; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (min-width: 720px){ .stats { grid-template-columns: repeat(4,1fr); } }
.stat__num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--head); letter-spacing: -.03em; }
.stat__num span { color: var(--violet); }
.stat__label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: var(--dim); margin-top: .35rem; }

/* ---------- steps ---------- */
.step { position: relative; }
.step__num { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: var(--violet); opacity: .55; }

/* ---------- plans ---------- */
.plan { display: flex; flex-direction: column; }
.plan__name { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--dim); }
.plan--featured .plan__name { color: var(--violet); }
.plan__price { display: flex; align-items: baseline; gap: .2rem; margin: .7rem 0 1rem; }
.plan__price b { font-size: 2.4rem; font-weight: 700; color: var(--head); letter-spacing: -.03em; }
.plan__price span { color: var(--faint); font-size: .9rem; }
.plan__list { display: grid; gap: .5rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--text); }
.plan__list li { display: flex; align-items: center; gap: .55rem; }
.plan__list .ic { color: var(--violet); width: 1em; height: 1em; }
.plan__cta { margin-top: auto; }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--dim); font-weight: 600; }
.compare tbody td:first-child { color: var(--text); }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--faint); }
.compare .col-us { color: var(--violet); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--head); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--violet); flex: none; }
.faq[open] summary .chev { transform: rotate(45deg); }
.faq__body { padding-bottom: 1.1rem; color: var(--dim); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid rgba(139,92,246,.35);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124,58,237,.35), rgba(12,13,21,.6));
  padding: clamp(32px, 5vw, 60px);
}

/* ---------- forms ---------- */
.field {
  width: 100%; background: #0a0b12; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px; padding: .75rem .9rem; font-size: .9rem;
  transition: border-color .15s;
}
.field:focus { outline: none; border-color: var(--violet); }
.label { display:block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: var(--dim); margin-bottom: .4rem; }
.note { color: var(--ok); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.28); border-radius: 12px; padding: .8rem 1rem; font-size: .86rem; }
.err { color: #fca5a5; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.28); border-radius: 12px; padding: .75rem .9rem; font-size: .84rem; }
.hidden { display: none !important; }

/* ---------- order modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3,3,6,.9); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { position: relative; width: 100%; max-width: 30rem; background: var(--panel); border: 1px solid rgba(139,92,246,.4); border-radius: 20px; padding: 26px; box-shadow: var(--glow); }
.modal__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--dim); display:grid; place-items:center; }
.modal__close:hover { color: var(--head); background: rgba(255,255,255,.05); }
.summary-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem; font-size: .82rem; }
.summary-box .row { display: flex; justify-content: space-between; padding: .15rem 0; }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; color: var(--head); }

/* ---------- prose (blog / legal) ---------- */
.prose { color: var(--text); line-height: 1.78; font-size: 1rem; max-width: 46rem; }
.prose h2 { color: var(--head); font-size: 1.5rem; margin: 2.3rem 0 .8rem; }
.prose h3 { color: var(--head); font-size: 1.16rem; margin: 1.7rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul li { list-style: disc; margin: .4rem 0; }
.prose ol li { list-style: decimal; margin: .4rem 0; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .35rem; font-size: .85em; }
.prose pre { background: #0a0b12; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; overflow-x: auto; margin-bottom: 1.2rem; }
.prose pre code { background: none; border: none; padding: 0; }
.prose blockquote { border-left: 2px solid var(--violet); padding-left: 1rem; color: var(--dim); margin-bottom: 1.2rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-block: 54px; }
@media (min-width: 640px){ .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 940px){ .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__col h4 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: var(--dim); margin-bottom: 1rem; font-weight: 600; }
.foot__col ul { display: grid; gap: .6rem; }
.foot__col a { color: var(--text); font-size: .9rem; }
.foot__col a:hover { color: var(--violet); }
.foot__bar { border-top: 1px solid var(--line); }
.foot__bar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; padding-block: 20px; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, [data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- helpers ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap { gap: .8rem; }
.wrap-gap { flex-wrap: wrap; gap: .6rem 1.4rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; } .mb-4 { margin-bottom: 2.4rem; }
.maxw-sm { max-width: 30rem; } .maxw-md { max-width: 42rem; } .maxw-lg { max-width: 52rem; }
.text-violet { color: var(--violet); }
.grow { flex: 1; }
