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

:root {
  --bg: #f0ede8;
  --bg-2: #e8e4de;
  --bg-3: #ffffff;
  --surface: #ffffff;
  --border: rgba(44,44,42,0.1);
  --text: #2C2C2A;
  --text-2: #5F5E5A;
  --text-3: #9a9894;
  --red: #C84B2F;
  --red-glow: rgba(200,75,47,0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10,10,9,0.85);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,75,47,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding: 8px 16px;
  border: 1px solid rgba(200,75,47,0.3);
  border-radius: 100px;
  background: rgba(200,75,47,0.08);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 rgba(200,75,47,0);
}

.btn-hero-primary:hover {
  background: #b03d22;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(200,75,47,0.35);
}

.btn-large { font-size: 16px; padding: 16px 32px; }

.btn-hero-ghost {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  padding: 14px 20px;
  transition: color 0.2s;
}
.btn-hero-ghost:hover { color: var(--text); }

/* ── PHONE MOCKUP ─────────────────────────────────────────────────────── */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--bg-3);
  border-radius: 36px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.phone-screen { height: 100%; overflow-y: auto; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }

.mock-header {
  background: #2C2C2A;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-logo-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1.5px solid rgba(200,75,47,0.3);
  margin: 0 auto 0.5rem;
}

.mock-name {
  font-size: 12px;
  font-weight: 700;
  color: #f0ede8;
  margin-bottom: 2px;
}
.mock-addr {
  font-size: 10px;
  color: rgba(240,237,232,0.5);
}

.mock-cats {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.mock-cat {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #a09d98;
  white-space: nowrap;
  cursor: pointer;
}

.mock-cat.active {
  background: #C84B2F;
  color: white;
  border-color: #C84B2F;
}

.mock-items { padding: 8px; }

.mock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.mock-item-name {
  font-size: 11px;
  font-weight: 600;
  color: #f0ede8;
  margin-bottom: 2px;
}

.mock-item-desc {
  font-size: 9px;
  color: #6a6a68;
  margin-bottom: 4px;
}

.mock-item-price {
  font-size: 11px;
  font-weight: 700;
  color: #C84B2F;
}

.mock-item-btn {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: #C84B2F;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollAnim 2s ease infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.3; }
}

/* ── NUMBERS ─────────────────────────────────────────────────────────── */
.numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.number-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}

.number-val {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.number-label {
  font-size: 13px;
  color: var(--text-3);
}

.number-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────── */
.how {
  padding: 7rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4rem;
  color: var(--text);
}

.section-title em { font-style: italic; color: var(--red); }

.section-title-center {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
  text-align: center;
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover {
  border-color: rgba(200,75,47,0.3);
  transform: translateY(-4px);
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.step-card a { color: var(--red); text-decoration: none; }

.step-connector {
  font-size: 24px;
  color: var(--text-3);
  padding: 0 1.5rem;
  flex-shrink: 0;
}

/* ── FEATURES ─────────────────────────────────────────────────────────── */
.features {
  display: flex;
  gap: 6rem;
  padding: 7rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.features-left {
  flex: 0 0 340px;
  position: sticky;
  top: 7rem;
}

.section-title-left {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.section-title-left em { font-style: italic; color: var(--red); }

.features-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-outline-light {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.features-right { flex: 1; }

.feature-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: padding 0.2s;
}

.feature-row:first-child { border-top: 1px solid var(--border); }

.feature-row:hover { padding-left: 0.5rem; }

.feature-icon-wrap {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── EXAMPLES ─────────────────────────────────────────────────────────── */
.examples {
  padding: 7rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.examples-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 4rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.example-card:hover {
  border-color: rgba(200,75,47,0.3);
  transform: translateY(-4px);
}

.example-preview {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.example-phone {
  width: 160px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.ex-header {
  padding: 1rem 0.75rem 0.75rem;
  text-align: center;
}

.ex-logo-circle {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(200,75,47,0.3);
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.ex-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
}

.ex-addr {
  font-size: 8px;
  color: var(--text-3);
}

.ex-cats {
  display: flex;
  gap: 4px;
  padding: 6px;
  overflow: hidden;
}

.ex-cat {
  font-size: 8px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-3);
  white-space: nowrap;
}

.ex-items { padding: 4px 6px 8px; }

.ex-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 6px;
  margin-bottom: 3px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-size: 9px;
  color: var(--text-2);
}

.ex-item span:last-child {
  color: var(--red);
  font-weight: 600;
}

.example-info { padding: 1.5rem; }

.example-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.example-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.example-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.example-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.2s;
}
.example-link:hover { gap: 10px; }

/* ── CTA FINALE ─────────────────────────────────────────────────────── */
.cta-final {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(200,75,47,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 2.5rem;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.footer-logo span { color: var(--red); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
  width: 100%;
  text-align: center;
}

/* ── ANIMAZIONI ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links .nav-link { display: none; }
  .hero { flex-direction: column; padding: 6rem 1.5rem 3rem; gap: 3rem; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-scroll { display: none; }
  .phone-mockup { transform: none; }
  .numbers { flex-wrap: wrap; padding: 2rem 1.5rem; }
  .number-divider { display: none; }
  .number-item { flex: 0 0 50%; }
  .how { padding: 4rem 1.5rem; }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); padding: 0.5rem 0; }
  .features { flex-direction: column; padding: 4rem 1.5rem; gap: 3rem; }
  .features-left { position: static; flex: auto; }
  .examples { padding: 4rem 1.5rem; }
  .examples-grid { grid-template-columns: 1fr; max-width: 400px; }
  .cta-final { padding: 5rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

.nav.scrolled .nav-logo,
.nav.scrolled .nav-link,
.nav.scrolled .nav-cta {
  color: #f0ede8;
}

.nav.scrolled .nav-cta {
  border-color: rgba(255,255,255,0.2);
}

.nav.scrolled .nav-cta:hover {
  background: rgba(255,255,255,0.08);
}