:root {
  color-scheme: dark;
  --bg: #050505;
  --card: #131d31;
  --card-border: #223356;
  --card-featured: #16243b;
  --text: #f5f7fb;
  --muted: #b9c5da;
  --heading: #9ec0f5;
  --accent: #96b8ee;
  --accent-strong: #87f5ff;
  --brand-panel: linear-gradient(180deg, #3b1118 0%, #2d0d13 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #000;
  color: var(--text);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.8rem 0 3rem;
}

.brand-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #301017 0%, #26111a 100%);
  margin-bottom: 1.15rem;
  background-clip: padding-box;
  animation: 10s ease infinite headerGradient;
}

.brand-bar::before,
.brand-bar::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.7;
}

.brand-bar::before {
  content: none;
}

.brand-bar::after {
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(16, 132, 254, 0.15),
      rgba(229, 125, 175, 0.15),
      rgba(254, 36, 29, 0.15),
      rgba(255, 183, 0, 0.15),
      rgba(22, 193, 68, 0.15)
    ) 0 0 / 400% 400%;
  animation: 10s ease infinite headerGradient;
}

.brand-logo,
.brand-copy {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: block;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.brand-copy p {
  margin: 0.4rem 0 0;
  color: #d7dfef;
  font-size: 1rem;
}

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

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid var(--card-border);
  background: var(--card);
}

.plan.featured {
  background: var(--card-featured);
  border-color: #2e5d86;
  box-shadow:
    0 0 0 1px rgba(74, 155, 220, 0.2),
    0 0 28px rgba(37, 173, 255, 0.12),
    0 0 52px rgba(18, 110, 173, 0.08);
}

.plan-chip {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #275f83;
  background: #15384a;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.plan-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  border-radius: 0.9rem;
  background: #9dbbef;
  position: relative;
}

.icon-lite::before,
.icon-lite::after,
.icon-plus::before,
.icon-plus::after,
.icon-max::before,
.icon-max::after {
  content: "";
  position: absolute;
  background: #13203a;
}

.icon-lite::before {
  left: 0.62rem;
  top: 0.72rem;
  width: 1.76rem;
  height: 0.34rem;
  box-shadow: 0 0.55rem 0 #13203a, 0 1.1rem 0 #13203a;
}

.icon-lite::after {
  left: 0.82rem;
  top: 0.82rem;
  width: 0.18rem;
  height: 0.14rem;
  border-radius: 0.2rem;
  box-shadow: 0 0.55rem 0 #13203a, 0 1.1rem 0 #13203a;
}

.icon-plus::before {
  left: 1.08rem;
  top: 0.46rem;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 999px;
}

.icon-plus::after {
  left: 0.72rem;
  top: 1.5rem;
  width: 1.56rem;
  height: 0.88rem;
  border-radius: 0.88rem 0.88rem 0.2rem 0.2rem;
}

.icon-max::before {
  left: 0.6rem;
  top: 0.66rem;
  width: 0.42rem;
  height: 1.72rem;
  border-radius: 0.4rem;
  box-shadow: 0.7rem -0.22rem 0 #13203a, 1.4rem 0.16rem 0 #13203a;
}

.icon-max::after {
  left: 0.54rem;
  top: 2.16rem;
  width: 0.54rem;
  height: 0.2rem;
  border-radius: 0.3rem;
  box-shadow: 0.7rem -0.22rem 0 #13203a, 1.4rem 0.16rem 0 #13203a;
}

.plan-label {
  margin: 0;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.size {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.features {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.features li {
  position: relative;
  padding-left: 2rem;
  color: #f6f8fd;
  font-size: 0.95rem;
  line-height: 1.45;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid #23f2a4;
}

.features li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.48rem;
  width: 0.34rem;
  height: 0.16rem;
  border-left: 2px solid #23f2a4;
  border-bottom: 2px solid #23f2a4;
  transform: rotate(-45deg);
}

.price-box {
  margin-top: auto;
  padding-top: 1.25rem;
}

.price {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
}

.price-meta {
  margin: 0.15rem 0 0;
  color: #d7ddea;
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16rem;
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border-radius: 0.9rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes headerGradient {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.footer {
  padding-top: 1.35rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0 0 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.4rem;
}

.footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.legal-wrap {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 2.4rem 0;
}

.legal-card {
  background: #131d31;
  border: 1px solid #223356;
  border-radius: 1.35rem;
  padding: 1.7rem 1.4rem;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--heading);
}

.legal-meta {
  margin: 0.65rem 0 1.4rem;
  color: var(--muted);
}

.legal-card h2 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.1rem;
  color: var(--text);
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.legal-back {
  display: inline-flex;
  margin-top: 1.4rem;
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
