@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #0b1220;
  --navy-deep: #07111e;
  --lime: #b7f34a;
  --lime-top: #c9fa73;
  --lime-bottom: #a3dd38;
  --lime-hover: #d4ff8d;
  --ink: #f7f9fc;
  --muted: #bac8de;
  --sheet: #141e2e;
  --focus: #b7f34a;
  --danger: #ffadb5;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  /* viewBox 398.47×251.56: F da x≈31.05; sotto le lettere ≈y 168.5.
     I % verticali usano la larghezza del lockup (= logo): bottomGap×(h/w). */
  --logo-ink-left: 7.792%;
  --logo-ink-pull: 20.85%;
  --copy-max: 44.5rem; /* ≈712 px */
  color-scheme: dark;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--lime) 55%, transparent);
  color: var(--navy);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 40% at 85% 90%, color-mix(in srgb, #33557f 35%, transparent), transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 42%, #0e1830 100%);
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(20rem, 78vw);
  margin: 0 0 4.5rem;
}

.brand {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.35));
}

.arrival {
  margin: calc(-1 * var(--logo-ink-pull) + 0.7rem) 0 0;
  padding-left: var(--logo-ink-left);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--muted);
  text-align: left;
}

.copy {
  width: min(var(--copy-max), calc(100% - 0.5rem));
  max-width: 720px;
  margin: 0 0 4rem;
  text-align: center;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.6vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.lead {
  margin: 0 auto 1.25rem;
  max-width: 36ch;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.body {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(var(--copy-max), 100%);
}

.like-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  min-width: 12.5rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  background: linear-gradient(180deg, var(--lime-top) 0%, var(--lime) 48%, var(--lime-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 10px 28px rgb(0 0 0 / 0.28);
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

.like-button:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--lime-hover) 0%, var(--lime-top) 48%, var(--lime) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 14px 32px rgb(0 0 0 / 0.32);
}

.like-button:active:not(:disabled) {
  transform: translateY(1px);
}

.like-button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.like-button:focus:not(:focus-visible) {
  outline: none;
}

.like-button:disabled {
  cursor: wait;
  filter: saturate(0.85);
}

.like-button[aria-pressed="true"] {
  background: var(--sheet);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--lime) 55%, transparent),
    0 10px 28px rgb(0 0 0 / 0.28);
}

.like-button[aria-pressed="true"]:hover:not(:disabled) {
  background: #1c293b;
  filter: none;
}

.heart {
  flex: 0 0 auto;
  display: block;
}

.heart-fill {
  opacity: 0;
  transform: scale(0.72);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.like-button[aria-pressed="true"] .heart-fill {
  opacity: 1;
  transform: scale(1);
  color: var(--lime);
}

.like-button[aria-pressed="true"] .heart-outline {
  opacity: 0;
}

.like-status {
  margin: 0;
  min-height: 1.35em;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.like-status[data-tone="error"] {
  color: var(--danger);
}

.stage > * {
  animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-lockup { animation-delay: 40ms; }
.copy { animation-delay: 140ms; }
.actions { animation-delay: 280ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (min-width: 700px) {
  h1 {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .stage {
    padding: 2.5rem 1rem 2rem;
    justify-content: flex-start;
  }

  .brand-lockup {
    width: min(16.5rem, 82vw);
    margin-bottom: 3rem;
  }

  .copy {
    margin-bottom: 2.75rem;
  }

  .like-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage > * {
    animation: none;
  }

  .like-button,
  .heart-fill {
    transition: none;
  }
}
