/* SEATLAB — Coming Soon. Одноэкранная заглушка. */

:root {
  --bg:        #0a0a0b;
  --fg:        #f4f2ef;
  --fg-72:     rgba(244, 242, 239, 0.72);
  --fg-60:     rgba(244, 242, 239, 0.60);
  --fg-55:     rgba(244, 242, 239, 0.55);
  --fg-50:     rgba(244, 242, 239, 0.50);
  --fg-42:     rgba(244, 242, 239, 0.42);
  --fg-35:     rgba(244, 242, 239, 0.35);
  --fg-25:     rgba(244, 242, 239, 0.25);
  --line-09:   rgba(244, 242, 239, 0.09);
  --line-16:   rgba(244, 242, 239, 0.16);
  --line-22:   rgba(244, 242, 239, 0.22);
  --line-50:   rgba(244, 242, 239, 0.50);
  --plate-02:  rgba(255, 255, 255, 0.02);
  --plate-03:  rgba(255, 255, 255, 0.03);
  --plate-07:  rgba(255, 255, 255, 0.07);
  --accent:    oklch(0.55 0.13 250);
  --accent-warm: oklch(0.55 0.13 30 / 0.32);
  --pad-x:     clamp(20px, 5vw, 56px);

  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Oxanium', ui-sans-serif, system-ui, sans-serif;
  --font-sc: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: oklch(0.82 0.11 250); }
a:focus-visible { outline: 2px solid oklch(0.82 0.11 250); outline-offset: 3px; }

.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

/* ---------- фоновые слои ---------- */

.bg-blob, .bg-grid, .bg-grain {
  position: absolute;
  pointer-events: none;
}

.bg-blob { z-index: 0; }

.bg-blob--a {
  inset: -20%;
  background: radial-gradient(closest-side, oklch(0.55 0.13 250 / 0.5), transparent 70%);
  filter: blur(30px);
  animation: drift1 26s ease-in-out infinite;
}

.bg-blob--b {
  inset: -25%;
  background: radial-gradient(closest-side, var(--accent-warm), transparent 70%);
  filter: blur(40px);
  animation: drift2 34s ease-in-out infinite;
}

.bg-grid {
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
}

.bg-grain {
  inset: 0;
  z-index: 1;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px var(--pad-x);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-50);
  animation: fadeUp 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- main ---------- */

.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
  padding: 0 var(--pad-x) 4vh;
  text-align: center;
}

.tagline {
  margin: 0;
  min-height: 1.6em;
  line-height: 1.6;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-42);
  animation: fadeUp 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.font-oxanium { font-family: var(--font-display); }
.font-sc      { font-family: var(--font-sc); }

.anim { display: inline-block; animation: wordIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---------- вордмарк ---------- */

.wordmark {
  position: relative;
  padding: clamp(14px, 2.4vw, 30px) clamp(18px, 3vw, 42px);
  animation: riseIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hud { position: absolute; width: 22px; height: 22px; }
.hud--tl { top: 0; left: 0;  border-top: 1px solid var(--line-22); border-left: 1px solid var(--line-22); }
.hud--tr { top: 0; right: 0; border-top: 1px solid var(--line-22); border-right: 1px solid var(--line-22); }
.hud--bl { bottom: 0; left: 0;  border-bottom: 1px solid var(--line-22); border-left: 1px solid var(--line-22); }
.hud--br { bottom: 0; right: 0; border-bottom: 1px solid var(--line-22); border-right: 1px solid var(--line-22); }

.wordmark__h1 {
  margin: 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 13vw, 210px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: flick 9s 2s linear infinite;
}

.wordmark__stroke {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px oklch(0.72 0.1 250 / 0.35);
  filter: blur(0.5px);
}

.wordmark__metal {
  position: relative;
  background: linear-gradient(180deg,
    #ffffff 0%,
    rgba(238, 240, 246, 0.95) 42%,
    rgba(150, 158, 178, 0.90) 52%,
    rgba(214, 219, 230, 0.90) 62%,
    rgba(140, 148, 168, 0.85) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px oklch(0.6 0.13 250 / 0.35);
}

.wordmark__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 0%, transparent 42%,
    rgba(255, 255, 255, 0.95) 49%,
    oklch(0.92 0.05 250 / 0.9) 52%,
    transparent 60%, transparent 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shine 7s 1.4s linear infinite;
}

.rule {
  width: min(560px, 78vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 242, 239, 0.28), transparent);
  transform-origin: center;
  animation: lineGrow 1.6s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- смена языков ---------- */

.soon { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.soon__row { display: flex; align-items: center; justify-content: center; }

.soon__word {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
}

.soon__lang {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-35);
}

/* ---------- бегущая строка ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  background: var(--plate-02);
  border-top: 1px solid var(--line-09);
  border-bottom: 1px solid var(--line-09);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: fadeUp 1.2s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1.15vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-60);
}

.marquee__group .dim    { color: var(--fg-25); }
.marquee__group .bright { color: var(--fg); }

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: clamp(20px, 4vh, 40px) var(--pad-x);
  animation: fadeUp 1.2s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.foot__line {
  margin: 0;
  max-width: 60ch;
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--fg-42);
}

.foot__arrow {
  flex: 1 1 140px;
  min-width: 100px;
  max-width: 340px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  animation: fadeUp 1.2s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.foot__arrow svg { overflow: visible; }

.arrow-curve { animation: drawArrow 2.2s 1.1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.arrow-head  { animation: drawArrow 0.5s 3.1s ease-out both; }

.tg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line-16);
  border-radius: 999px;
  background: var(--plate-03);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-72);
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseRing 4.5s 2s ease-out infinite;
}

.tg:hover, .tg:focus-visible {
  border-color: var(--line-50);
  color: #ffffff;
  background: var(--plate-07);
  transform: translateY(-2px);
}

/* ---------- keyframes ---------- */

@keyframes drift1 {
  0%   { transform: translate3d(-8%, -6%, 0) scale(1); }
  50%  { transform: translate3d(10%, 8%, 0) scale(1.25); }
  100% { transform: translate3d(-8%, -6%, 0) scale(1); }
}
@keyframes drift2 {
  0%   { transform: translate3d(8%, 10%, 0) scale(1.15); }
  50%  { transform: translate3d(-10%, -8%, 0) scale(1); }
  100% { transform: translate3d(8%, 10%, 0) scale(1.15); }
}
@keyframes shine    { 0% { background-position: -140% 0; } 55%, 100% { background-position: 240% 0; } }
@keyframes riseIn   { from { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(10px); } to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wordIn   { from { opacity: 0; transform: translateY(0.6em); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flick    { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.82; } 98.5% { opacity: 1; } }
@keyframes marquee  { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes drawArrow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulseRing {
  0%        { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.14); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

/* ---------- доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  .bg-blob--a, .bg-blob--b,
  .wordmark__h1, .wordmark__shine,
  .marquee__track, .tg,
  .anim {
    animation: none !important;
  }
  .head, .tagline, .wordmark, .rule, .marquee, .foot, .foot__arrow,
  .arrow-curve, .arrow-head {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .arrow-curve, .arrow-head { stroke-dashoffset: 0; }
  .tg { transition: none; }
}
