/*
Theme Name: InfraDataLab Coming Soon
Theme URI: https://infradata.ru
Author: ИнфраДатаЛаб
Description: Страница-заглушка «Скоро здесь появится сайт ИнфраДатаЛаб» с анимированным полигональным фоном (plexus).
Version: 1.3.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: infradata-coming-soon
*/

/* Шрифты лежат в теме, чтобы не зависеть от Google Fonts (одинаковый вид на всех устройствах) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #11D99B;
  --brand-dark: #0BA676;
  --ink: #12352B;
  --muted: #5E7A71;
  --bg: #FFFFFF;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
}

#plexus {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

/* мягкое белое «окно» под надписью, чтобы текст читался поверх сетки */
.halo {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 50% 50%,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.85) 45%,
    rgba(255,255,255,0) 100%);
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  pointer-events: none;
}

.stage a { pointer-events: auto; }

.kicker {
  margin: 0 0 18px;
  font-size: clamp(13px, 2.2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s 0.2s ease-out forwards;
}

.brand {
  margin: 0;
  font-size: clamp(34px, 8.4vw, 112px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  animation: rise 1.1s 0.45s ease-out forwards;
}

.brand .p1 { color: var(--ink); }
.brand .p2 {
  background: linear-gradient(100deg, var(--brand) 0%, #6FF0C6 35%, var(--brand) 55%, var(--brand-dark) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}
.brand .p3 { color: var(--ink); font-weight: 300; }

.bar {
  width: clamp(120px, 22vw, 260px);
  height: 3px;
  margin: 28px auto 0;
  border-radius: 3px;
  background: rgba(17,217,155,0.18);
  overflow: hidden;
  opacity: 0;
  animation: rise 1s 0.8s ease-out forwards;
}
.bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  animation: load 2.4s ease-in-out infinite;
}

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 20px;
  z-index: 2;
  text-align: center;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.foot a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(17,217,155,0.4);
}
.foot a:hover { color: var(--ink); border-color: var(--brand); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shine {
  from { background-position: 100% 0; }
  to   { background-position: -120% 0; }
}
@keyframes load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

@media (max-width: 560px) {
  .brand { white-space: normal; }
  .kicker { letter-spacing: 0.22em; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker, .brand, .bar { animation: none; opacity: 1; }
  .brand .p2, .bar::after { animation: none; }
}
