:root{
  --mx-red:#ed1c24;
  --mx-red-dark:#b90f1d;
  --mx-black:#111827;
  --mx-muted:#64748b;
  --mx-bg:#f5f7fb;
  --mx-border:#e5e7eb;
  --mx-card:#ffffff;
}

*{
  box-sizing:border-box;
}

body.mx-public-body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:#ffffff;
  color:#111827;
}

.mx-public-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid #eef2f7;
}

.mx-public-wrap{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
}

.mx-public-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:78px;
  gap:18px;
}

.mx-public-logo{
  width:180px;
  height:62px;
  background:url('/assets/matrix-logo.svg?v=63') center left / contain no-repeat;
}

.mx-public-links{
  display:flex;
  align-items:center;
  gap:12px;
}

.mx-public-links a{
  color:#111827;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}

.mx-public-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--mx-red),var(--mx-red-dark));
  color:#ffffff!important;
  text-decoration:none!important;
  font-weight:900!important;
  box-shadow:0 12px 28px rgba(237,28,36,.20);
  border:0;
  cursor:pointer;
}

.mx-public-btn.dark{
  background:#111827;
  box-shadow:0 12px 28px rgba(17,24,39,.18);
}

.mx-hero{
  padding:74px 0 54px;
  background:
    radial-gradient(circle at top left, rgba(237,28,36,.10), transparent 30%),
    linear-gradient(135deg,#ffffff,#f6f8fb);
  border-bottom:1px solid #edf2f7;
}

.mx-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
  gap:34px;
  align-items:center;
}

.mx-eyebrow{
  display:inline-flex;
  background:#fff1f2;
  color:#991b1b;
  padding:8px 13px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  margin-bottom:18px;
}

.mx-hero h1{
  font-size:54px;
  line-height:1.02;
  letter-spacing:-.055em;
  margin:0 0 18px;
}

.mx-hero p{
  color:#475569;
  font-size:18px;
  line-height:1.65;
  margin:0 0 24px;
}

.mx-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.mx-hero-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:26px;
  box-shadow:0 26px 70px rgba(15,23,42,.10);
}

.mx-hero-card h2{
  margin:0 0 10px;
  font-size:24px;
}

.mx-domain-box{
  display:flex;
  gap:10px;
  margin:18px 0 14px;
}

.mx-domain-box input{
  flex:1;
  height:48px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:0 13px;
  font-size:15px;
}

.mx-domain-box input:focus{
  outline:none;
  border-color:var(--mx-red);
  box-shadow:0 0 0 4px rgba(237,28,36,.10);
}

.mx-note{
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#991b1b;
  padding:12px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
}

.mx-section{
  padding:58px 0;
}

.mx-section-title{
  text-align:center;
  max-width:760px;
  margin:0 auto 34px;
}

.mx-section-title h2{
  margin:0 0 10px;
  font-size:36px;
  letter-spacing:-.04em;
}

.mx-section-title p{
  margin:0;
  color:#64748b;
  font-size:16px;
  line-height:1.6;
}

.mx-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.mx-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:22px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.mx-card-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1.5px solid #111827;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--mx-red);
  font-weight:900;
  margin-bottom:14px;
}

.mx-card h3{
  margin:0 0 8px;
  font-size:19px;
}

.mx-card p{
  margin:0;
  color:#64748b;
  line-height:1.55;
  font-size:14px;
}

.mx-plans{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.mx-plan{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:24px;
  box-shadow:0 14px 36px rgba(15,23,42,.06);
}

.mx-plan.featured{
  border-color:#fecdd3;
  box-shadow:0 24px 60px rgba(237,28,36,.12);
}

.mx-plan h3{
  margin:0 0 8px;
  font-size:22px;
}

.mx-price{
  font-size:34px;
  font-weight:950;
  letter-spacing:-.04em;
  margin:14px 0;
}

.mx-price span{
  color:#64748b;
  font-size:14px;
  font-weight:700;
}

.mx-plan ul{
  padding:0;
  margin:18px 0 22px;
  list-style:none;
}

.mx-plan li{
  padding:8px 0;
  color:#334155;
  border-bottom:1px solid #f1f5f9;
  font-weight:650;
}

.mx-cta{
  background:#111827;
  color:#ffffff;
  border-radius:24px;
  padding:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.mx-cta h2{
  margin:0 0 8px;
  font-size:34px;
  letter-spacing:-.04em;
}

.mx-cta p{
  margin:0;
  color:#cbd5e1;
}

.mx-footer{
  padding:28px 0;
  border-top:1px solid #e5e7eb;
  color:#64748b;
  font-size:14px;
}

@media(max-width:900px){
  .mx-hero-grid,
  .mx-cards,
  .mx-plans{
    grid-template-columns:1fr;
  }

  .mx-hero h1{
    font-size:40px;
  }

  .mx-public-nav{
    display:block;
    padding:14px 0;
  }

  .mx-public-links{
    margin-top:10px;
    flex-wrap:wrap;
  }

  .mx-domain-box{
    display:block;
  }

  .mx-domain-box input,
  .mx-domain-box .mx-public-btn{
    width:100%;
    margin-bottom:10px;
  }

  .mx-cta{
    display:block;
  }

  .mx-cta .mx-public-btn{
    margin-top:18px;
  }
}
