:root {
  color-scheme: dark;
  --bg: #110817;
  --text: #fff7ff;
  --muted: rgba(255, 247, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --line: rgba(255, 255, 255, 0.28);
  --pink: #ff4db8;
  --violet: #8c5cff;
  --cyan: #5de7ff;
  --green: #6fffc4;
  --shadow: rgba(13, 5, 26, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 77, 184, 0.34), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(93, 231, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 80%, rgba(140, 92, 255, 0.34), transparent 34rem),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    linear-gradient(115deg, rgba(108, 60, 255, 0.68), rgba(255, 62, 166, 0.58), rgba(93, 231, 255, 0.25)),
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 30%);
  filter: blur(88px);
  opacity: 0.72;
  animation: gradientFlow 16s ease-in-out infinite alternate;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.24;
  pointer-events: none;
}

.ambient-one {
  top: 8rem;
  left: -7rem;
  background: var(--pink);
  animation: floatOne 13s ease-in-out infinite;
}

.ambient-two {
  right: -8rem;
  top: 18rem;
  background: var(--violet);
  animation: floatTwo 15s ease-in-out infinite;
}

.ambient-three {
  left: 35%;
  bottom: -12rem;
  background: var(--cyan);
  animation: floatThree 18s ease-in-out infinite;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 8, 23, 0.58);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 77, 184, 0.82), rgba(140, 92, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 28px rgba(255, 77, 184, 0.24);
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.74fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 70px 0 42px;
}

.hero-copy h1,
.section-head h2,
.cabinet-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: 4.4rem;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.glass-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #ff4db8, #8c5cff 58%, #5de7ff);
  box-shadow: 0 18px 42px rgba(255, 77, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.glass-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
}

.primary-button:hover,
.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(255, 77, 184, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.primary-button.full,
.glass-button.full {
  width: 100%;
}

.glass-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(34px) saturate(170%);
}

.hero-device {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 560px;
  border-radius: 28px;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.2), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.device-topline,
.speed-grid {
  position: relative;
  z-index: 1;
}

.device-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
}

.device-topline strong {
  color: var(--green);
  font-size: 0.76rem;
}

.connection-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  margin: 62px auto;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08) 36%, rgba(255, 77, 184, 0.18) 62%, rgba(140, 92, 255, 0.08));
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2), 0 0 80px rgba(255, 77, 184, 0.34);
  animation: pulseOrb 4s ease-in-out infinite;
}

.connection-orb span {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.36);
}

.speed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.speed-grid div,
.subscription-box,
.payment-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

small {
  color: var(--muted);
}

.speed-grid strong,
.subscription-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head h2,
.cabinet-copy h2 {
  font-size: 2.8rem;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.section-head.split p {
  max-width: 390px;
  margin: 0 0 6px;
  color: var(--muted);
}

.benefit-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card,
.plan-card {
  padding: 22px;
}

.benefit-card .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
}

.benefit-card h3,
.plan-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.benefit-card p,
.plan-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.plan-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.1);
}

.badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.price {
  margin: 22px 0;
}

.price strong {
  font-size: 2.5rem;
}

.price span {
  color: var(--muted);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  list-style: none;
}

.plan-card li {
  display: flex;
  gap: 8px;
}

.plan-card li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(111, 255, 196, 0.8);
}

.plan-card button {
  margin-top: auto;
}

.cabinet-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 32px;
}

.cabinet-copy {
  align-self: center;
}

.cabinet-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.06rem;
}

.account-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 4, 14, 0.24);
}

.tabs,
.provider-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.tab,
.provider {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-weight: 800;
}

.tab.active,
.provider.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.auth-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(255, 77, 184, 0.14);
}

.hidden {
  display: none !important;
}

.cabinet-view {
  display: grid;
  gap: 14px;
}

.cabinet-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cabinet-user strong {
  display: block;
  max-width: 230px;
  overflow-wrap: anywhere;
}

.subscription-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.payment-box {
  display: grid;
  gap: 14px;
}

.payment-box .provider-toggle {
  margin-bottom: 0;
}

.status-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.status-message.error {
  color: #ffb9d8;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 44px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes gradientFlow {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(2%, 2%, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes floatOne {
  50% {
    transform: translate(4rem, 2rem);
  }
}

@keyframes floatTwo {
  50% {
    transform: translate(-5rem, 3rem);
  }
}

@keyframes floatThree {
  50% {
    transform: translate(3rem, -3rem);
  }
}

@keyframes pulseOrb {
  50% {
    transform: scale(1.04);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.24), 0 0 110px rgba(140, 92, 255, 0.44);
  }
}

@media (max-width: 980px) {
  .hero,
  .cabinet-card,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .benefit-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell,
  .topbar {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    border-radius: 20px;
  }

  .nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .section-head h2,
  .cabinet-copy h2 {
    font-size: 2rem;
  }

  .hero-device {
    min-height: 440px;
  }

  .connection-orb {
    width: 200px;
    height: 200px;
    margin: 40px auto;
  }

  .benefit-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .copy-row,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
