/* ==========================================================================
   Solo Juventus — landing placeholder (solojuventus.com)
   One responsive page, pure CSS, no JS. Target: Cloudflare Pages.
   Palette: bianconeri (black & white).
   ========================================================================== */

:root {
  --color-bg: #0b0b0d;
  --color-surface: #141418;
  --color-text: #f4f4f2;
  --color-text-muted: #9c9ca3;
  --color-line: rgba(255, 255, 255, 0.14);
  --font-sans: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset --------------------------------------------------------------- */

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

html {
  height: 100%;
}

/* --- Base ---------------------------------------------------------------- */

body {
  min-height: 100vh;
  min-height: 100svh; /* correct full height in mobile browsers */
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--color-text);
  background:
    radial-gradient(
      120% 90% at 50% -10%,
      rgba(255, 255, 255, 0.09),
      transparent 55%
    ),
    radial-gradient(
      90% 60% at 50% 110%,
      rgba(255, 255, 255, 0.05),
      transparent 60%
    ),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Centered hero --------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.brand {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* re-centers after the trailing tracking space */
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.brand-mark {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: max-content;
}

/* Subtle bianconeri stripe divider */
.stripes {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0 8px,
    var(--color-surface) 8px 16px
  );
  opacity: 0.6;
}

.slogan {
  width: 100%;
  font-size: clamp(1.75rem, 4.2vw + 0.75rem, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance; /* even line breaks where supported */
}

.slogan-first {
  display: block;
  white-space: nowrap;
}

.slogan-first > span {
  display: inline;
}

.slogan .accent {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 600px) {
  .slogan-first {
    white-space: normal;
  }

  .slogan-first > span {
    display: block;
  }
}

/* --- Footer ---------------------------------------------------------------- */

.footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* --- Motion (respects user preference) -------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .stripes {
    animation-delay: 0.12s;
  }

  .slogan {
    animation-delay: 0.24s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
