/* ==========================================================================
   NaChat Coming Soon — Styles
   Official brand colors and design system
   ========================================================================== */

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

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

/* Design Tokens - Official NaChat Brand */
:root {
  /* Colors - NaChat Official */
  --color-primary: #0D4945;
  --color-primary-hover: #1B5E56;
  --color-accent-lime: #9BD35A;
  --color-accent-blue: #0088CC;
  --color-text-heading: #000000;
  --color-text-body: #5A5A5A;
  --color-bg: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing (4px base grid) */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* Timing */
  --dur-fast: 200ms;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Body */
body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8F7 100%);
  color: var(--color-text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Effects */
.cs-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.cs-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: cs-float 20s ease-in-out infinite;
}

.cs-gradient-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.cs-gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-lime), transparent);
  bottom: -100px;
  left: -100px;
  animation-delay: 5s;
}

.cs-gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent-blue), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes cs-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-30px, 30px); }
}

/* Main Container */
.cs-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

/* Logo */
.cs-logo {
  margin-bottom: var(--space-8);
  animation: cs-fadeInUp 0.6s ease 0.2s both;
}

.cs-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(21%) sepia(28%) saturate(2076%) hue-rotate(139deg) brightness(95%) contrast(96%);
  animation: cs-logoFloat 3s ease-in-out infinite;
}

@keyframes cs-logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Badge */
.cs-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: rgba(13, 73, 69, 0.05);
  margin-bottom: var(--space-8);
  animation: cs-fadeInUp 0.6s ease 0.3s both;
}

/* Headline */
.cs-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-heading);
  margin-bottom: var(--space-6);
  animation: cs-fadeInUp 0.6s ease 0.4s both;
}

/* Subheadline */
.cs-subheadline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 700px;
  margin: 0 auto var(--space-10);
  animation: cs-fadeInUp 0.6s ease 0.5s both;
}

/* Tagline */
.cs-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: cs-fadeInUp 0.6s ease 0.6s both;
}

.cs-tagline-item {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  transition: transform var(--dur-fast) var(--ease-settle);
}

.cs-tagline-item:hover {
  transform: translateY(-4px);
}

.cs-tagline-item:nth-child(2) {
  color: var(--color-accent-blue);
}

.cs-tagline-item:nth-child(3) {
  color: var(--color-primary-hover);
}

/* Footer */
.cs-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-6);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-body);
  animation: cs-fadeIn 0.6s ease 1s both;
}

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

@keyframes cs-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cs-logo img {
    height: 50px;
  }
  
  .cs-badge {
    font-size: 0.75rem;
  }
  
  .cs-tagline {
    gap: var(--space-3);
  }
  
  .cs-container {
    padding: var(--space-6) var(--space-4);
  }
}

@media (max-width: 480px) {
  .cs-logo img {
    height: 40px;
  }
  
  .cs-tagline {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cs-gradient-orb,
  .cs-logo img {
    animation: none;
  }
  
  .cs-badge,
  .cs-headline,
  .cs-subheadline,
  .cs-tagline,
  .cs-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
