/* =============================================
   TestWidgets — Dark Theme Landing Page
   Mobile-first, vanilla CSS
   ============================================= */

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

:root {
  --bg-primary:   #0a0a0a;
  --bg-surface:   #141414;
  --text-primary: #f0f0f0;
  --text-muted:   #888888;
  --accent:       #6c63ff;
  --accent-hover: #857bff;
  --accent-glow:  rgba(108, 99, 255, 0.25);
  --font:         system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:   0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ---------- Fade-in Animation ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  opacity: 0;              /* hidden before JS fires */
}

.hero.visible {
  animation: fadeUp 0.7s ease forwards;
}

/* Stagger children when parent is visible */
.hero.visible .hero__eyebrow {
  animation: fadeUp 0.6s ease 0.05s both;
}

.hero.visible .hero__title {
  animation: fadeUp 0.6s ease 0.15s both;
}

.hero.visible .hero__subtitle {
  animation: fadeUp 0.6s ease 0.25s both;
}

.hero.visible .hero__cta {
  animation: fadeUp 0.6s ease 0.38s both;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: 640px;
  width: 100%;
}

.hero__eyebrow {
  opacity: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  opacity: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  opacity: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA Button ---------- */
.hero__cta {
  opacity: 0;
  display: inline-block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-hover);
  box-shadow: 0 0 0 4px var(--accent-glow),
              0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Arrow icon inside button */
.btn-primary__arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .hero {
    padding: 3rem 2rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 2rem;
  }
}
