:root {
  --muz-zoom: 1;
  --bg: #11184a;
  --bg-deep: #0b123b;
  --panel: rgba(45, 46, 111, 0.58);
  --panel-strong: rgba(53, 54, 128, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --pink: #ff377d;
  --orange: #ff9a2e;
  --violet: #7a5cff;
  --blue: #45a7ff;
  --shadow: 0 28px 80px rgba(5, 8, 36, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 78, 137, 0.28), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(61, 111, 255, 0.26), transparent 34%),
    var(--bg-deep);
  color: var(--text);
  font-family: Inter, Manrope, Arial, sans-serif;
  line-height: 1.45;
}

body,
main {
  width: calc(100vw / var(--muz-zoom, 1));
  max-width: calc(100vw / var(--muz-zoom, 1));
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: calc(100vw / var(--muz-zoom, 1));
  max-width: calc(100vw / var(--muz-zoom, 1));
  min-height: 72px;
  margin: 0 auto;
  padding: 0 clamp(44px, 4.2vw, 84px);
}

.brand,
.main-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 32px;
  height: 32px;
}

.brand-mark i {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--orange));
  border-radius: 999px;
}

.brand-mark i:nth-child(1) {
  height: 16px;
}

.brand-mark i:nth-child(2) {
  height: 28px;
}

.brand-mark i:nth-child(3) {
  height: 22px;
}

.brand-mark i:nth-child(4) {
  height: 13px;
}

.main-nav {
  justify-content: center;
  gap: 38px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 760;
}

.main-nav a:hover {
  color: #fff;
}

.header-actions {
  gap: 12px;
}

.login-button,
.register-button,
.primary-button,
.video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.login-button,
.video-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.register-button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 30px rgba(255, 62, 125, 0.28);
}

.video-button {
  gap: 10px;
}

.video-button span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255, 255, 255, 0.74);
}

.hero {
  position: relative;
  width: calc(100vw / var(--muz-zoom, 1));
  max-width: calc(100vw / var(--muz-zoom, 1));
  height: calc(100vh / var(--muz-zoom, 1));
  min-height: 760px;
  padding: 96px clamp(44px, 4.2vw, 84px) 46px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 14, 54, 0.02), rgba(10, 14, 54, 0.88)),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 138, 64, 0.72), transparent 24%),
    radial-gradient(circle at 40% 12%, rgba(91, 112, 255, 0.52), transparent 34%),
    radial-gradient(circle at 80% 34%, rgba(255, 57, 128, 0.16), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 20, 63, 0.12), rgba(15, 20, 63, 0.72) 49%, rgba(15, 20, 63, 0.95) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background: url("./assets/hero-muzmatrix.png") left center / cover no-repeat;
  filter: saturate(1.12) contrast(1.02);
}

.wave-lines {
  position: absolute;
  left: 52px;
  top: 170px;
  width: 190px;
  height: 320px;
  opacity: 0.62;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.35) 42% 44%, transparent 44% 56%, rgba(255, 255, 255, 0.24) 56% 58%, transparent 58%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.18) 22px 24px, transparent 24px 42px);
  mask-image: radial-gradient(ellipse at center, #000 0 38%, transparent 69%);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 3;
  max-width: none;
  margin: 0 auto;
}

.hero-content {
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: clamp(0px, 0.8vw, 18px);
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.33em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 30px;
  font-size: 96px;
  font-weight: 820;
  line-height: 1.01;
  letter-spacing: 0;
}

h1 span,
.features-section h2 span,
.numbers-title span {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 span {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 25px;
  line-height: 1.42;
}

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

.hero-actions .primary-button,
.hero-actions .video-button {
  min-height: 82px;
  padding: 0 52px;
  font-size: 20px;
}

.hero-stats {
  position: absolute;
  left: clamp(44px, 4.2vw, 84px);
  right: clamp(44px, 4.2vw, 84px);
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
}

.stat-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 0 clamp(28px, 3.2vw, 58px);
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: 0;
}

.feature-icon,
.number-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
}

.feature-icon::before,
.number-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.stat-icon {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.shield-icon,
.repair-icon {
  color: #ff669b;
}

.note-icon,
.events-icon {
  color: #ffb24b;
}

.people-icon,
.jobs-icon {
  color: #ff669b;
}

.star-icon,
.lessons-icon,
.market-icon,
.community-icon {
  color: #8ea8ff;
}

.stat-item strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.stat-item small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.22;
}

.features-section,
.numbers-section,
.how-section,
.site-footer {
  width: calc(100vw / var(--muz-zoom, 1));
  max-width: calc(100vw / var(--muz-zoom, 1));
  margin: 0 auto;
}

.features-section {
  padding: 80px clamp(44px, 4.2vw, 84px) 28px;
}

.features-section h2,
.how-section h2 {
  margin-bottom: 34px;
  text-align: center;
  font-size: 34px;
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(5, 8, 36, 0.18);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 63, 0.1) 32%, rgba(22, 25, 76, 0.96) 58%);
}

.feature-card > img:not(.feature-icon-img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-icon {
  position: absolute;
  left: 18px;
  top: 178px;
  z-index: 2;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 55, 125, 0.9), rgba(255, 154, 46, 0.82));
  border: 0;
  border-radius: 50%;
}

.feature-icon-img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 10px;
  object-fit: contain;
}

.feature-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 198px;
  padding: 52px 18px 58px;
}

.feature-body h3 {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.12;
}

.feature-body p {
  min-height: 0;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.feature-body a {
  position: absolute;
  left: 18px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.feature-body a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.72);
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.numbers-section {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 12px;
  align-items: center;
  width: auto;
  max-width: none;
  margin: 8px clamp(44px, 4.2vw, 84px) 0;
  padding: 28px clamp(44px, 4.2vw, 84px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 55, 125, 0.26), transparent 34%),
    radial-gradient(circle at 90% 70%, rgba(122, 92, 255, 0.22), transparent 32%),
    rgba(42, 43, 110, 0.7);
  box-shadow: var(--shadow);
}

.numbers-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.number-item {
  min-height: 100px;
  padding: 8px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.number-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #ff72a3;
  border: 0;
}

.number-icon-img {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  object-fit: contain;
}

.number-item strong {
  display: block;
  font-size: 23px;
}

.number-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.how-section {
  width: auto;
  max-width: none;
  margin: 46px clamp(44px, 4.2vw, 84px) 0;
  padding: 22px clamp(44px, 4.2vw, 84px) 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.how-grid article {
  position: relative;
  min-height: 156px;
  padding: 8px 18px;
}

.how-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: 22px;
  width: 142px;
  border-top: 2px dotted rgba(255, 255, 255, 0.2);
}

.how-grid article:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 9px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(255, 255, 255, 0.22);
}


.how-grid span {
  display: inline-block;
  margin: 0 18px 14px 0;
  color: rgba(255, 255, 255, 0.18);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  vertical-align: middle;
}

.how-icon-img {
  display: inline-block;
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  object-fit: contain;
  vertical-align: middle;
}

.how-grid h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.how-grid p {
  color: var(--muted);
  font-size: 13px;
}

.join-banner {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1c205e;
}

.join-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 26, 87, 0.96), rgba(31, 26, 87, 0.56) 45%, rgba(31, 26, 87, 0.08));
}

.join-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-banner > div {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: 44px 48px;
}

.join-banner h2 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.08;
}

.join-banner p {
  margin-bottom: 24px;
  color: var(--muted);
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 34px clamp(44px, 4.2vw, 84px) 46px;
  background: rgba(15, 20, 63, 0.82);
}

.site-footer .brand {
  margin-bottom: 22px;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 14px;
}

.site-footer p,
.site-footer small,
.site-footer a {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.social-row {
  display: flex;
  gap: 9px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .numbers-section {
    grid-template-columns: 1fr 1fr;
  }

  .number-item {
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 90px 22px 34px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(15, 20, 63, 0.28), rgba(15, 20, 63, 0.76) 44%, rgba(15, 20, 63, 0.98)),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  }

  .hero-visual {
    background-position: 30% center;
  }

  .hero-content {
    width: min(100%, 470px);
    margin-left: 0;
    padding-top: 160px;
  }

  h1 {
    font-size: 45px;
  }

  .hero-stats,
  .how-grid,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    margin-top: 64px;
  }

  .stat-item {
    border-right: 0;
  }

  .features-section,
  .numbers-section,
  .how-section,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 620px) {
  body,
  main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    min-height: 64px;
  }

  .header-actions {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    min-height: 900px;
    padding-top: 74px;
    overflow: hidden;
  }

  .hero-content {
    width: min(320px, calc(100vw - 44px));
    max-width: min(320px, calc(100vw - 44px));
    min-width: 0;
    padding-top: 150px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  h1 {
    width: min(320px, calc(100vw - 44px));
    max-width: 100%;
    font-size: 29px;
    overflow-wrap: break-word;
    word-break: normal;
  }

  h1 span {
    display: block;
  }

  .hero-copy {
    width: min(320px, calc(100vw - 44px));
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 44px));
    max-width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .video-button {
    width: 100%;
    min-width: 0;
  }

  .hero-stats,
  .feature-grid,
  .numbers-section,
  .how-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .features-section,
  .numbers-section,
  .how-section,
  .site-footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .feature-grid,
  .feature-card,
  .numbers-section,
  .how-section,
  .join-banner {
    width: min(320px, calc(100vw - 44px));
    max-width: min(320px, calc(100vw - 44px));
    min-width: 0;
  }

  .hero-stats {
    gap: 4px;
    margin-top: 42px;
  }

  .stat-item {
    min-height: 66px;
  }

  .stat-item strong {
    font-size: 24px;
  }

  .features-section h2,
  .how-section h2 {
    font-size: 27px;
  }

  .feature-card {
    min-height: 340px;
  }

  .feature-body h3,
  .feature-body p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .feature-icon {
    top: 142px;
  }

  .feature-icon-img {
    width: 68px;
    height: 68px;
  }

  .feature-body {
    min-height: 164px;
    padding-top: 42px;
  }

  .how-grid article:not(:last-child)::after {
    display: none;
  }

  .join-banner > div {
    padding: 34px 24px;
  }

  .join-banner h2 {
    font-size: 30px;
  }
}
