/* ==========================================================================
   BucheCorp — Minimalist Coming Soon Stylesheet
   Midnight Obsidian & Cobalt/Cyan Palette, Smooth Staggered Fade-in, Responsive
   ========================================================================== */

:root {
  /* Brand & Theme Colors (Easily customizable) */
  --bg-color: #060913;
  --bg-glow: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.08) 0%, transparent 65%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: #1e293b;
  --border-focus: #38bdf8;
  --card-bg: rgba(15, 23, 42, 0.55);
  
  /* Accent & Interaction */
  --accent-primary: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-dot: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --btn-bg: #38bdf8;
  --btn-text: #040d1a;

  /* Typography & Motion */
  --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);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
  overflow-x: hidden;
}

/* Ambient subtle background glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  height: 480px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.07) 0%, rgba(56, 189, 248, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 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);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-dot);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-glow);
  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;
}

.tagline-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tagline-link:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

/* 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: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.375rem;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  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 0 24px rgba(56, 189, 248, 0.2), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.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(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-bg);
  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: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.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: var(--accent-primary);
  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);
}

.social-link:hover svg {
  fill: var(--accent-primary);
}

.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 var(--accent-glow);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 2px rgba(56, 189, 248, 0.15);
  }
}

/* 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));
  }
}
