/* Spotted Train — stile della home (index.html) */

:root {
  --red: #c60035;
  --red-2: #e0003c;
  --red-dark: #8a0026;
  --ink: #0b0d12;
  --ink-2: #151821;
  --paper: #ffffff;
  --soft: #f6f6f8;
  --text: #1b1d22;
  --muted: #636b77;
  --line: #e8e9ed;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  scroll-behavior: smooth
}

* {
  box-sizing: border-box
}

html {
  overflow-x: clip
}

body {
  margin: 0;
  background: var(--paper);
  overflow-x: clip
}

a {
  color: inherit
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red-2);
  outline-offset: 4px;
  border-radius: 8px
}

.wrap {
  width: min(100% - 48px, 1200px);
  margin: auto
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0
}

/* ---------- NAV ---------- */
.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  pointer-events: none
}

.nav {
  pointer-events: auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(18, 20, 27, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  color: #fff;
  transition: background .3s
}

.site-header.scrolled .nav {
  background: rgba(12, 13, 18, .82)
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap
}

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

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 6px
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  padding: 9px 14px;
  border-radius: 999px;
  transition: .2s
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08)
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  transition: transform .2s
}

.nav-cta:hover {
  transform: translateY(-1px)
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  place-items: center
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: .3s
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0
}

.menu-btn span::before {
  top: -6px
}

.menu-btn span::after {
  top: 6px
}

.menu-open .menu-btn span {
  background: transparent
}

.menu-open .menu-btn span::before {
  top: 0;
  transform: rotate(45deg)
}

.menu-open .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg)
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 13, 18, .97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: .35s
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.03em;
  transform: translateY(16px);
  transition: .4s
}

.mobile-menu a.accent {
  color: var(--red-2)
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible
}

.menu-open .mobile-menu a {
  transform: none
}

/* ---------- BUTTONS ---------- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 10px 30px rgba(198, 0, 53, .25)
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(198, 0, 53, .4)
}

.store-btn svg {
  width: 26px;
  height: 26px
}

.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
  line-height: 1.1
}

.store-btn strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -.01em
}

.store-btn.dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 6px
}

.ghost-link .arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: .25s
}

.ghost-link:hover .arrow {
  background: #fff;
  color: var(--ink);
  transform: translateY(3px)
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate
}

.aurora {
  position: absolute;
  inset: -20%;
  z-index: -2;
  filter: blur(70px);
  opacity: .9
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite
}

.aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: 52%;
  top: 10%;
  background: radial-gradient(circle, #c60035 0%, transparent 65%)
}

.aurora i:nth-child(2) {
  width: 38vw;
  height: 38vw;
  left: 62%;
  top: 45%;
  background: radial-gradient(circle, #8a0026 0%, transparent 65%);
  animation-delay: -6s;
  opacity: .6
}

.aurora i:nth-child(3) {
  width: 40vw;
  height: 40vw;
  left: 5%;
  top: 55%;
  background: radial-gradient(circle, #4b1d8f 0%, transparent 65%);
  animation-delay: -12s;
  opacity: .55
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(-6%, 4%) scale(1.08)
  }

  66% {
    transform: translate(4%, -5%) scale(.95)
  }
}

.rails {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%)
}

.rails path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
  animation: rail 3s linear infinite
}

.rails path:nth-child(2) {
  stroke: #c60035;
  animation-duration: 4.5s
}

.rails path:nth-child(3) {
  animation-duration: 6s;
  opacity: .6
}

@keyframes rail {
  to {
    stroke-dashoffset: -64
  }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

.hero-grid {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 40px;
  align-items: center;
  padding: 130px 0 80px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 26px
}

.pill b {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulse 2s infinite
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 220, 132, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0)
  }
}

.hero h1 {
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 26px
}

.hero h1 .grad {
  white-space: nowrap;
  background: #c60035;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite
}

@keyframes shine {
  to {
    background-position: 200% center
  }
}

.hero-copy {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
  max-width: 520px;
  margin: 0 0 34px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap
}

.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  display: flex;
  gap: 10px;
  align-items: center
}

.hero-meta span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3)
}

.hero-visual {
  position: relative;
  height: 640px;
  display: grid;
  place-items: center;
  perspective: 1200px
}

.glow-ring {
  position: absolute;
  width: 440px;
  height: 440px;
  max-width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(198, 0, 53, .75), transparent 40%, rgba(198, 0, 53, .4), transparent 75%);
  animation: spin 14s linear infinite;
  filter: blur(2px);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%)
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.tilt {
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1)
}

.device {
  position: relative;
  width: min(290px, 62vw);
  aspect-ratio: 985/2013;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55));
  animation: bob 6s ease-in-out infinite
}

@keyframes bob {
  50% {
    translate: 0 -14px
  }
}

.device img,
.screen-frame img {
  position: absolute;
  left: 5.5%;
  top: 2.2%;
  width: 89%;
  height: 95.6%;
  object-fit: fill;
  border-radius: 12% / 5.6%
}

.device::after,
.screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/iphone-frame.png') center/100% 100% no-repeat;
  pointer-events: none
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite
}

.chip .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--red)
}

.chip small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 255, 255, .6)
}

.chip.c1 {
  top: 14%;
  left: -12%;
  animation-delay: -2s
}

.chip.c2 {
  top: 60%;
  right: -12%;
  animation-delay: -4s
}

.chip.c3 {
  bottom: 12%;
  left: -8%;
  animation-delay: -1s
}

.chip.c2 .ico {
  background: #2a7d4f
}

.chip.c3 .ico {
  background: #2f4a78
}

.chip.c4 {
  top: 27%;
  right: -16%;
  animation-delay: -5.5s
}

.chip.c4 .ico {
  background: #d98a00
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 14px
}

.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s infinite
}

@keyframes wheel {
  to {
    transform: translateY(12px);
    opacity: 0
  }
}

/* ---------- TICKER ---------- */
.ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.5deg);
  margin: -22px -10px 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 14px 30px rgba(11, 13, 18, .18)
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite
}

.ticker span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.01em;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap
}

.ticker span::after {
  content: "✦";
  font-size: .6em;
  opacity: .7
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 120px 0
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 18px
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px
}

.section h2 {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800
}

.section h2 em {
  font-style: normal;
  color: var(--red)
}

.section-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 560px
}

/* Features: sticky phone */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px
}

.steps {
  display: flex;
  flex-direction: column;
  padding-bottom: 15vh
}

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .5s
}

.step.active {
  opacity: 1
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px
}

.step-num::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--line)
}

.step h3 {
  font-size: clamp(32px, 3.6vw, 50px);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 16px
}

.step p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 440px
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px
}

.tags span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line)
}

.step .screen-frame {
  display: none
}

.phone-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 88px;
  padding-bottom: 18px;
  display: grid;
  place-items: center
}

.phone-stage::before {
  content: "";
  position: absolute;
  top: calc(50% + 35px);
  translate: 0 -50%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 0, 53, .18), transparent 70%)
}

.stage-device {
  position: relative;
  height: min(600px, calc(100vh - 140px));
  aspect-ratio: 985/2013;
  filter: drop-shadow(0 40px 40px rgba(20, 20, 30, .25))
}

.stage-device img {
  position: absolute;
  left: 5.5%;
  top: 2.2%;
  width: 89%;
  height: 95.6%;
  object-fit: fill;
  border-radius: 12% / 5.6%;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .6s, transform .6s
}

.stage-device img.on {
  opacity: 1;
  transform: none
}

.stage-device::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/iphone-frame.png') center/100% 100% no-repeat;
  pointer-events: none
}

.stage-dots {
  position: absolute;
  right: 6%;
  top: calc(50% + 35px);
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.stage-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  transition: .4s
}

.stage-dots i.on {
  height: 28px;
  background: var(--red)
}

/* Story */
.story {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden
}

.story::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 0, 53, .35), transparent 65%);
  filter: blur(30px)
}

.story .section-desc {
  color: rgba(255, 255, 255, .6)
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  position: relative
}

.story-copy p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .72);
  margin: 0 0 20px
}

.note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px !important;
  color: rgba(255, 255, 255, .45) !important;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 14px;
  border-radius: 999px
}

.big-quote {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0
}

.big-quote .w {
  color: rgba(255, 255, 255, .14);
  transition: color .25s
}

.big-quote .w.lit {
  color: #fff
}

.big-quote .w.red.lit {
  color: var(--red)
}

.quote-sub {
  margin-top: 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
  max-width: 440px
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 80px;
  position: relative
}

.bento>div {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: .3s
}

.bento>div:hover {
  background: rgba(255, 255, 255, .07);
  transform: translateY(-4px)
}

.bento .em {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border: 0;
  margin-bottom: 18px
}

.bento .em .ic {
  width: 26px;
  height: 26px
}

.chip .ic {
  width: 17px;
  height: 17px;
  stroke-width: 2.2
}

.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block
}

.bento h3 {
  font-size: 21px;
  letter-spacing: -.02em;
  margin-bottom: 8px
}

.bento p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6)
}

/* Team */
.team-section {
  background: var(--soft)
}

.team-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  flex-wrap: wrap
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px
}

.team-member {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s
}

.team-member::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 110px;
  background: linear-gradient(120deg, #ececf0, #f7f7f9);
  transition: .35s
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(198, 0, 53, .12)
}

.team-member:hover::before {
  background: linear-gradient(120deg, var(--red), #8a0026)
}

.portrait {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background-image: url('/team-source.png');
  background-size: 637.2973% 334.5946%;
  background-repeat: no-repeat;
  margin: 28px 0 22px;
  border: 4px solid #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12)
}

.portrait-alessia {
  background-position: 9.7586% 51.1521%
}

.portrait-francesco {
  background-position: 62.2736% 51.1521%
}

.portrait-giandomenico {
  background-position: 88.5312% 51.1521%
}

.team-member h3 {
  position: relative;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-bottom: 10px
}

.role {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.role span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: #454b55
}

/* CTA */
.cta {
  padding: 40px 0 120px;
  background: var(--soft)
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(130deg, #c60035, #8a0026 55%, #3a0a1a);
  color: #fff;
  padding: 80px 70px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
  isolation: isolate
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 10% 100%, rgba(224, 0, 60, .35), transparent 45%)
}

.cta-box h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 800;
  margin-bottom: 20px
}

.cta-box p {
  font-size: 18px;
  color: rgba(255, 255, 255, .8);
  margin: 0 0 32px;
  max-width: 440px;
  line-height: 1.6
}

.cta-phone {
  position: relative;
  height: 100%;
  min-height: 300px
}

.cta-phone .device {
  position: absolute;
  width: 250px;
  right: 10%;
  top: -20px;
  transform: rotate(-8deg);
  animation: none
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f4f5f6;
  padding: 80px 0 30px
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px
}

.site-footer h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .45);
  font-family: var(--body)
}

.site-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  max-width: 480px
}

.site-footer nav {
  display: grid;
  gap: 12px
}

.site-footer nav a {
  font-size: 15px;
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  transition: .2s;
  width: fit-content
}

.site-footer nav a:hover {
  color: var(--red-2);
  transform: translateX(3px)
}

.fine-print {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap
}

.mega {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 16.5vw, 218px);
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  background: #c60035;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 30px;
  padding-bottom: .08em;
  white-space: nowrap;
  overflow: hidden
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in {
  opacity: 1;
  transform: none
}

.d1 {
  transition-delay: .1s
}

.d2 {
  transition-delay: .2s
}

.d3 {
  transition-delay: .3s
}

/* ---------- RESPONSIVE ---------- */
@media(min-width:961px) and (max-width:1500px) {
  .chip.c1 {
    left: -4%
  }

  .chip.c2 {
    right: -4%
  }

  .chip.c3 {
    left: -4%
  }

  .chip.c4 {
    right: -4%
  }
}

@media(min-width:961px) and (max-width:1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
  }

  .device {
    width: 240px
  }

  .chip small {
    display: none
  }

  .chip.c1 {
    display: none
  }

  .chip.c3 {
    left: 2%;
    bottom: 14%
  }

  .chip.c4 {
    right: 0;
    top: 18%
  }

  .chip.c2 {
    right: 0;
    top: 62%
  }
}

@media(max-width:960px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .menu-btn {
    display: grid
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 120px 0 90px;
    gap: 10px;
    text-align: left
  }

  .hero h1 .grad {
    white-space: normal
  }

  .hero-visual {
    height: 560px
  }

  .chip.c1 {
    left: 2%
  }

  .chip.c2 {
    right: 2%
  }

  .chip.c3 {
    left: 4%
  }

  .chip.c4 {
    right: 2%
  }

  .scroll-hint {
    display: none
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0
  }

  .steps {
    padding-bottom: 0
  }

  .phone-stage {
    display: none
  }

  .step {
    min-height: auto;
    opacity: 1;
    padding: 50px 0;
    border-bottom: 1px solid var(--line)
  }

  .step .screen-frame {
    display: block;
    position: relative;
    width: min(70%, 260px);
    aspect-ratio: 985/2013;
    margin: 34px auto 0;
    filter: drop-shadow(0 25px 30px rgba(20, 20, 30, .2))
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px
  }

  .bento {
    grid-template-columns: 1fr
  }

  .team-grid {
    grid-template-columns: 1fr
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 56px 32px 0
  }

  .cta-phone {
    min-height: 340px
  }

  .cta-phone .device {
    position: relative;
    right: auto;
    top: auto;
    margin: 0 auto -60px;
    width: 220px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1
  }
}

@media(max-width:520px) {
  .wrap {
    width: min(100% - 36px, 1200px)
  }

  .site-header {
    inset: 10px 0 auto
  }

  .nav {
    height: 58px
  }

  .brand {
    font-size: 16px
  }

  .brand img {
    width: 34px;
    height: 34px
  }

  .hero h1 {
    font-size: clamp(46px, 13.5vw, 60px)
  }

  .hero-visual {
    height: 520px
  }

  .device {
    width: min(220px, 56vw)
  }

  .chip {
    font-size: 12px;
    padding: 9px 11px
  }

  .chip .ico {
    width: 26px;
    height: 26px
  }

  .chip.c1 {
    top: 3%;
    left: 0
  }

  .chip.c2 {
    top: auto;
    bottom: 5%;
    right: 0
  }

  .chip.c3,
  .chip.c4 {
    display: none
  }

  .section {
    padding: 84px 0
  }

  .cta-box {
    border-radius: 28px
  }
}


/* ---------- MOBILE: caroselli, righe compatte, barra download ---------- */
.m-dots,
.m-cta {
  display: none
}

@media(max-width:960px) {
  .section {
    padding: 72px 0
  }

  .steps {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 26px -24px 0;
    padding: 6px 24px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
  }

  .steps::-webkit-scrollbar {
    display: none
  }

  .step {
    flex: 0 0 min(84%, 340px);
    scroll-snap-align: center;
    min-height: 0;
    padding: 26px 22px 0;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--soft);
    overflow: hidden;
    justify-content: flex-start
  }

  .step h3 {
    font-size: 28px;
    margin-bottom: 10px
  }

  .step p {
    font-size: 15.5px;
    line-height: 1.55
  }

  .tags {
    margin-top: 16px
  }

  .tags span {
    font-size: 12px;
    padding: 7px 12px;
    background: #fff
  }

  .step .screen-frame {
    width: min(80%, 230px);
    margin: 26px auto -110px;
    padding-top: 0;
    margin-top: auto;
    translate: 0 26px
  }

  .m-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px
  }

  .m-dots i {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--line);
    transition: .3s
  }

  .m-dots i.on {
    width: 26px;
    background: var(--red)
  }

  .bento {
    margin-top: 50px;
    gap: 10px
  }

  .bento>div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 22px
  }

  .bento .em {
    grid-row: span 2;
    margin: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px
  }

  .bento h3 {
    font-size: 18px;
    margin: 0;
    align-self: end
  }

  .bento p {
    font-size: 14px;
    align-self: start
  }

  .team-grid {
    gap: 10px;
    margin-top: 34px
  }

  .team-member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 18px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 24px
  }

  .team-member::before {
    display: none
  }

  .portrait {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    margin: 0;
    border-width: 3px
  }

  .team-member h3 {
    font-size: 20px;
    margin: 0;
    align-self: end
  }

  .role {
    align-self: start
  }

  .cta {
    padding: 20px 0 90px
  }

  .m-cta {
    position: fixed;
    z-index: 45;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 22px;
    background: rgba(18, 20, 27, .86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
    color: #fff;
    transform: translateY(140%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1)
  }

  .m-cta.show {
    transform: none
  }

  .m-cta img {
    width: 40px;
    height: 40px;
    border-radius: 11px
  }

  .m-cta b {
    display: block;
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.1
  }

  .m-cta small {
    font-size: 12px;
    color: rgba(255, 255, 255, .6)
  }

  .m-cta a {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 14px
  }

  .m-cta a svg {
    width: 16px;
    height: 16px
  }

  .menu-open .m-cta {
    transform: translateY(140%)
  }
}

@media(max-width:520px) {
  .hero-grid {
    padding: 104px 0 70px
  }

  .hero-actions .store-btn {
    flex: 1 1 auto;
    justify-content: center
  }

  .hero-visual {
    height: 470px;
    margin-top: 6px
  }

  .tilt {
    translate: 52px 0
  }

  .chip small {
    display: none
  }

  .chip {
    padding: 8px 12px 8px 8px
  }

  .chip.c4 {
    display: flex;
    top: 12%;
    left: 0;
    right: auto
  }

  .chip.c2 {
    top: 44%;
    bottom: auto;
    left: 0;
    right: auto
  }

  .chip.c1 {
    top: auto;
    bottom: 16%;
    left: 0
  }

  .steps {
    margin: 26px -18px 0;
    padding: 6px 18px 18px
  }
}

/* ---------- TABLET (iPad verticale e simili) ---------- */
@media(min-width:700px) and (max-width:960px) {
  .hero h1 {
    font-size: clamp(56px, 9vw, 84px)
  }

  .hero-copy {
    font-size: 20px;
    max-width: 600px
  }

  .hero-visual {
    height: 600px
  }

  .device {
    width: 270px
  }

  .tilt {
    translate: 0 0
  }

  .chip.c1 {
    left: 6%;
    top: 8%
  }

  .chip.c4 {
    right: 6%;
    left: auto;
    top: 24%
  }

  .chip.c2 {
    right: 4%;
    left: auto;
    top: 62%;
    bottom: auto
  }

  .chip.c3 {
    display: flex;
    left: 4%;
    bottom: 12%
  }

  .steps {
    margin: 30px -24px 0;
    padding: 6px 24px 22px
  }

  .step {
    flex-basis: calc(50% - 7px)
  }

  .bento {
    grid-template-columns: repeat(3, 1fr)
  }

  .bento>div {
    display: block;
    padding: 24px
  }

  .bento .em {
    margin-bottom: 16px
  }

  .bento h3 {
    margin-bottom: 6px
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .team-member {
    display: block;
    padding: 24px;
    text-align: center
  }

  .portrait {
    margin: 0 auto 16px;
    width: 96px;
    height: 96px
  }

  .role {
    justify-content: center;
    margin-top: 8px
  }

  .cta-box {
    grid-template-columns: 1.1fr .9fr;
    padding: 56px 48px;
    align-items: center
  }

  .cta-phone {
    min-height: 380px
  }

  .cta-phone .device {
    position: absolute;
    right: 0;
    top: auto;
    bottom: -120px;
    margin: 0;
    width: 220px
  }

  .story-grid {
    gap: 40px
  }
}

/* iPad Pro e tablet grandi in verticale */
@media(min-width:961px) and (max-width:1100px) and (orientation:portrait) {
  .hero-grid {
    min-height: auto;
    padding: 170px 0 120px
  }

  .hero h1 {
    font-size: 76px
  }

  .hero-copy {
    font-size: 20px
  }

  .hero-visual {
    height: 640px
  }

  .device {
    width: 255px
  }

  .chip.c3 {
    left: -2%
  }

  .step {
    min-height: 56vh
  }

  .stage-device {
    height: min(640px, calc(100vh - 220px))
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .big-quote .w {
    color: #fff
  }
}
