/* Iskra — landing styles */
:root {
  --iskra-starlight: #BFF6FF;
  --iskra-cyan:      #2EC5E0;
  --iskra-blue:      #6C7CFF;
  --iskra-nebula:    #A78BFA;
  --iskra-night:     #070C24;
  --iskra-ice:       #EEF3FA;
  --iskra-gradient:  linear-gradient(135deg, #2EC5E0 0%, #6C7CFF 55%, #A78BFA 100%);

  --text:        var(--iskra-ice);
  --text-muted:  rgb(238 243 250 / .78);
  --text-faint:  rgb(238 243 250 / .62);
  --content-max: 720px;
  color-scheme: dark;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--iskra-night);
  color: var(--text);
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(120% 90% at 50% 40%, #0B1433 0%, #070C24 55%, #03050F 100%) fixed;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.sky.is-ready { opacity: 1; }

.sky-tooltip {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgb(7 12 36 / .7);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  transform: translate(14px, -50%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.2vh, 24px);
  padding: 24px 16px 56px;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* soft vignette under the text; fixed to the viewport so it never adds scroll */
.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse min(560px, 62vw) 52% at 50% 50%, rgb(7 12 36 / .72), rgb(7 12 36 / .45) 55%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .hero::before {
    background: radial-gradient(ellipse 85% 55% at 50% 50%, rgb(7 12 36 / .7), rgb(7 12 36 / .4) 60%, transparent 100%);
  }
}

.hero__logo img {
  display: block;
  height: clamp(40px, 7vh, 72px);
  width: auto;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(22px, 1.2rem + 1.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.hero__text {
  font-weight: 400;
  font-size: clamp(16px, .9rem + .4vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.hero__cta-lead {
  font-size: clamp(15px, .85rem + .3vw, 18px);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 240px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--iskra-gradient);
  color: var(--iskra-night);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgb(191 246 255 / .25), 0 8px 32px rgb(108 124 255 / .35);
  transition: transform .15s, box-shadow .2s;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgb(191 246 255 / .5), 0 10px 44px rgb(46 197 224 / .5);
}
.cta:active { transform: translateY(0) scale(.98); }
.cta:focus-visible {
  outline: 3px solid var(--iskra-starlight);
  outline-offset: 4px;
}

.hero__privacy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint);
  max-width: 560px;
  margin: 0;
}

.footer {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  font-size: 12px;
  color: var(--text-faint);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__privacy { font-size: 14px; }
}

@media (max-height: 640px) {
  .footer { position: static; padding: 0 16px 16px; }
  .hero { padding-bottom: 24px; }
}

@media (max-height: 600px) and (max-width: 767px) {
  .hero { gap: 10px; padding-top: 16px; }
  .hero__title { font-size: 20px; }
  .hero__text { font-size: 15px; }
  .hero__cta-lead { font-size: 14px; }
  .hero__logo img { height: 36px; }
}

@media (max-height: 500px) {
  .hero { justify-content: flex-start; }
  .hero__logo img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
