/* =========================================================================
   Muzorro landing — styles.css
   Phase 5 / Plan 1 (LAND-SRV-02)
   Source of truth: .planning/phases/05-landing/05-UI-SPEC.md
   ========================================================================= */

/* 1. CSS Custom Properties — client darkColors (tokens.ts:74-99) */
:root {
  /* Colors */
  --color-bg: #1A1714;
  --color-surface: #2A2520;
  --color-surface-alt: #352F28;
  --color-text: #E8E2D8;
  --color-text-secondary: #9B9590;
  --color-accent: #E8652B;
  --color-accent-light: #F0844D;
  --color-gold: #D4A73A;
  --color-border: #3A3530;

  /* Typography */
  --text-display: 64px;
  --text-display-mobile: 36px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing — multiples of 4 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

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

/* 3. Body — animated gradient background (D-12) */
body {
  min-height: 100vh;
  background: linear-gradient(-45deg,
    #1A1714,
    #2F2420,
    #3D2A1E,
    #25201C,
    #1A1714);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--color-text);
  font-family: var(--font-family);
  overflow: hidden;
  position: relative;
}

/* 4. Gradient shift keyframes */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 5. Blur circles — base class */
.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* 6. Blur circles — individual variants + float keyframes */
.blur-circle--1 {
  width: 320px;
  height: 320px;
  background: #E8652B;
  opacity: 0.14;
  top: 15%;
  left: 10%;
  animation: float1 20s ease-in-out infinite;
}

.blur-circle--2 {
  width: 240px;
  height: 240px;
  background: #F0844D;
  opacity: 0.11;
  bottom: 20%;
  right: 8%;
  animation: float2 25s ease-in-out infinite;
}

.blur-circle--3 {
  width: 180px;
  height: 180px;
  background: #E8652B;
  opacity: 0.13;
  top: 55%;
  left: 58%;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(50px, 35px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-45px, -50px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(35px, -35px); }
}

/* 7. Main — flex center (D-13) */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

/* 8. H1 typography */
h1 {
  font-size: var(--text-display);
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.0;
}

/* 8.5 Tagline — subtitle under h1 */
.tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  letter-spacing: 1px;
  text-align: center;
  font-family: var(--font-family);
}

/* 9. Badges container + link states */
.badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}

.badges a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-height: 44px;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  border-radius: 4px;
}

.badges a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(212, 167, 58, 0.35));
}

.badges a:active {
  opacity: 0.7;
  transform: translateY(0);
  filter: none;
}

.badges a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.badges a:focus:not(:focus-visible) {
  outline: none;
}

.badges a img {
  display: block;
  max-height: 50px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* 10. Mobile breakpoint (D-14) */
@media (max-width: 480px) {
  h1 {
    font-size: var(--text-display-mobile);
  }
  .tagline {
    font-size: 16px;
    margin-top: var(--space-sm);
  }
  .badges {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* 11. Reduced motion — accessibility (UI-SPEC §Accessibility) */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .blur-circle {
    animation: none;
  }
}
