/* LFOS Labs / Life Finance OS — Cloudflare Pages static splash
   Version: 1.2.0 RU localization
   Purpose: premium closed MVP animated splash screen
*/

:root {
  --color-emerald: #35E0B2;
  --color-mint: #5CF0C7;
  --color-deep-navy: #071B2C;
  --color-midnight: #03111E;
  --color-near-black: #01060F;
  --color-white: #FFFFFF;
  --color-silver: #B7C5CF;

  --gradient-brand: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-mint) 100%);
  --gradient-brand-animated: linear-gradient(
    110deg,
    var(--color-emerald) 0%,
    var(--color-mint) 24%,
    rgba(255, 255, 255, 0.96) 42%,
    var(--color-mint) 56%,
    var(--color-emerald) 78%,
    var(--color-mint) 100%
  );
  --gradient-page-bg:
    radial-gradient(circle at 50% 42%, rgba(53, 224, 178, 0.085), transparent 28%),
    radial-gradient(circle at 50% 20%, rgba(92, 240, 199, 0.055), transparent 22%),
    linear-gradient(180deg, var(--color-deep-navy) 0%, var(--color-midnight) 48%, var(--color-near-black) 100%);

  --font-primary: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --icon-size-fluid: clamp(112px, 10vw, 156px);
  --title-size-fluid: clamp(44px, 5.35vw, 92px);
  --status-size-fluid: clamp(14px, 1.15vw, 20px);
  --brand-name-size-fluid: clamp(20px, 1.7vw, 28px);
  --brand-tagline-size-fluid: clamp(10px, 0.85vw, 14px);

  --gap-icon-title: clamp(52px, 6vh, 76px);
  --gap-title-subtitle: clamp(18px, 2.2vh, 28px);
  --gap-subtitle-status: clamp(30px, 3.8vh, 48px);
  --gap-status-brand: clamp(70px, 7.6vh, 98px);

  --page-padding: clamp(32px, 6vw, 88px);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-orbit: cubic-bezier(0.45, 0, 0.55, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-near-black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  background: var(--gradient-page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 48%, rgba(1, 6, 15, 0.34) 100%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -24%;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(53, 224, 178, 0.06) 52deg, transparent 108deg, rgba(92, 240, 199, 0.045) 166deg, transparent 246deg, rgba(53, 224, 178, 0.055) 314deg, transparent 360deg);
  filter: blur(22px);
  opacity: 0.72;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  animation: lfos-aurora-turn 28s linear infinite;
  z-index: 0;
}

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

.ambient-orb,
.ambient-grid {
  position: absolute;
  display: block;
}

.ambient-orb {
  width: clamp(220px, 30vw, 620px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(92, 240, 199, 0.18) 0%, rgba(53, 224, 178, 0.06) 36%, transparent 68%);
  filter: blur(12px);
  opacity: 0.66;
  transform: translate3d(0, 0, 0);
  animation: lfos-orb-drift 14s var(--ease-orbit) infinite alternate;
}

.ambient-orb-a {
  top: 6%;
  left: 10%;
}

.ambient-orb-b {
  right: 8%;
  bottom: 5%;
  width: clamp(240px, 34vw, 680px);
  opacity: 0.42;
  animation-delay: -5s;
  animation-duration: 18s;
}

.ambient-orb-c {
  top: 38%;
  left: 50%;
  width: clamp(180px, 22vw, 440px);
  opacity: 0.3;
  animation-delay: -9s;
  animation-duration: 20s;
}

.ambient-grid {
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(92, 240, 199, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 240, 199, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, black 0%, rgba(0, 0, 0, 0.55) 26%, transparent 66%);
  mask-image: radial-gradient(circle at 50% 46%, black 0%, rgba(0, 0, 0, 0.55) 26%, transparent 66%);
  transform: perspective(900px) rotateX(58deg) translateY(10%);
  transform-origin: 50% 60%;
  animation: lfos-grid-flow 18s linear infinite;
}


.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(var(--page-padding), env(safe-area-inset-top)) max(var(--page-padding), env(safe-area-inset-right)) max(var(--page-padding), env(safe-area-inset-bottom)) max(var(--page-padding), env(safe-area-inset-left));
}

.hero-stack {
  width: min(100%, 1180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  isolation: isolate;
}

.icon-stage {
  position: relative;
  width: calc(var(--icon-size-fluid) * 1.92);
  height: calc(var(--icon-size-fluid) * 1.92);
  margin: calc(var(--icon-size-fluid) * -0.31) 0 calc(var(--gap-icon-title) - var(--icon-size-fluid) * 0.31);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  animation: lfos-stage-enter 1100ms var(--ease-premium) 80ms both;
}

.icon-halo,
.icon-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.icon-halo {
  inset: 19%;
  background: radial-gradient(circle, rgba(92, 240, 199, 0.22) 0%, rgba(53, 224, 178, 0.11) 36%, transparent 70%);
  filter: blur(16px);
  opacity: 0.74;
  animation: lfos-halo-breathe 5.8s ease-in-out 1s infinite;
}

.icon-orbit {
  inset: 6%;
  border: 1px solid rgba(92, 240, 199, 0.18);
  box-shadow:
    inset 0 0 18px rgba(53, 224, 178, 0.08),
    0 0 22px rgba(53, 224, 178, 0.08);
  transform: rotate(0deg) scale(0.98);
  -webkit-mask-image: conic-gradient(from 0deg, black 0deg, black 78deg, transparent 116deg, transparent 250deg, black 292deg, black 360deg);
  mask-image: conic-gradient(from 0deg, black 0deg, black 78deg, transparent 116deg, transparent 250deg, black 292deg, black 360deg);
  animation: lfos-orbit-spin 13.5s linear infinite;
}

.icon-orbit-two {
  inset: 13%;
  border-color: rgba(255, 255, 255, 0.13);
  opacity: 0.72;
  transform: rotate(24deg) scale(0.96);
  animation-duration: 18s;
  animation-direction: reverse;
}

.app-icon {
  position: relative;
  z-index: 1;
  width: var(--icon-size-fluid);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 24px 64px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 22px rgba(53, 224, 178, 0.10));
  user-select: none;
  transform: translate3d(0, 0, 0);
  animation: lfos-icon-float 5.8s ease-in-out 1.1s infinite;
}

.product-title {
  margin: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0.05em;
  font-size: var(--title-size-fluid);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  opacity: 0;
  transform: translateY(12px);
  animation: lfos-rise 960ms var(--ease-premium) 360ms both;
}

.product-gradient,
.brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-gradient {
  white-space: nowrap;
  background: var(--gradient-brand-animated);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: lfos-text-shimmer 8s ease-in-out 1.6s infinite;
}

.product-os,
.brand-labs {
  color: var(--color-white);
}

.product-os {
  opacity: 0.96;
  text-shadow: 0 0 22px rgba(92, 240, 199, 0.08);
}

.product-subtitle {
  margin: var(--gap-title-subtitle) 0 var(--gap-subtitle-status);
  max-width: min(820px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.45vh, 7px);
  color: rgba(183, 197, 207, 0.92);
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: lfos-rise 860ms var(--ease-premium) 520ms both;
}

.subtitle-line {
  display: block;
  white-space: nowrap;
}

.status-line {
  margin: 0 0 var(--gap-status-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: var(--status-size-fluid);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.76);
  opacity: 0;
  transform: translateY(10px);
  animation: lfos-rise 860ms var(--ease-premium) 700ms both;
}

.status-separator {
  display: inline-grid;
  place-items: center;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  overflow: hidden;
  color: transparent;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px rgba(53, 224, 178, 0.35);
  animation: lfos-status-pulse 2.8s ease-in-out 1.2s infinite;
}

.brand-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: none;
  animation: none;
}

.brand-name {
  font-size: var(--brand-name-size-fluid);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-labs {
  font-weight: 400;
}

.brand-name sup {
  position: relative;
  top: -0.5em;
  margin-left: 0.08em;
  font-size: 0.52em;
  line-height: 0;
}

.brand-tagline {
  margin-top: 0.72rem;
  max-width: min(100%, 36rem);
  font-size: var(--brand-tagline-size-fluid);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes lfos-stage-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lfos-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lfos-icon-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter:
      drop-shadow(0 24px 64px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 22px rgba(53, 224, 178, 0.10));
  }
  50% {
    transform: translate3d(0, -7px, 0) scale(1.012);
    filter:
      drop-shadow(0 28px 72px rgba(0, 0, 0, 0.38))
      drop-shadow(0 0 30px rgba(53, 224, 178, 0.18));
  }
}

@keyframes lfos-halo-breathe {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.06);
  }
}

@keyframes lfos-orbit-spin {
  to {
    transform: rotate(360deg) scale(0.98);
  }
}

@keyframes lfos-text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  45%, 55% {
    background-position: 100% 50%;
  }
}

@keyframes lfos-status-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(53, 224, 178, 0.35);
  }
  50% {
    transform: scale(1.34);
    box-shadow: 0 0 22px rgba(92, 240, 199, 0.55);
  }
}

@keyframes lfos-aurora-turn {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(1.2%, -1.4%, 0) rotate(180deg) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg) scale(1);
  }
}

@keyframes lfos-orb-drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(0.96);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes lfos-grid-flow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 144px, 144px 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 520px) {
  .brand-tagline {
    letter-spacing: 0.16em;
  }

  .product-subtitle {
    max-width: 92vw;
    font-size: clamp(16px, 4.2vw, 19px);
    gap: 3px;
  }

  .subtitle-line {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: clamp(24px, 7.5vw, 32px);
    --icon-size-fluid: clamp(104px, 29vw, 122px);
    --title-size-fluid: clamp(40px, 10.3vw, 46px);
    --gap-icon-title: clamp(48px, 6vh, 56px);
    --gap-title-subtitle: clamp(15px, 2.3vh, 20px);
    --gap-subtitle-status: clamp(26px, 4vh, 34px);
    --gap-status-brand: clamp(58px, 7vh, 72px);
  }

  .ambient-grid {
    background-size: 54px 54px;
    opacity: 0.11;
  }

  .icon-stage {
    width: calc(var(--icon-size-fluid) * 1.74);
    height: calc(var(--icon-size-fluid) * 1.74);
    margin: calc(var(--icon-size-fluid) * -0.24) 0 calc(var(--gap-icon-title) - var(--icon-size-fluid) * 0.24);
  }

  .product-title {
    letter-spacing: -0.048em;
    column-gap: 0.2em;
  }

  .brand-tagline {
    width: min(100%, 320px);
    letter-spacing: 0.16em;
  }
}

@media (max-width: 370px) {
  :root {
    --title-size-fluid: 40px;
    --brand-tagline-size-fluid: 10px;
  }

  .brand-tagline {
    letter-spacing: 0.16em;
  }
}
