:root {
  --bg: #020a13;
  --header: #05131f;
  --panel: #061521;
  --text: #f5fbff;
  --muted: #c9d7e2;
  --cyan: #00cfff;
  --blue: #108cff;
  --purple: #b45cff;
  --green: #18dd72;
  --orange: #ff9d00;
  --line: rgba(137, 177, 198, .22);
  --wrap: 1770px;
  --header-h: clamp(52px, 7.5dvh, 82px);
  --hero-h: clamp(230px, 34.9dvh, 377px);
  --card-h: clamp(225px, 32.3dvh, 349px);
  --feature-h: clamp(78px, 11.7dvh, 127px);
  --footer-h: clamp(80px, 11.7dvh, 132px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.wrap {
  width: min(var(--wrap), 92%);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  background: var(--header);
  border-bottom: 1px solid rgba(102, 151, 176, .08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-mark {
  display: inline-block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 43px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: .8;
  transform: skewX(-8deg);
  background: linear-gradient(145deg, #44e8ff 4%, #008cff 47%, #21cfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 174, 255, .34));
  padding-right: 5px;
}

.brand-name {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .005em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 47px);
  margin-left: auto;
  height: 100%;
  font-size: 19px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  padding: 0 20px;
  border: 1.5px solid rgba(204, 230, 242, .75);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 10px;
}

.portal-arrow {
  color: #c3e8f5;
  font-size: 26px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  margin-left: auto;
  padding: 8px 7px;
  border: 1px solid rgba(155, 202, 222, .45);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: var(--hero-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(91, 144, 171, .12);
  background:
    radial-gradient(ellipse at 81% 33%, rgba(0, 137, 208, .22), transparent 40%),
    linear-gradient(100deg, #020b15 0 40%, #04131e 59%, #020a12 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 9, 16, .88) 0 33%, rgba(2, 12, 20, .36) 54%, transparent 74%);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 38%;
  overflow: hidden;
}

.hero-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 42%, rgba(0, 157, 231, .3), transparent 37%),
    linear-gradient(110deg, #020b12 0 16%, #071722 34%, #0b2432 53%, #07131d 100%);
}

.hero-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    repeating-linear-gradient(112deg, transparent 0 182px, rgba(116, 168, 188, .13) 183px 185px, transparent 186px 360px),
    repeating-linear-gradient(17deg, transparent 0 122px, rgba(94, 146, 168, .1) 123px 125px, transparent 126px 240px);
  transform: skewX(-13deg) scale(1.15);
  transform-origin: 50% 50%;
}

.hero-wall::after {
  content: "";
  position: absolute;
  left: 37%;
  top: 8%;
  width: 3px;
  height: 88%;
  background: linear-gradient(transparent, rgba(101, 189, 229, .5), transparent);
  box-shadow: 0 0 30px rgba(0, 164, 255, .72);
  transform: rotate(-14deg);
}

.wall-glow {
  position: absolute;
  width: 410px;
  height: 280px;
  right: 10%;
  top: 39%;
  background: radial-gradient(ellipse, rgba(0, 146, 255, .42), rgba(0, 136, 255, .08) 46%, transparent 70%);
  filter: blur(18px);
}

.hero-mt {
  position: absolute;
  top: 32px;
  right: 9.5%;
  display: flex;
  align-items: flex-start;
  transform: skewX(-9deg) rotate(-1deg);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(170px, 19vw, 305px);
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: .8;
  color: #e2f2fb;
  text-shadow:
    3px 0 #b6d4e2,
    6px 0 #89b2c5,
    10px 0 #567c90,
    15px 0 #2c4e61,
    20px 0 #143445,
    24px 0 #061d2d,
    0 0 26px rgba(0, 182, 255, .55),
    0 0 72px rgba(0, 155, 255, .38);
}

.hero-mt span:last-child { margin-left: -.13em; }

.wall-reflection {
  position: absolute;
  left: 39%;
  bottom: -28%;
  width: 72%;
  height: 55%;
  background: linear-gradient(180deg, rgba(0, 166, 255, .16), transparent 76%);
  filter: blur(12px);
  transform: rotate(-6deg);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: var(--hero-h);
  padding-top: clamp(12px, 2dvh, 20px);
  padding-bottom: clamp(12px, 2dvh, 20px);
}

.hero-copy {
  width: min(1060px, 66%);
  margin-top: -3px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.1dvh, 40px);
  line-height: 1.11;
  font-weight: 900;
  letter-spacing: -.028em;
}

.hero h1 span { color: var(--cyan); }

.hero p {
  margin: clamp(8px, 1.6dvh, 18px) 0 clamp(10px, 2dvh, 22px);
  max-width: 760px;
  color: #d3dee6;
  font-size: clamp(14px, 1.95dvh, 19px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(36px, 4.7dvh, 47px);
  padding: 0 clamp(18px, 2vw, 26px);
  border-radius: 8px;
  font-size: clamp(14px, 1.8dvh, 17px);
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  min-width: 199px;
  color: #00131d;
  background: linear-gradient(180deg, #23d8f5, #00b6dc);
  box-shadow: 0 8px 28px rgba(0, 187, 232, .2);
}

.btn-primary span { font-size: 24px; line-height: 1; }
.btn-outline { border: 1.5px solid rgba(185, 220, 235, .8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: #fff; }

.apps {
  position: relative;
  padding: 0 0 10px;
  background: #020a13;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  position: relative;
  min-height: var(--card-h);
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 15px;
  isolation: isolate;
  background: #07131d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 5, 10, .58) 0%, rgba(0, 10, 17, .08) 44%, rgba(0, 6, 12, .38) 100%),
    radial-gradient(ellipse at 50% 21%, transparent 35%, rgba(0, 4, 8, .2) 100%);
}

.app-card.mtold { color: var(--purple); }
.app-card.mtdesign { color: var(--cyan); }
.app-card.mtsk { color: var(--green); }
.app-card.mtv { color: var(--orange); }

.card-art,
.card-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-art svg { object-fit: cover; }

.card-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: calc(var(--card-h) - 4px);
  padding: clamp(13px, 2.2dvh, 23px) clamp(13px, 1.4vw, 22px) clamp(11px, 1.7dvh, 18px);
}

.card-content > .card-art {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: clamp(3px, .8dvh, 7px) 0 clamp(3px, .9dvh, 9px);
  overflow: hidden;
  border-radius: 8px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: clamp(40px, 5.9dvh, 59px);
  height: clamp(40px, 5.9dvh, 59px);
  flex: 0 0 auto;
  border-radius: clamp(10px, 1.5dvh, 14px);
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
}

.card-icon svg {
  width: clamp(26px, 3.8dvh, 38px);
  height: clamp(26px, 3.8dvh, 38px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-purple { background: linear-gradient(145deg, #c66dff, #a139e8); }
.icon-cyan { background: linear-gradient(145deg, #20d8f5, #009fca); }
.icon-green { background: linear-gradient(145deg, #26e78a, #00b554); }
.icon-orange { background: linear-gradient(145deg, #ffb018, #f08700); }

.app-title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.9dvh, 37px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

.app-title span { color: #fff; }
.app-title em { font-style: normal; }
.title-purple { color: #c66dff; }
.title-cyan { color: #22d9f5; }
.title-green { color: #2eea84; }
.title-orange { color: #ffad13; }

.app-desc {
  margin: clamp(6px, 1dvh, 10px) 0 0;
  color: #f2f8fb;
  font-size: clamp(13px, 1.95dvh, 19px);
  line-height: 1.26;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  min-height: clamp(32px, 4.3dvh, 41px);
  margin-top: 0;
  padding: 0 clamp(12px, 1.1vw, 17px);
  border: 1.5px solid currentColor;
  border-radius: 9px;
  background: rgba(4, 14, 22, .56);
  color: #f4fbff;
  font-size: clamp(13px, 1.95dvh, 19px);
  font-weight: 700;
  align-self: end;
  justify-self: start;
  backdrop-filter: blur(3px);
  transition: background .18s ease, transform .18s ease;
}

.read-more span { font-size: 26px; line-height: 1; }
.read-more:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.read-purple { border-color: var(--purple); }
.read-cyan { border-color: var(--cyan); }
.read-green { border-color: var(--green); }
.read-orange { border-color: var(--orange); }

.features {
  border-top: 1px solid rgba(122, 164, 184, .16);
  border-bottom: 1px solid rgba(122, 164, 184, .1);
  background: #04101a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: var(--feature-h);
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 20px;
  border-right: 1px solid rgba(130, 170, 189, .18);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  white-space: nowrap;
}

.feature:last-child { border-right: 0; }

.feature svg {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 201, 255, .22));
}

.site-footer {
  background: #06131f;
  border-top: 1px solid rgba(113, 159, 181, .14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.2fr 1.35fr;
  align-items: center;
  min-height: var(--footer-h);
  gap: 30px;
}

.footer-brand .brand-mark { font-size: 36px; }
.footer-brand .brand-name { font-size: 22px; }

.footer-legal {
  padding-left: 30px;
  border-left: 1px solid rgba(148, 179, 193, .2);
  font-size: 15px;
  line-height: 1.22;
}

.footer-legal p { margin: 0; white-space: nowrap; }
.footer-legal span { color: #fff; font-weight: 700; }

.footer-email {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid rgba(148, 179, 193, .2);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-email svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  fill: none;
  stroke: #e9f6fc;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-left: 26px;
  border-left: 1px solid rgba(148, 179, 193, .2);
  font-size: 15px;
  white-space: nowrap;
}

.footer-links span {
  width: 1px;
  height: 17px;
  background: rgba(177, 204, 215, .3);
}

.footer-links a:hover,
.footer-email:hover { color: var(--cyan); }

@media (max-width: 1400px) {
  .footer-grid { grid-template-columns: 1fr 1.45fr 1.1fr 1.35fr; gap: 16px; }
  .footer-legal { padding-left: 18px; font-size: 13px; }
  .footer-email { gap: 10px; padding-left: 18px; font-size: 14px; }
  .footer-email svg { width: 30px; height: 30px; }
  .footer-links { padding-left: 16px; gap: 8px; font-size: 12px; }
}

@media (max-width: 1300px) {
  .main-nav { gap: 24px; font-size: 17px; }
  .brand-name { font-size: 23px; }
  .brand-mark { font-size: 38px; }
  .portal-link { padding: 0 15px; font-size: 16px; }
  .feature { gap: 13px; }
  .footer-grid { gap: 20px; }
  .footer-email { padding-left: 22px; font-size: 15px; }
  .footer-links { padding-left: 18px; gap: 10px; font-size: 14px; }
  .footer-legal { font-size: 13px; padding-left: 22px; }
}

@media (max-width: 1080px) {
  .header-inner { gap: 22px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .portal-link { margin-left: auto; }
  .main-nav.open {
    position: absolute;
    display: flex;
    top: 72px;
    left: 0;
    right: 0;
    height: auto;
    padding: 12px 32px 18px;
    background: #05131f;
    border-bottom: 1px solid rgba(114, 160, 182, .25);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 50;
  }
  .main-nav.open a { height: 44px; width: 100%; }
  .main-nav.open a::after { display: none; }
  .hero-copy { width: 72%; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .app-card { min-height: 300px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 86px; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid rgba(130, 170, 189, .18); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 22px 0; }
  .footer-legal, .footer-email, .footer-links { border-left: 0; padding-left: 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 66px; }
  .header-inner { gap: 12px; }
  .brand-mark { font-size: 34px; }
  .brand-name { font-size: 18px; }
  .portal-link { min-height: 39px; padding: 0 12px; gap: 7px; font-size: 14px; }
  .portal-arrow { font-size: 21px; }
  .main-nav.open { top: 66px; padding-inline: 20px; }
  .hero { min-height: 0; }
  .hero-visual { inset: 0 0 0 30%; opacity: .52; }
  .hero-wall::after { left: 47%; }
  .hero-mt { right: 2%; top: 70px; font-size: 145px; opacity: .78; }
  .hero-inner { min-height: 390px; align-items: flex-end; padding-top: 36px; padding-bottom: 28px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(31px, 8vw, 42px); }
  .hero p { font-size: 16px; line-height: 1.42; margin: 15px 0 18px; }
  .hero-actions { gap: 10px; }
  .btn { min-height: 44px; font-size: 15px; padding-inline: 18px; }
  .btn-primary { min-width: 0; }
  .app-grid { grid-template-columns: 1fr; gap: 15px; }
  .app-card { min-height: 315px; }
  .card-content { min-height: 311px; padding: 22px 20px 18px; }
  .app-title { font-size: 37px; }
  .app-desc { font-size: 17px; }
  .read-more { font-size: 17px; min-height: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { justify-content: flex-start; min-height: 67px; padding-left: 6px; border-right: 0; border-bottom: 1px solid rgba(130, 170, 189, .18); font-size: 16px; }
  .feature:last-child { border-bottom: 0; }
  .feature svg { width: 34px; height: 34px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .footer-brand .brand-mark { font-size: 39px; }
  .footer-brand .brand-name { font-size: 22px; }
  .footer-legal { font-size: 14px; }
  .footer-legal p { white-space: normal; }
  .footer-email { font-size: 16px; }
  .footer-email svg { width: 31px; height: 31px; }
  .footer-links { flex-wrap: wrap; gap: 9px 12px; font-size: 13px; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .portal-link { font-size: 13px; }
  .hero h1 { font-size: 30px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
