:root {
  --bg: #080808;
  --panel: #111;
  --panel-soft: #181818;
  --ink: #f7f3ee;
  --muted: #b7aea6;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #f01425;
  --accent-deep: #9f0813;
  --steel: #98a1a7;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
  z-index: -2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-elevated {
  background: rgba(8, 8, 8, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(240, 20, 37, 0.48);
  background: rgba(240, 20, 37, 0.12);
  color: var(--ink);
  font-weight: 700;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 42px;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 48px 0 86px;
}

.hero-media {
  position: absolute;
  inset: 28px auto auto 44%;
  width: min(55vw, 660px);
  opacity: 0.18;
  filter: saturate(1.05);
  z-index: -1;
}

.hero-media img {
  border-radius: 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 14vw, 10.8rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1.06rem, 2vw, 1.34rem);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 182px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: var(--ink);
  color: #070707;
  font-weight: 800;
}

.store-button small {
  display: block;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-secondary {
  background: transparent;
  color: var(--ink);
}

.store-secondary small {
  color: var(--muted);
}

.store-icon {
  font-size: 1.72rem;
  line-height: 1;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid var(--accent);
}

.phone-preview {
  justify-self: end;
  width: min(100%, 390px);
}

.phone-shell {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background: linear-gradient(155deg, #343434, #080808 34%, #171717);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.phone-screen {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 20, 37, 0.18), transparent 30%),
    linear-gradient(180deg, #171717, #050505);
}

.status-row,
.control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.body-preview {
  position: relative;
  height: 520px;
  margin: 8px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #222, #070707 58%);
}

.preview-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--accent);
  opacity: 0.9;
  z-index: 2;
}

.top-left {
  top: 16px;
  left: 16px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.top-right {
  top: 16px;
  right: 16px;
  border-top: 4px solid;
  border-right: 4px solid;
}

.bottom-left {
  bottom: 16px;
  left: 16px;
  border-bottom: 4px solid;
  border-left: 4px solid;
}

.bottom-right {
  bottom: 16px;
  right: 16px;
  border-bottom: 4px solid;
  border-right: 4px solid;
}

.control-panel {
  gap: 12px;
  margin: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.control-panel div {
  min-width: 0;
}

.control-panel span {
  display: block;
  margin-bottom: 5px;
}

.control-panel strong {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.feature-band,
.workflow-section,
.studio-section,
.download-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 810px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 286px;
  padding: 26px;
  background: var(--panel);
}

.feature-number {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.workflow-section,
.studio-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.workflow-copy p,
.studio-section p,
.download-section p {
  max-width: 620px;
}

.steps-list {
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-item span {
  color: var(--ink);
  font-weight: 900;
}

.step-item p {
  margin-bottom: 0;
}

.studio-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--panel-soft), #070707);
  border: 1px solid var(--line);
}

.studio-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.88) contrast(1.08);
}

.depth-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(270px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px);
}

.depth-card span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.depth-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 15px;
  height: 2px;
  background: var(--accent);
}

.download-section {
  align-items: center;
  padding-bottom: 110px;
}

.download-actions {
  justify-content: end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .workflow-section,
  .studio-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 34px;
  }

  .phone-preview {
    justify-self: start;
    width: min(100%, 430px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-actions {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .nav-download {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 58px;
  }

  .hero-media {
    inset: 70px auto auto 20%;
    width: 94vw;
  }

  .store-button {
    width: 100%;
  }

  .phone-screen {
    min-height: 590px;
  }

  .body-preview {
    height: 440px;
  }

  .feature-band,
  .workflow-section,
  .studio-section,
  .download-section {
    padding: 64px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 230px;
  }

  .feature-number {
    margin-bottom: 40px;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .studio-visual {
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ---- Pagine legali (privacy / cookie / termini) ---- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}
.legal h1 { font-size: 34px; margin: 8px 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink); opacity: 0.92; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---- Sezione flusso (4 passaggi con immagini) ---- */
.flow-section { max-width: var(--max); margin: 0 auto; padding: 40px 22px 20px; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.flow-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.flow-img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1c, #050505);
  border: 1px solid var(--line);
}
.flow-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-img--empty::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(240,20,37,0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
}
.flow-step { display: block; margin-top: 12px; font-weight: 700; color: var(--accent); }
.flow-card p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  margin: 30px auto 0; padding: 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft);
}
.trust-strip span { color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flow-grid { grid-template-columns: 1fr; }
}

/* ---- Immagini nei riquadri "feature" (importate così come sono) ---- */
.feature-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #0e0e10;
  border: 1px solid var(--line);
}
.feature-img img { width: 100%; height: auto; display: block; }

/* ---- Pulsante store disabilitato + "Coming soon" ---- */
.store-coming { display: inline-flex; flex-direction: column; align-items: center; }
.store-button.is-disabled { opacity: 0.45; pointer-events: none; cursor: default; }
.coming-soon {
  display: block; margin-top: 8px; text-align: center;
  color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
