/* ferniya.com — coming-soon.css */

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

:root {
  --bg:      #080810;
  --accent:  #7eb8f7;
  --accent2: #a78bfa;
  --text:    #e8e6f0;
  --muted:   #8a86a8;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* background texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0%25' y='0%25' width='100%25' height='100%25' color-interpolation-filters='linearRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.36 0.41' numOctaves='6' seed='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise' result='grey'/%3E%3CfeBlend in='SourceGraphic' in2='grey' mode='overlay'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(126,184,247,0.07), transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation: glow-drift 20s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.06), transparent 70%);
  bottom: -100px; right: 10%;
  animation: glow-drift 26s ease-in-out infinite alternate-reverse;
}

.stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10;
}

.logo-wrap {
  opacity: 0;
  transform: scale(0.75) translateY(10px);
  filter: blur(12px);
  animation: logo-in 1.4s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.logo-wrap img {
  height: 60px; width: auto;
  display: block;
}

.divider {
  width: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(126,184,247,0.4), transparent);
  margin: 32px 0;
  animation: line-expand 1s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
}

.headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s cubic-bezier(0.16,1,0.3,1) 1.3s forwards;
}
.headline em {
  font-style: italic;
  color: var(--accent2);
}

.subline {
  font-size: clamp(0.65rem, 1.4vw, 0.78rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
  opacity: 0;
  animation: fade-up 0.8s ease 1.7s forwards;
}

.wave-wrap {
  display: flex; align-items: flex-end; gap: 3px;
  height: 28px; margin-top: 48px;
  opacity: 0;
  animation: fade-in 0.8s ease 2s forwards;
}
.wave-bar {
  width: 3px; border-radius: 2px;
  background: var(--accent);
  opacity: 0.35;
}
.wave-bar.active {
  opacity: 0.8;
  animation: bar-pulse 1.4s ease-in-out infinite;
}

.socials {
  position: fixed; bottom: 36px;
  bottom: max(36px, calc(20px + env(safe-area-inset-bottom)));
  left: 0; right: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 28px; align-items: center;
  opacity: 0;
  animation: fade-up 0.8s ease 2.2s forwards;
  z-index: 10;
  padding: 0 24px;
}
.socials a {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding: 12px 4px;
}
.socials a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.socials a:hover  { color: var(--text); }
.socials a:hover::after { width: 100%; }
.socials-sep { width: 1px; height: 14px; background: var(--muted); opacity: 0.4; }


/* animations */
@keyframes logo-in {
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes line-expand {
  to { width: 200px; }
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes glow-drift {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(30px); }
}
@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.2); }
}


/* reduced motion + responsive */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
  .logo-wrap, .headline, .subline, .wave-wrap, .socials {
    opacity: 1; transform: none; filter: none;
  }
  .divider { width: 200px; }
}

@media (max-width: 600px) {
  .logo-wrap img  { height: 44px; }
  .headline       { font-size: 2.4rem; }
  .socials        { gap: 14px 20px; bottom: max(16px, calc(8px + env(safe-area-inset-bottom))); }
}
