/* Palette mirrors the app: navy background rgb(24,39,58), grey text, aurora green. */
:root {
  --bg: #0f1824;
  --card: #18273a;
  --ink: #eef2f6;
  --ink-muted: #a9b6c6;
  --aurora: #5ef2a0;
  --aurora-2: #7f6bff;
  --line: #24364d;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--aurora);
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  background:
    radial-gradient(60% 80% at 30% 0%, rgba(94, 242, 160, 0.28), transparent 70%),
    radial-gradient(50% 70% at 75% 10%, rgba(127, 107, 255, 0.25), transparent 70%);
}

.hero .logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.hero h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: clamp(2.2rem, 7vw, 3rem);
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0;
  color: var(--ink-muted);
}

.tagline span {
  display: block;
}

.soon {
  text-align: center;
  margin: 0 0 2rem;
  color: var(--ink-muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  margin-top: 0;
}

.card h3 {
  margin-bottom: 0.25rem;
}

.lang {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 1.5rem;
}

.back {
  display: inline-block;
  margin: 1.5rem 0 0;
}

footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.875rem;
  padding: 2rem 1rem 3rem;
}

/* Language switch: English by default, one language on screen at a time. */
html[lang="en"] body [lang="it"]:not(.lt),
html[lang="it"] body [lang="en"]:not(.lt) {
  display: none !important;
}

.lang-toggle {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: rgba(15, 24, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

html.js .lang-toggle {
  display: inline-flex;
}

.lang-toggle:hover {
  border-color: var(--aurora);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 2px;
}

/* Button labels are in the other language: show the one that is NOT the current one. */
html[lang="en"] .lt[lang="en"],
html[lang="it"] .lt[lang="it"] {
  display: none;
}

.hero {
  position: relative;
}

/* ---------- Home ---------- */

.wrap-wide {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero: the store photo (CC0) under a scrim that fades into the page. */
.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 820px);
  padding: 5rem 1rem 6rem;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.25) 0%, rgba(5, 8, 22, 0.45) 55%, var(--bg) 100%),
    url("/asset/images/hero-960.jpg") center 35% / cover no-repeat var(--bg);
}

@media (min-width: 961px) {
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(5, 8, 22, 0.2) 0%, rgba(5, 8, 22, 0.45) 55%, var(--bg) 100%),
      url("/asset/images/hero.jpg") center 35% / cover no-repeat var(--bg);
  }
}

.hero-inner {
  max-width: 40rem;
}

.hero-photo .logo {
  width: clamp(88px, 22vw, 128px);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-photo h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.claim {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-photo .tagline {
  color: var(--ink);
  opacity: 0.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.pill {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(15, 24, 36, 0.55);
  border: 1px solid rgba(94, 242, 160, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Description */
.intro {
  margin-top: -2rem;
  position: relative;
}

.lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink);
}

.features {
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.features h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--aurora);
}

.features p {
  margin: 0;
  color: var(--ink-muted);
}

/* Screenshots: four side by side, two per row on phones. */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  margin-bottom: 3rem;
}

.shots figure {
  margin: 0;
  text-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.shots figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }
}
