/* ==========================================================================
   Matrix VPS landing
   Dark-locked terminal aesthetic. One accent (acid green), one radius scale.
   ========================================================================== */

/* -------------------------------------------------- tokens */
:root {
  --bg:        #050806;
  --bg-2:      #080d0a;
  --bg-3:      #0b120e;
  --ink:       #dfe9e2;
  --ink-2:     #94a89c;
  --ink-3:     #63756b;
  --acc:       #3bf07c;
  --acc-deep:  #1c9a4e;
  --acc-soft:  rgba(59, 240, 124, .12);
  --line:      rgba(122, 214, 160, .14);
  --line-2:    rgba(122, 214, 160, .28);

  --r:    4px;
  --r-lg: 6px;

  --f-disp: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 40px);
  --sec:  clamp(72px, 11vw, 132px);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* -------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.mx-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-disp);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--acc); color: #04150a; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: var(--r);
}

.mx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--acc);
  color: #04150a;
  font-weight: 600;
}
.mx-skip:focus { left: 12px; top: 12px; }

.mx-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* -------------------------------------------------- type scale */
.mx-h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 600;
}
.mx-h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 600;
  margin-bottom: 10px;
}
.mx-lead {
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 58ch;
}
.mx-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
}
.mx-accent { color: var(--acc); }

/* -------------------------------------------------- buttons */
.mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .25s var(--ease), color .18s var(--ease);
}
.mx-btn--solid {
  background: var(--acc);
  color: #04150a;
  box-shadow: 0 0 0 rgba(59, 240, 124, 0);
}
.mx-btn--solid:hover {
  background: #55ff92;
  box-shadow: 0 10px 34px -12px rgba(59, 240, 124, .65);
}
.mx-btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, .015);
}
.mx-btn--ghost:hover { border-color: var(--acc); color: var(--acc); }
.mx-btn:active { transform: translateY(1px); }
.mx-btn--sm   { height: 42px; padding: 0 18px; font-size: 14px; }
.mx-btn--lg   { height: 60px; padding: 0 40px; font-size: 17px; }
.mx-btn--full { width: 100%; }

/* -------------------------------------------------- header */
.mx-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.mx-head.is-stuck {
  background: rgba(5, 8, 6, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.mx-head__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.mx-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.mx-brand__mark { width: 34px; height: 34px; }
.mx-brand__word {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}
.mx-nav { display: flex; align-items: center; gap: 26px; }
.mx-nav__link {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.mx-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.mx-nav__link:hover { color: var(--ink); }
.mx-nav__link:hover::after { transform: scaleX(1); }

.mx-burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; }
.mx-burger span {
  display: block;
  height: 1.5px;
  width: 22px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.mx-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.mx-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* -------------------------------------------------- hero */
.mx-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
}
.mx-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
.mx-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* keeps the headline readable while the rain keeps falling behind it */
    linear-gradient(90deg, rgba(5, 8, 6, .94) 0%, rgba(5, 8, 6, .88) 34%, rgba(5, 8, 6, .18) 62%, rgba(5, 8, 6, 0) 100%),
    linear-gradient(180deg, rgba(5, 8, 6, .9) 0%, rgba(5, 8, 6, 0) 14%),
    radial-gradient(120% 80% at 12% 0%, rgba(59, 240, 124, .10), transparent 58%),
    radial-gradient(90% 70% at 100% 100%, rgba(59, 240, 124, .06), transparent 60%);
}
.mx-hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.mx-hero__h1 {
  margin: 18px 0 22px;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}
.mx-caret {
  display: inline-block;
  width: .07em;
  height: .82em;
  margin-left: .1em;
  vertical-align: -.05em;
  background: var(--acc);
  animation: mx-blink 1.15s steps(1) infinite;
}
@keyframes mx-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.mx-hero__sub {
  color: var(--ink-2);
  font-size: clamp(16px, 1.7vw, 18px);
  max-width: 46ch;
}
.mx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.mx-hero__panel { justify-self: end; width: 100%; max-width: 400px; }
.mx-gauge {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(11, 18, 14, .84), rgba(5, 8, 6, .72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px;
  display: grid;
  gap: 18px;
}
.mx-gauge__row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.mx-gauge__k { color: var(--ink-3); letter-spacing: .04em; }
.mx-gauge__v { color: var(--acc); font-weight: 500; }
.mx-gauge__bar {
  height: 3px;
  background: rgba(122, 214, 160, .16);
  border-radius: 2px;
  overflow: hidden;
}
.mx-gauge__bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
  transform: scaleX(0);
  transform-origin: left;
  animation: mx-fill 1.1s .35s var(--ease) forwards;
}
@keyframes mx-fill { to { transform: scaleX(1); } }

/* -------------------------------------------------- stats */
.mx-stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.mx-stats__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mx-stat {
  padding: 34px 24px;
  border-left: 1px solid var(--line);
}
.mx-stat:first-child { border-left: 0; padding-left: 0; }
.mx-stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--acc);
}
.mx-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* -------------------------------------------------- infra band */
.mx-power { position: relative; padding: var(--sec) 0; overflow: hidden; }
.mx-power__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.mx-power__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, .96) 0%, rgba(5, 8, 6, .86) 42%, rgba(5, 8, 6, .34) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}
.mx-power__in { position: relative; }
.mx-power .mx-lead { margin-top: 18px; }
.mx-power__list { margin-top: 26px; display: grid; gap: 12px; max-width: 52ch; }
.mx-power__list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15px;
}
.mx-power__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 14px; height: 1px;
  background: var(--acc);
}

/* -------------------------------------------------- bento */
.mx-feat { padding: var(--sec) 0; }
.mx-feat__title { margin-bottom: 40px; }
.mx-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.mx-cell {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  padding: 26px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.mx-cell:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.mx-cell p { color: var(--ink-2); font-size: 15px; }

.mx-cell--globe {
  grid-column: span 7;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}
.mx-cell--globe .mx-cell__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mx-cell--globe { position: relative; }
.mx-cell__body {
  position: relative;
  padding: 26px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 6, .82) 34%, rgba(5, 8, 6, .96));
}
.mx-cell--code {
  grid-column: span 5;
  background:
    repeating-linear-gradient(180deg, rgba(59, 240, 124, .05) 0 1px, transparent 1px 7px),
    var(--bg-2);
}
.mx-cell--devices { grid-column: span 5; }
.mx-cell--pay {
  grid-column: span 6;
  background: linear-gradient(115deg, rgba(59, 240, 124, .09), rgba(8, 13, 10, 0) 55%), var(--bg-2);
}
.mx-cell--pay p { max-width: 64ch; }

/* -------------------------------------------------- plans */
.mx-plans { padding: var(--sec) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.mx-plans__title { margin-bottom: 14px; }
.mx-plans__lead { margin-bottom: 44px; }
.mx-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.mx-plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 42px 26px 30px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.mx-plan:hover { border-color: var(--line-2); }
.mx-plan--hot {
  border-color: rgba(59, 240, 124, .42);
  background: linear-gradient(180deg, rgba(59, 240, 124, .07), rgba(5, 8, 6, 0) 48%), var(--bg);
  box-shadow: 0 24px 60px -34px rgba(59, 240, 124, .5);
}
.mx-plan__flag {
  position: absolute;
  top: 14px; left: 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc);
}
.mx-plan__term { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.mx-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.mx-plan__price b {
  font-family: var(--f-mono);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.mx-plan__price span { font-size: 22px; color: var(--ink-2); }
.mx-plan__month { margin-top: 8px; font-size: 13px; color: var(--acc); }
.mx-plan__list { margin: 24px 0 26px; display: grid; gap: 10px; }
.mx-plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.mx-plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 10px; height: 1px;
  background: var(--acc-deep);
}
.mx-plans__note { margin-top: 26px; font-size: 14px; color: var(--ink-3); max-width: 60ch; }

/* -------------------------------------------------- steps */
.mx-setup { padding: var(--sec) 0; }
.mx-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  counter-reset: mx-s;
}
.mx-step {
  counter-increment: mx-s;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.mx-step::before {
  content: counter(mx-s, decimal-leading-zero);
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 12px;
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--acc);
}
.mx-step p { color: var(--ink-2); font-size: 15px; }

/* -------------------------------------------------- faq */
.mx-faq { padding: var(--sec) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.mx-faq__in { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mx-faq__head { display: grid; gap: 18px; }
.mx-acc { display: grid; }
.mx-q { border-bottom: 1px solid var(--line); }
.mx-q:first-child { border-top: 1px solid var(--line); }
.mx-q summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 500;
  font-size: 16px;
  transition: color .2s var(--ease);
}
.mx-q summary::-webkit-details-marker { display: none; }
.mx-q summary:hover { color: var(--acc); }
.mx-q summary::after,
.mx-q summary::before {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--acc);
  transition: transform .3s var(--ease);
}
.mx-q summary::before { transform: rotate(90deg); }
.mx-q[open] summary::before { transform: rotate(0deg); }
.mx-q__body {
  overflow: hidden;
  padding-bottom: 20px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 62ch;
}
.mx-q[open] .mx-q__body { animation: mx-reveal .32s var(--ease); }
@keyframes mx-reveal { from { opacity: 0; transform: translateY(-6px); } }

/* -------------------------------------------------- final cta */
.mx-final { padding: var(--sec) 0; position: relative; overflow: hidden; }
.mx-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 50% 100%, rgba(59, 240, 124, .13), transparent 62%);
  pointer-events: none;
}
.mx-final__in { position: relative; text-align: center; display: grid; justify-items: center; gap: 18px; }
.mx-final__h {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 16ch;
}
.mx-final__p { color: var(--ink-2); max-width: 50ch; font-size: 16px; }
.mx-final .mx-btn { margin-top: 10px; }

/* -------------------------------------------------- footer */
.mx-foot { border-top: 1px solid var(--line); padding: 46px 0 56px; background: var(--bg-2); }
.mx-foot__in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.mx-foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 700; }
.mx-foot__brand img { width: 28px; height: 28px; }
.mx-foot__nav { display: flex; flex-wrap: wrap; gap: 22px; justify-self: end; font-size: 14px; color: var(--ink-2); }
.mx-foot__nav a { transition: color .2s var(--ease); }
.mx-foot__nav a:hover { color: var(--acc); }
.mx-foot__legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); max-width: 78ch; line-height: 1.55; }

/* -------------------------------------------------- reveal */
.mx-rise { opacity: 0; transform: translateY(22px); }
.mx-rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* -------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .mx-hero__in { grid-template-columns: 1fr; }
  .mx-hero__panel { justify-self: start; max-width: 460px; }
  .mx-faq__in { grid-template-columns: 1fr; }
  .mx-cell--globe { grid-column: span 12; grid-row: auto; min-height: 320px; }
  .mx-cell--code { grid-column: span 12; }
  .mx-cell { grid-column: span 6; }
  .mx-cell--devices { grid-column: span 6; }
  .mx-cell--pay { grid-column: span 12; }
}

@media (max-width: 860px) {
  .mx-head__in { height: 64px; gap: 12px; }
  .mx-burger { display: flex; }
  .mx-head__cta { display: none; }
  .mx-nav {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--pad) 26px;
    background: rgba(5, 8, 6, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s var(--ease);
  }
  .mx-nav.is-open { clip-path: inset(0 0 0 0); }
  .mx-nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mx-nav__link::after { display: none; }

  .mx-stats__in { grid-template-columns: repeat(2, 1fr); }
  .mx-stat { padding: 24px 20px; border-top: 1px solid var(--line); }
  .mx-stat:first-child { padding-left: 20px; border-left: 1px solid var(--line); }
  .mx-stat:nth-child(-n+2) { border-top: 0; }
  .mx-stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .mx-grid3, .mx-steps { grid-template-columns: 1fr; }
  .mx-foot__in { grid-template-columns: 1fr; }
  .mx-foot__nav { justify-self: start; }
}

@media (max-width: 600px) {
  .mx-hero { padding-top: 104px; }
  .mx-cell, .mx-cell--globe, .mx-cell--code, .mx-cell--pay { grid-column: span 12; }
  .mx-hero__cta .mx-btn { flex: 1 1 100%; }
  /* keeps the primary CTA above the fold on small phones */
  .mx-hero__panel { display: none; }
  .mx-gauge__row { grid-template-columns: 58px 1fr auto; }
}

/* -------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mx-caret { animation: none; }
  .mx-gauge__bar i { animation: none; transform: scaleX(1); }
  .mx-q[open] .mx-q__body { animation: none; }
  .mx-rise { opacity: 1; transform: none; transition: none; }
  .mx-rain { display: none; }
  .mx-btn, .mx-cell, .mx-nav { transition: none; }
}
