/* ░░░░ Stellar Commander — лендинг ░░░░ */
:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --panel: rgba(15, 22, 42, 0.72);
  --panel-line: rgba(80, 130, 210, 0.18);
  --text: #e8eef9;
  --muted: #93a2bd;
  --muted-2: #6b7a96;
  --accent: #1f9bff;
  --accent-2: #16d7ff;
  --accent-glow: rgba(31, 155, 255, 0.55);
  --danger: #e6394b;
  --danger-glow: rgba(230, 57, 75, 0.5);
  --maxw: 1240px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(31, 110, 220, 0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 5%, rgba(20, 70, 160, 0.16), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ── Бренд ── */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__star { width: 30px; height: 30px; fill: var(--accent-2); filter: drop-shadow(0 0 8px var(--accent-glow)); flex: none; }
.brand__text {
  font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 14px;
  line-height: 1.05; letter-spacing: 2px; color: #fff;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, #2aa6ff, #137fe6);
  color: #fff; box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { box-shadow: 0 14px 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--outline { background: rgba(11, 20, 40, 0.5); color: var(--text); border-color: rgba(120, 170, 240, 0.35); backdrop-filter: blur(6px); }
.btn--outline:hover { border-color: var(--accent-2); box-shadow: 0 0 24px -6px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(120, 170, 240, 0.5); padding: 11px 22px; }
.btn--ghost:hover { border-color: var(--accent-2); box-shadow: 0 0 20px -6px var(--accent-glow); }
.btn--danger {
  background: linear-gradient(180deg, #f0455a, #c5283b);
  color: #fff; box-shadow: 0 10px 30px -8px var(--danger-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── Навигация ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.92), rgba(5, 8, 16, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(70, 120, 210, 0.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s ease; position: relative; padding: 6px 0;
}
.nav__links a:hover { color: #fff; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent-2); transition: width 0.25s ease; box-shadow: 0 0 8px var(--accent-glow);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* ── Переключатель языка с флагами ── */
.langsel { position: relative; }
.langsel__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(11, 20, 40, 0.5); border: 1px solid rgba(120, 170, 240, 0.28);
  border-radius: 10px; padding: 8px 12px; color: var(--text);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.langsel__btn:hover { border-color: var(--accent-2); box-shadow: 0 0 18px -6px var(--accent-glow); }
.langsel__flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); flex: none; }
.langsel__code { color: var(--muted); }
.langsel__btn:hover .langsel__code { color: #fff; }
.langsel__chev { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.langsel.open .langsel__chev { transform: rotate(180deg); }
.langsel__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px; min-width: 184px;
  background: rgba(10, 16, 32, 0.97); border: 1px solid var(--panel-line); border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.7); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.langsel.open .langsel__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.langsel__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text); transition: background 0.15s ease;
}
.langsel__item:hover, .langsel__item:focus-visible { background: rgba(31, 155, 255, 0.14); outline: none; }
.langsel__item[aria-selected="true"] { background: rgba(31, 155, 255, 0.2); color: #fff; }
.langsel__itemflag { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); flex: none; }

/* ── Hero ── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/01_hero_fleet_over_planet.webp") center right / cover no-repeat;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.95) 8%, rgba(4, 7, 15, 0.7) 38%, rgba(4, 7, 15, 0.15) 70%),
    linear-gradient(0deg, rgba(4, 7, 15, 0.9), transparent 45%);
}
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(0deg, var(--bg), transparent); }
.hero__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 80px; }
.hero__title {
  font-family: "Orbitron", sans-serif; font-weight: 900; margin: 0;
  font-size: clamp(48px, 8vw, 104px); line-height: 0.96; letter-spacing: 2px;
  color: #fff; text-shadow: 0 0 40px rgba(31, 130, 230, 0.45);
}
.hero__tag {
  margin: 22px 0 0; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 19px); color: var(--accent-2);
  text-shadow: 0 0 18px var(--accent-glow);
}
.hero__lead { margin: 26px 0 0; max-width: 540px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: #cbd6ea; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* ── Секции ── */
.section { padding: 96px 0; position: relative; }
.heading { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 56px; }
.heading__title {
  font-family: "Orbitron", sans-serif; font-weight: 700; margin: 0;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: 4px; text-transform: uppercase; color: #fff;
}
.heading__rule { height: 1px; width: clamp(40px, 12vw, 150px); background: linear-gradient(90deg, transparent, var(--accent-2)); }
.heading__rule:last-child { background: linear-gradient(90deg, var(--accent-2), transparent); }

/* ── Карточки возможностей ── */
.features {
  display: grid; gap: 24px;
  grid-template-columns: repeat(5, 1fr);
}
.card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-6px); border-color: rgba(31, 155, 255, 0.55); box-shadow: 0 24px 50px -22px rgba(10, 60, 140, 0.85); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--panel)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 20px 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(31, 155, 255, 0.12); border: 1px solid rgba(31, 155, 255, 0.3);
}
.card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: 0.4px; line-height: 1.25; color: #fff; }
.card__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Никс ── */
.nyx {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 360px;
  display: flex; align-items: stretch; border: 1px solid rgba(150, 60, 90, 0.25);
  box-shadow: 0 30px 80px -40px rgba(120, 20, 50, 0.7);
}
.nyx__media { position: absolute; inset: 0; }
.nyx__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nyx::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 6, 14, 0.97) 30%, rgba(20, 8, 20, 0.65) 60%, rgba(40, 10, 30, 0.2) 100%);
}
.nyx__content { position: relative; z-index: 2; padding: 56px 56px; max-width: 620px; align-self: center; }
.nyx__title {
  font-family: "Orbitron", sans-serif; font-weight: 700; margin: 0 0 18px;
  font-size: clamp(26px, 3.5vw, 40px); letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 26px var(--danger-glow);
}
.nyx__text { margin: 0 0 30px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.75; color: #d7c2cc; }

/* ── Полоса преимуществ ── */
.strip { padding: 40px 0 84px; }
.strip__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pill {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; backdrop-filter: blur(6px);
}
.pill__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 155, 255, 0.1); border: 1px solid rgba(31, 155, 255, 0.28); }
.pill__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill div { display: flex; flex-direction: column; }
.pill b { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.pill span { font-size: 13px; color: var(--muted-2); margin-top: 3px; }

/* ── Подвал ── */
.footer { border-top: 1px solid rgba(70, 120, 210, 0.12); background: linear-gradient(180deg, transparent, rgba(6, 10, 22, 0.6)); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.4fr; gap: 36px; padding-bottom: 48px; }
.footer__about { margin: 18px 0 20px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(20, 30, 55, 0.6); border: 1px solid var(--panel-line); transition: all 0.2s ease; }
.socials a svg { width: 18px; height: 18px; fill: var(--muted); transition: fill 0.2s ease; }
.socials a:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.socials a:hover svg { fill: var(--accent-2); }
.footer__col h4 { margin: 0 0 18px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.footer__col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent-2); }
.footer__subscribe p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.subscribe { display: flex; gap: 8px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: rgba(10, 16, 32, 0.8); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px;
}
.subscribe input::placeholder { color: var(--muted-2); }
.subscribe input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(31, 155, 255, 0.15); }
.subscribe button { flex: none; width: 46px; border-radius: 10px; border: none; cursor: pointer; background: linear-gradient(180deg, #2aa6ff, #137fe6); display: grid; place-items: center; }
.subscribe button svg { width: 20px; height: 20px; fill: #fff; }
.subscribe button:hover { filter: brightness(1.1); }
.footer__bottom { padding: 22px 32px; border-top: 1px solid rgba(70, 120, 210, 0.1); font-size: 13px; color: var(--muted-2); }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__subscribe { grid-column: span 3; }
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .features { grid-template-columns: 1fr 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__subscribe { grid-column: span 2; }
  .hero__overlay { background: linear-gradient(0deg, rgba(4,7,15,0.96) 20%, rgba(4,7,15,0.55) 70%, rgba(4,7,15,0.3)); }
  .nyx__content { padding: 36px 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand, .footer__subscribe { grid-column: span 1; }
  /* Узкий экран: «Аккаунт» сворачиваем до иконки, переключатель языка — без кода. */
  .nav__actions .btn--ghost { padding: 10px; }
  .nav__actions .btn--ghost span { display: none; }
  .langsel__code { display: none; }
  .nav__inner { gap: 12px; }
}
