/* ==========================================================================
   Buche Makes Games — Minimalist Coming Soon Stylesheet
   White on Black, Smooth Staggered Fade-in, Fully Responsive
   ========================================================================== */

:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-subtle: #27272a;
  --border-focus: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.03);
  --accent-dot: #ffffff;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --notify-height: 50px;
  --message-glide-y: -47px;
}

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

html {
  color-scheme: dark;
  background-color: var(--bg-color);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  color: var(--text-primary);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
  overflow-x: hidden;
}

/* Layout Containers */
.site-header,
.main-content,
.site-footer {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-dot);
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulseAnimation 2.4s ease-in-out infinite;
}

/* Main Hero Section */
.main-content {
  margin: auto 0;
  padding: 3rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.tagline-sentence {
  display: block;
  white-space: nowrap;
}

/* Notify Form */
.notify-wrapper {
  width: 100%;
  max-width: 440px;
  height: var(--notify-height);
  margin: 0 auto;
  position: relative;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.375rem;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.notify-form.collapsed {
  animation: formWidenAndCollapse 0.5s var(--ease-out-expo) forwards;
  pointer-events: none;
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.65rem 0.875rem;
  min-width: 0;
}

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

.notify-button {
  background-color: var(--text-primary);
  color: #000000;
  border: 1px solid var(--text-primary);
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.notify-button:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  transform: translateY(-1px);
}

.notify-button:active {
  transform: translateY(0);
}

.form-message {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.form-message.success {
  color: #4ade80;
  animation: messageGlideUp 0.45s var(--ease-out-expo) 0.08s both;
}

.form-message.success svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.form-message.error {
  color: #f87171;
}

@keyframes formWidenAndCollapse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scaleX(1.04) scaleY(0.96);
    opacity: 1;
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes messageGlideUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: translateY(var(--message-glide-y));
  }
}

/* Footer & Social Links */
.site-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Staggered Fade-in Animations */
.animate-fade {
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) forwards;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

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

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

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

.delay-4 {
  animation-delay: 0.55s;
}

.delay-5 {
  animation-delay: 0.7s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseAnimation {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  }
}

/* Responsive adjustments */
@media (max-width: 540px) {
  :root {
    --notify-height: 98px;
    --message-glide-y: -72px;
  }

  body {
    padding: 1.5rem 1.25rem;
  }

  .site-header {
    justify-content: center;
  }

  .notify-form {
    flex-direction: column;
    padding: 0.5rem;
  }

  .notify-button {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .social-links {
    gap: 1.25rem;
  }
}

/* Accessibility: respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pulse-dot {
    animation: none;
    opacity: 1;
  }

  .notify-button,
  .social-link {
    transition: none;
  }

  .notify-form.collapsed {
    visibility: hidden;
    animation: none;
  }

  .form-message.success {
    animation: none;
    opacity: 1;
    transform: translateY(var(--message-glide-y));
  }
}
