/* Custom Design System for ainative.id */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --bg-color: #07070a;
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #3074f9;
  --primary-glow: rgba(48, 116, 249, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 10, 15, 0.6);
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

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

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

/* Background Particle Canvas Container */
#particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  /* Optimization: content-visibility */
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 100vh;
}

/* Main Content Layer */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  pointer-events: none; /* Let pointer events fall through to the canvas */
}

/* Header/Logo section */
header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  pointer-events: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--primary);
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -2rem;
}

.badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(48, 116, 249, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(48, 116, 249, 0.2);
  margin-bottom: 1.5rem;
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(48, 116, 249, 0.05);
}

h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #ffffff 60%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: auto;
}

p.tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  pointer-events: auto;
}

/* Interactive Buttons */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  background-color: #ffffff;
}

.btn-secondary {
  background-color: var(--glass-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Footer info */
footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  letter-spacing: 0.05em;
  pointer-events: auto;
}

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary);
}

/* Responsive Scaling */
@media (max-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }
  
  p.tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  header {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Smooth fade in animation for load state */
.fade-in {
  opacity: 0;
  animation: fadeInEffect 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

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