/* 6geup — страница «Скоро запуск». Без внешних шрифтов, скриптов и запросов. */

:root {
  --blue: #2447D6;
  --red: #E5383B;
  --navy: #14254A;
  --sky: #7E9BFF;
  --white: #FFFFFF;
  --bg: #08112A;
  --bg-2: #0D1A3D;
  --text: #EEF2FF;
  --muted: #A9B6DA;
  --line: rgba(126, 155, 255, 0.18);
  --card: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, var(--bg-2), var(--bg) 60%) fixed, var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; background: var(--white); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* ---------- Фон: светящиеся пятна, сетка и плывущие буквы хангыля ---------- */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  will-change: transform;
}
.glow--blue { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: var(--blue); animation: drift-a 22s ease-in-out infinite alternate; }
.glow--sky  { width: 34vmax; height: 34vmax; right: -10vmax; top: 20vh; background: #3B5BFF; opacity: .35; animation: drift-b 26s ease-in-out infinite alternate; }
.glow--red  { width: 22vmax; height: 22vmax; left: 30vw; bottom: -12vmax; background: var(--red); opacity: .22; animation: drift-c 30s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-10vw, -8vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-14vw, -6vh) scale(1.2); } }

.grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  opacity: .35;
}

.hangul { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hangul li {
  position: absolute; bottom: -12vh;
  font-weight: 700; color: var(--sky); opacity: 0;
  font-size: 28px; line-height: 1;
  animation: float-up 18s linear infinite;
}
.hangul li:nth-child(1)  { left: 6%;  font-size: 34px; animation-duration: 19s; animation-delay: -2s; }
.hangul li:nth-child(2)  { left: 14%; font-size: 22px; animation-duration: 23s; animation-delay: -11s; }
.hangul li:nth-child(3)  { left: 22%; font-size: 40px; animation-duration: 27s; animation-delay: -6s; }
.hangul li:nth-child(4)  { left: 31%; font-size: 24px; animation-duration: 21s; animation-delay: -15s; }
.hangul li:nth-child(5)  { left: 39%; font-size: 30px; animation-duration: 25s; animation-delay: -3s; }
.hangul li:nth-child(6)  { left: 47%; font-size: 20px; animation-duration: 20s; animation-delay: -17s; }
.hangul li:nth-child(7)  { left: 55%; font-size: 36px; animation-duration: 28s; animation-delay: -9s; }
.hangul li:nth-child(8)  { left: 63%; font-size: 26px; animation-duration: 22s; animation-delay: -1s; }
.hangul li:nth-child(9)  { left: 71%; font-size: 42px; animation-duration: 30s; animation-delay: -13s; }
.hangul li:nth-child(10) { left: 79%; font-size: 22px; animation-duration: 24s; animation-delay: -7s; }
.hangul li:nth-child(11) { left: 87%; font-size: 32px; animation-duration: 26s; animation-delay: -19s; }
.hangul li:nth-child(12) { left: 94%; font-size: 24px; animation-duration: 21s; animation-delay: -4s; }
.hangul li:nth-child(3n)  { color: var(--white); }
.hangul li:nth-child(5n)  { color: #FF8A8C; }

@keyframes float-up {
  0%   { transform: translateY(0) rotate(-6deg); opacity: 0; }
  10%  { opacity: .11; }
  85%  { opacity: .07; }
  100% { transform: translateY(-125vh) rotate(8deg); opacity: 0; }
}

/* ---------- Содержимое ---------- */

.page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 32px;
  text-align: center;
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }

/* Знак: квадрат появляется, «6» прорисовывается, красная черта выезжает */
.mark { width: 112px; height: 112px; overflow: visible; filter: drop-shadow(0 18px 40px rgba(36, 71, 214, .55)); }
.mark__square { transform-box: fill-box; transform-origin: center; animation: pop 900ms cubic-bezier(.2, .9, .25, 1.25) both; }
.mark__six {
  fill: var(--white); fill-opacity: 0;
  stroke: var(--white); stroke-width: .9; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.4s ease-in-out 500ms forwards, fill-in 600ms ease 1.6s forwards;
}
.mark__bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: grow 700ms cubic-bezier(.3, .8, .2, 1) 1.9s forwards, pulse 3.2s ease-in-out 3s infinite; }

@keyframes pop   { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes grow  { to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.wordmark { width: 168px; height: auto; opacity: 0; animation: rise 800ms ease 2.1s forwards; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card);
  color: var(--muted); font-size: 14px; letter-spacing: .02em;
  opacity: 0; animation: rise 700ms ease 2.3s forwards;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 56, 59, .7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, .6); } 100% { box-shadow: 0 0 0 10px rgba(229, 56, 59, 0); } }

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 9vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--white) 20%, var(--sky) 40%, var(--white) 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
  animation: rise 800ms ease 2.45s forwards, shine 6s linear 3.3s infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.lead {
  max-width: 560px; margin: 0 auto 28px;
  color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.55;
  opacity: 0; animation: rise 800ms ease 2.6s forwards;
}
.lead strong { color: var(--text); font-weight: 600; }

.features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 auto 32px; padding: 0; list-style: none; max-width: 640px;
}
.features li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  font-size: 15px; color: var(--text);
  opacity: 0; animation: rise 700ms ease forwards;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.features li:nth-child(1) { animation-delay: 2.75s; }
.features li:nth-child(2) { animation-delay: 2.85s; }
.features li:nth-child(3) { animation-delay: 2.95s; }
.features li:hover { transform: translateY(-3px); border-color: rgba(126, 155, 255, .45); background: rgba(126, 155, 255, .08); }
.features b {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px;
  border-radius: 9px; background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 700;
}

.progress { width: min(420px, 100%); margin: 0 auto 36px; opacity: 0; animation: rise 700ms ease 3.05s forwards; }
.progress__label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.progress__track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress__fill {
  position: absolute; inset: 0 auto 0 0; width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform-origin: left; animation: load 1.8s cubic-bezier(.3, .8, .2, 1) 3.2s both;
}
.progress__fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%); animation: sweep 2.2s ease-in-out 5s infinite;
}
@keyframes load  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sweep { to { transform: translateX(160%); } }

.follow { opacity: 0; animation: rise 700ms ease 3.3s forwards; }
.follow p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: rgba(126, 155, 255, .5); background: rgba(126, 155, 255, .1); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn--primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px rgba(36, 71, 214, .45); }
.btn--primary:hover { background: #2D52EA; border-color: #2D52EA; box-shadow: 0 14px 36px rgba(36, 71, 214, .6); }

.footer {
  position: relative; z-index: 1;
  padding: 0 16px 28px; text-align: center;
  font-size: 13px; line-height: 1.6; color: rgba(169, 182, 218, .75);
  opacity: 0; animation: rise 700ms ease 3.5s forwards;
}
.footer p { margin: 0; }
.footer .ko { color: var(--sky); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .page { padding-top: 40px; }
  .mark { width: 92px; height: 92px; }
  .wordmark { width: 140px; }
  .brand { margin-bottom: 28px; }
  .features li { font-size: 14px; }
  .btn { flex: 1 1 100%; justify-content: center; }
}

/* Для тех, у кого в системе отключены анимации — показываем всё сразу */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark__six { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .mark__bar { transform: none; }
  .wordmark, .eyebrow, h1, .lead, .features li, .progress, .follow, .footer { opacity: 1; }
  .hangul { display: none; }
}
