/* ========================================
   WiWaWo — Coming Soon
   Design System & Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-elevated: #1a1a28;
  --color-text: #f0f0f5;
  --color-text-muted: #8888a0;
  --color-text-subtle: #55556a;
  --color-accent-purple: #8B5CF6;
  --color-accent-pink: #EC4899;
  --color-accent-orange: #F97316;
  --color-accent-blue: #3B82F6;
  --gradient-brand: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-pink), var(--color-accent-orange));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background --- */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-effects::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  animation: floatBlob1 20s ease-in-out infinite;
}

.bg-effects::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
  animation: floatBlob2 25s ease-in-out infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-orb--1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 60%;
  background: rgba(236, 72, 153, 0.07);
  animation: floatBlob3 18s ease-in-out infinite;
}

.bg-orb--2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: 10%;
  background: rgba(59, 130, 246, 0.05);
  animation: floatBlob1 22s ease-in-out infinite reverse;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

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

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

@keyframes floatBlob3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, 40px) rotate(180deg); }
}

/* --- Noise Overlay --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Main Content --- */
.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

/* --- Logo --- */
.logo-container {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.2),
    0 0 80px rgba(236, 72, 153, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.3),
    0 0 120px rgba(236, 72, 153, 0.15);
}

/* --- Brand Text --- */
.brand {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.brand-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

/* --- Tagline --- */
.tagline {
  max-width: 540px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.tagline p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Countdown --- */
.countdown {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 1.25rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.countdown-block:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.countdown-value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* --- Email Form --- */
.notify-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 5px;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.notify-form:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
}

.notify-input::placeholder {
  color: var(--color-text-subtle);
}

.notify-btn {
  flex-shrink: 0;
  padding: 0.85rem 1.75rem;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.notify-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.notify-btn:active {
  transform: scale(0.98);
}

/* --- Success State --- */
.notify-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #34D399;
  font-weight: 500;
  font-size: 0.95rem;
  animation: fadeInUp 0.4s ease-out;
}

.notify-success.show {
  display: flex;
}

.notify-success svg {
  width: 20px;
  height: 20px;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 2.5rem 0;
  opacity: 0.4;
  animation: fadeInUp 0.8s ease-out 0.75s both;
}

/* --- Social Links --- */
.social {
  display: flex;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-surface-elevated);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--color-text);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* --- Floating Particles (canvas) --- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .main {
    padding: 1.5rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-block {
    min-width: 65px;
    padding: 1rem 0.75rem;
  }

  .notify-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 5px;
  }

  .notify-input {
    text-align: center;
  }

  .notify-btn {
    border-radius: var(--radius-md);
    width: 100%;
  }

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