/* ========================================================================
   NoderFlow — Coming Soon
   Style Guide: Purple-to-Blue gradient, glassmorphism, dark theme
   ======================================================================== */

/* ----- Custom Properties ----- */
:root {
  --color-primary:       #A855F7;
  --color-primary-dark:  #7C3AED;
  --color-secondary:     #3B82F6;
  --color-secondary-light: #60A5FA;
  --color-bg:            #0F0B1A;
  --color-bg-card:       rgba(255, 255, 255, 0.04);
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-text:          #F8FAFC;
  --color-text-muted:    #94A3B8;
  --color-text-faint:    #64748B;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --card-blur: 24px;
  --card-radius: 28px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  font-family: var(--font-family);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

/* ----- Particle Canvas ----- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ----- Ambient Orbs (background glow) ----- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary-dark);
  top: -10%;
  left: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--color-secondary);
  bottom: -10%;
  right: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, 60px) scale(1.1); }
  66%      { transform: translate(-40px, 100px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-60px, -80px) scale(1.05); }
  66%      { transform: translate(50px, -40px) scale(0.9); }
}

/* ----- Main Container ----- */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 2rem;
}

/* ----- Glass Card ----- */
.card.glass {
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 3.5rem 4rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: cardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subtle gradient border shimmer */
.card.glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.3),
    rgba(59, 130, 246, 0.1),
    rgba(168, 85, 247, 0.05),
    rgba(59, 130, 246, 0.3)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----- Logo ----- */
.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: logoEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.35) 0%,
    rgba(59, 130, 246, 0.15) 50%,
    transparent 70%
  );
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

.logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

@keyframes logoEnter {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* ----- Title ----- */
.title {
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ----- Divider ----- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.5),
    rgba(59, 130, 246, 0.5),
    transparent
  );
}

.divider-icon {
  color: var(--color-primary);
  font-size: 0.75rem;
  opacity: 0.8;
  animation: iconSpin 8s linear infinite;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ----- Subtitle & Description ----- */
.subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.description {
  color: var(--color-text-faint);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Footer ----- */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.footer p {
  color: var(--color-text-faint);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .card.glass {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
    margin: 0 0.5rem;
  }

  .logo {
    width: 140px;
    height: 140px;
  }

  .gradient-text {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .divider-line {
    width: 40px;
  }

  .ambient-orb {
    filter: blur(80px);
    opacity: 0.1;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
}

@media (max-width: 380px) {
  .gradient-text {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .card.glass {
    padding: 2rem 1.25rem;
  }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
