:root {
  --bg: #070b17;
  --bg-2: #0b1020;
  --line: rgba(160, 175, 210, .14);
  --text: #e8eaf6;
  --muted: #8e98b8;
  --accent: #4a3fd8;
  --accent-2: #8b7cf6;
  --pad: clamp(24px, 4.4vw, 64px);
  --head-h: 88px;
  --foot-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--head-h) 1fr var(--foot-h);
  position: relative;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 23, .85);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 5;
  animation: fadeDown .8s cubic-bezier(.2, .7, .2, 1) both;
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo__mark { width: 40px; height: 32px; color: #fff; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.logo:hover .logo__mark { transform: translateY(-3px) scale(1.06); }
.logo__text {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .02em;
}

.header__tag,
.eyebrow,
.footer__right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: #b9c0dc;
}
.header__tag i,
.eyebrow i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-2);
  transform-origin: left;
  animation: grow 1s .5s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  overflow: hidden;
}

.hero::before { /* сетка-фон */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 20% 50%, rgba(74, 63, 216, .12), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-left: calc(80px - var(--pad));
}
@media (max-width: 1100px) { .hero__content { padding-left: 0; } }

.eyebrow { margin-bottom: 36px; }
.eyebrow i { width: 24px; }

.title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7.4vw, 96px);
  line-height: .96;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line__in {
  display: inline-block;
  transform: translateY(105%);
  animation: lineUp .9s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) forwards;
}
.title em {
  font-style: normal;
  color: var(--accent-2);
  display: inline-block;
  animation: dotPulse 2.4s 1.4s ease-in-out infinite;
}

.lead {
  margin-top: 36px;
  font-size: 18px;
  line-height: 1.6;
  color: #aab2d0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.action { display: flex; flex-direction: column; gap: 14px; }
.action__hint { font-size: 12px; color: #6f7a9c; letter-spacing: .02em; }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 232px;
  height: 64px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 22px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.btn__icon { width: 22px; height: 22px; flex: none; }
.btn__label { flex: 1; }
.btn__arrow {
  width: 12px;
  height: 12px;
  opacity: .8;
  transition: transform .3s ease;
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn::after { /* блик */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  transition: left .7s ease;
}
.btn:hover::after { left: 130%; }

.btn--primary {
  background: var(--accent);
  border-color: #6358ec;
  color: #fff;
  animation: btnGlow 3.2s 1.6s ease-in-out infinite;
}
.btn--primary:hover { box-shadow: 0 10px 34px rgba(74, 63, 216, .55); }

.btn--ghost {
  background: rgba(14, 19, 40, .85);
  border-color: rgba(160, 175, 215, .22);
  color: #f2f3fb;
}
.btn--ghost:hover { border-color: var(--accent-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Scene ---------- */
.scene {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 66%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0, #000 42%);
  opacity: 0;
  animation: sceneIn 1.4s .2s ease forwards;
}
.scene::after { /* затемнение сверху/снизу */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 23, .15), transparent 25%, transparent 60%, rgba(7, 11, 23, .95) 100%);
  pointer-events: none;
}
.scene__inner {
  position: absolute;
  inset: -2%;
  transition: transform .25s ease-out;
  will-change: transform;
}
.scene__svg, .scene__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__svg { filter: saturate(.85) brightness(.82); }

.scene__label {
  position: absolute;
  top: 36px; right: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: #8fa0c4;
  z-index: 2;
}
.scene__label b { font-weight: 400; animation: blink 1.6s steps(2) infinite; }
.scene__label i { width: 30px; height: 1px; background: #8fa0c4; opacity: .6; }

/* SVG-анимации */
.drone {
  transform-box: fill-box;
  transform-origin: center;
  animation: hover 4.2s ease-in-out infinite;
}
.shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: shadow 4.2s ease-in-out infinite;
}
.blade { transform-box: fill-box; transform-origin: center; }
.blade--a { animation: spinA .12s linear infinite; }
.blade--b { animation: spinB .12s linear infinite; }
.eye { animation: eye 2.6s ease-in-out infinite; }
.eye:nth-of-type(2) { animation-delay: .15s; }
.scanline { animation: scan 6s ease-in-out infinite; }
.pad__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: padPulse 3.2s ease-out infinite;
}

/* ---------- Slogan ---------- */
.slogan {
  position: absolute;
  right: var(--pad);
  bottom: 44px;
  z-index: 3;
  padding-left: 16px;
  border-left: 2px solid var(--accent-2);
  font-family: "Roboto Condensed", sans-serif;
}
.slogan small { display: block; font-size: 10px; letter-spacing: .14em; color: #8e98c4; margin-bottom: 8px; }
.slogan strong { font-size: 18px; letter-spacing: .04em; color: #eef0fb; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #7a85a8;
  position: relative;
  z-index: 5;
  background: var(--bg);
}
.footer__right { color: #7a85a8; font-size: 10px; gap: 10px; }
.footer__right i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: blink 1.6s ease-in-out infinite;
}

/* ---------- Появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .8s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) forwards;
}

/* ---------- Keyframes ---------- */
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-16px) rotate(.5deg); }
}
@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(.88); opacity: .26; }
}
@keyframes spinA { 0% { transform: scaleX(1); } 50% { transform: scaleX(.82); } 100% { transform: scaleX(1); } }
@keyframes spinB { 0% { transform: scaleX(.7) rotate(0); opacity: .2; } 50% { transform: scaleX(1) rotate(1.5deg); opacity: .5; } 100% { transform: scaleX(.7) rotate(0); opacity: .2; } }
@keyframes eye { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: .15; } 55% { opacity: 1; } }
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(260px); opacity: 0; }
}
@keyframes padPulse {
  0% { transform: scale(.55); opacity: .8; }
  100% { transform: scale(1.08); opacity: 0; }
}
@keyframes dotPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(139, 124, 246, 0); }
  50% { text-shadow: 0 0 22px rgba(139, 124, 246, .9); }
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(74, 63, 216, 0); }
  50% { box-shadow: 0 0 26px rgba(74, 63, 216, .5); }
}
@keyframes blink { 50% { opacity: .25; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .scene { width: 100%; opacity: .55; -webkit-mask-image: none; mask-image: none; animation: none; opacity: .4; }
  .slogan { display: none; }
  .header__tag { display: none; }
  .hero { align-items: flex-start; padding-top: 56px; }
  .btn { width: 100%; }
  .action { flex: 1 1 200px; }
  .footer__right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .line__in, .reveal { transform: none; opacity: 1; }
}
