/* ═══════════════════════════════════════════════════════════════════════
   ioTipster Pro — Landing Statica
   Palette replicata da lib/theme/app_theme.dart (AppColors)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg0: #0A0A0F;
  --bg1: #111118;
  --bg2: #1A1A24;
  --bg3: #222230;

  /* Accents */
  --accent-primary:   #6C63FF;
  --accent-primary-2: #9B5CFF;
  --accent-secondary: #00D4AA;
  --accent-gold:      #FFB547;
  --accent-red:       #FF4D6D;
  --accent-pink:      #FF6B9D;

  /* Text */
  --text-primary:   #F0EFF8;
  --text-secondary: #8886A8;
  --text-muted:     #4A4A65;

  /* Borders */
  --border:        #252535;
  --border-accent: #3D3A5C;

  /* Spacing helpers */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --max-width: 1200px;
  --pad-x: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  border: 0.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-2));
  color: white;
  font-weight: 700;
}
.btn-secondary {
  background: var(--bg2);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 14px;
  border-radius: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════ */

.navbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px var(--pad-x) 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 90px; height: auto; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-flag {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  font-size: 16px;
  transition: background 0.2s;
}
.lang-flag:hover { background: var(--bg2); }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(108, 99, 255, 0.1);
  border: 0.5px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Carosello segnali ─────────────────────────────────────────────────
   Layout COMPATTO a 2 righe:
   - Riga 1: dots
   - Riga 2: testi a sinistra (league + match + market) | quota a destra
   Overlay glass leggero. Banner molto più basso.
   ─────────────────────────────────────────────────────────────────────── */

.hero-visual {
  background: var(--bg1);
  border: 0.5px solid var(--border-accent);
  border-radius: var(--radius-xl);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* ─── COVER (immagine a tutto schermo) ──────────────────────────────── */
.signal-cover {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  overflow: hidden;
  z-index: 0;
}

.signal-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
}
.signal-cover-img.visible {
  opacity: 1;
}

/* Placeholder gradient brand */
.signal-cover-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(108, 99, 255, 0.45) 0%,
    rgba(155, 92, 255, 0.35) 50%,
    rgba(0, 212, 170, 0.30) 100%
  );
}
.signal-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.5), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 170, 0.4), transparent 50%);
  opacity: 0.7;
  animation: placeholderShimmer 6s ease-in-out infinite alternate;
}
@keyframes placeholderShimmer {
  0%   { transform: scale(1)   translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 2%); }
}

.signal-emoji-big { display: none; }

.signal-cover.has-image .signal-cover-placeholder { display: none; }

/* ─── SHIMMER overlay durante caricamento immagine cover ────────────── */
.signal-cover.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 65%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  animation: coverShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes coverShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Overlay top: LIVE pill a sx, emoji sport piccola a dx */
.signal-cover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 10, 15, 0.4) 0%,
    rgba(10, 10, 15, 0) 100%
  );
}
.signal-cover-overlay .live-pill { pointer-events: auto; }

.signal-emoji {
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* ─── LIVE PILL ─────────────────────────────────────────────────────── */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 77, 109, 0.95);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.35);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── BODY (overlay in basso) — COMPATTO a 2 righe ─────────────────── */
.signal-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg,
     rgba(17, 17, 24, 0.10) 0%,
     rgba(17, 17, 24, 0.55) 60%,
     rgba(17, 17, 24, 0.75) 100%
   );
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.signal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.dots {
  display: flex;
  gap: 4px;
  flex: 1;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}
.dot.active {
  width: 16px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.6);
}

/* Riga inferiore: testi a sx, quota a dx */
.signal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.signal-content.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

/* Colonna sinistra: testi impilati e compatti */
.signal-content > .signal-league,
.signal-content > .signal-match,
.signal-content > .signal-market {
  display: block;
}

/* Wrapper testi (sinistra) — usiamo flex-flow per impilare league/match/market */
.signal-content {
  flex-wrap: nowrap;
}
.signal-league,
.signal-match,
.signal-market {
  flex: 0 0 auto;
}

/* Trick: avvolgo i 3 testi dentro a un blocco con max-width tramite ::before?
   In realtà li lascio sequenziali; per impilarli correttamente li wrappo via display:flex column
   sul primo elemento. Soluzione semplice: uso un grid sul signal-content. */
.signal-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "league chip"
    "match  chip"
    "market chip";
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
}
.signal-league { grid-area: league; }
.signal-match  { grid-area: match;  }
.signal-market { grid-area: market; }
.signal-chips  { grid-area: chip; }

.signal-league {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.signal-match {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.signal-market {
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 239, 248, 0.88);
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Chip quota a destra, allineato verticalmente al centro dei 3 testi */
.signal-chips {
  display: flex;
  align-items: center;
}
.chip {
  background: rgba(10, 10, 15, 0.55);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 72px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.chip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(240, 239, 248, 0.7);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.chip-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-secondary);
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 212, 170, 0.3);
}
.chip-val.muted { color: var(--text-secondary); }
.chip-val.gold  { color: var(--accent-gold); }

/* ═══════════════════════════════════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════════════════════════════════ */

.trust-strip {
  text-align: center;
  padding: 32px var(--pad-x);
}
.trust-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.trust-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.trust-stat span {
  font-size: 11px;
  color: var(--text-secondary);
}
.trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════════════════════════════ */

section { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 12px;
}
.section-eyebrow.primary   { color: var(--accent-primary); }
.section-eyebrow.secondary { color: var(--accent-secondary); }
.section-eyebrow.gold      { color: var(--accent-gold); }

h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════════════ */

.features { padding: 60px var(--pad-x); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg1);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════ */

.howitworks {
  background: var(--bg1);
  max-width: 100%;
  padding: 60px var(--pad-x);
}
.howitworks > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.howitworks h2 { font-size: 32px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.step-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.step-num {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   BIG STATS
   ═══════════════════════════════════════════════════════════════════════ */

.big-stats { padding: 48px var(--pad-x); }
.big-stats-inner {
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,212,170,0.05));
  border: 0.5px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.big-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.big-stat strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.big-stat span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════ */

.pricing {
  background: var(--bg1);
  max-width: 100%;
  padding: 60px var(--pad-x);
}
.pricing > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.pricing h2 { font-size: 32px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.popular {
  border: 1px solid var(--accent-primary);
  background: linear-gradient(180deg, rgba(108,99,255,0.05), var(--bg2));
}
.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-2));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 12px;
}
.pricing-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.price-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.price-period {
  font-size: 13px;
  color: var(--text-secondary);
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0 6px 22px;
  position: relative;
}
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════ */

.faq { padding: 60px var(--pad-x); }
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  background: var(--bg1);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent-primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--bg2); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════════ */

.final-cta {
  text-align: center;
  padding: 80px 24px;
}
.final-cta h2 {
  font-size: 36px;
  letter-spacing: -1.5px;
}
.final-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 12px 0 32px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.footer {
  border-top: 0.5px solid var(--border);
  padding: 24px var(--pad-x);
  max-width: 100%;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-disclaimer {
  max-width: var(--max-width);
  margin: 16px auto 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════
   MODAL (EN waitlist)
   ═══════════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
}
.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.modal input {
  background: var(--bg3);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
}
.modal input:focus {
  outline: 1px solid var(--accent-primary);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  font-size: 22px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg3); color: var(--text-primary); }
.modal-confirm {
  margin-top: 14px;
  color: var(--accent-secondary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO TRUST ROW (mini badges sotto hero subtitle)
   ═══════════════════════════════════════════════════════════════════════ */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-top: 24px;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.hero-trust li:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.hero-trust-icon {
  font-size: 16px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   AI ENGINE SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.ai-engine {
  padding: 80px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.ai-engine::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(108,99,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,212,170,0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.ai-engine > * { position: relative; z-index: 1; }
.ai-engine h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-engine .section-sub {
  max-width: 720px;
  margin: 0 auto 48px;
}

.ai-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 56px;
  flex-wrap: wrap;
}
.ai-step {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ai-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.25s;
}
.ai-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 32px rgba(108,99,255,0.12);
}
.ai-step:hover::before { opacity: 1; }
.ai-step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.ai-step-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
}
.ai-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.ai-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.ai-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-primary);
  font-size: 24px;
  font-weight: 700;
  user-select: none;
  opacity: 0.6;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,212,170,0.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
}
.ai-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ai-metric strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ai-metric span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   LANGUAGES SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.languages {
  padding: 80px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.languages h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.languages .section-sub {
  max-width: 680px;
  margin: 0 auto 48px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.lang-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  background: var(--bg2);
}
.lang-card-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 6px;
}
.lang-card-flag svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-card strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.lang-card-tag {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL CTA NOTE (sotto bottone CTA finale)
   ═══════════════════════════════════════════════════════════════════════ */
.final-cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 50px 24px;
    gap: 32px;
  }
  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 15px; }

  .nav-links { display: none; }

  h2 { font-size: 26px; }

  .features, .pricing, .faq, .howitworks { padding-left: 24px; padding-right: 24px; }
  .ai-engine, .languages { padding-left: 24px; padding-right: 24px; }
  .ai-engine h2, .languages h2 { font-size: 28px; }
  .ai-pipeline { gap: 8px; }
  .ai-arrow { display: none; }
  .ai-step { flex: 1 1 calc(50% - 8px); max-width: none; }
  .ai-metrics { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; }
  .ai-metric strong { font-size: 26px; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .navbar { padding: 20px 20px 12px; }
  .brand-name { display: none; }
  .nav-actions .btn-ghost { display: none; }

  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 30px; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .hero-visual { min-height: 360px; }
  .signal-body { padding: 9px 14px 11px; }
  .signal-match { font-size: 16px; }
  .signal-market { font-size: 11px; }
  .chip { min-width: 62px; padding: 6px 11px; }
  .chip-val { font-size: 16px; }

  .trust-stats { gap: 12px; }
  .trust-dot { display: none; }

  .big-stats-inner { padding: 24px 20px; }
  .big-stat strong { font-size: 26px; }

  .final-cta h2 { font-size: 28px; }

  .ai-engine, .languages { padding-top: 56px; padding-bottom: 56px; }
  .ai-engine h2, .languages h2 { font-size: 24px; }
  .ai-step { flex: 1 1 100%; padding: 20px 16px; }
  .ai-metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px 16px; }
  .ai-metric strong { font-size: 22px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lang-card { padding: 18px 12px; }
  .hero-trust { gap: 10px; }
  .hero-trust li { padding: 7px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 999;
  background: var(--bg2);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 18px 22px;
  max-width: 720px;
  margin: 0 auto;
  animation: cookieSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideIn {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner { display: flex; align-items: center; gap: 20px; }
.cookie-text strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.cookie-text a { color: var(--accent-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
}

/* FOOTER TELEGRAM LINK */
.footer-tg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(34, 158, 217, 0.1);
  border: 0.5px solid rgba(34, 158, 217, 0.3);
  border-radius: 8px;
  color: #229ED9 !important;
  font-weight: 600;
  transition: background 0.15s;
}
.footer-tg:hover { background: rgba(34, 158, 217, 0.2); color: #229ED9 !important; }
.tg-icon { display: inline-block; flex-shrink: 0; vertical-align: -2px; }

/* LANG FLAG button con SVG */
.lang-flag {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  background: var(--bg1);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0; overflow: hidden;
}
.lang-flag svg { border-radius: 3px; display: block; }
.lang-flag:hover {
  background: var(--bg2);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

/* FEATURES 2 COLONNE */
.features-grid.features-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .features-grid.features-2col { grid-template-columns: 1fr; }
}

/* FAQ — padding-top per la risposta espansa */
.faq-item p {
  padding: 14px 22px 20px !important;
  margin-top: 4px;
  border-top: 0.5px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacy.html, terms.html)
   ═══════════════════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 28px 100px;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  margin-bottom: 32px;
  padding: 8px 14px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}
.legal-back:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.05);
}
.legal-hero { margin-bottom: 48px; padding-bottom: 28px; border-bottom: 0.5px solid var(--border); }
.legal-page h1 {
  font-size: 42px; font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.15; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-page .legal-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg2); padding: 6px 12px; border-radius: 20px;
  border: 0.5px solid var(--border);
}
.legal-page .legal-meta::before { content: '🕒'; font-size: 11px; }
.legal-intro { font-size: 16px; line-height: 1.75; color: var(--text-secondary); margin-top: 20px; }
.legal-intro strong { color: var(--text-primary); font-weight: 600; }
.legal-page section { margin: 0 0 40px; scroll-margin-top: 80px; }
.legal-page h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  text-align: left; margin: 0 0 20px;
  color: var(--text-primary);
  padding-bottom: 12px; border-bottom: 0.5px solid var(--border);
}
.legal-page h2 .num {
  font-size: 14px; font-weight: 600;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  padding: 4px 10px; border-radius: 8px; letter-spacing: 0.5px;
}
.legal-page h3 {
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
  margin: 24px 0 10px; color: var(--text-primary);
}
.legal-page p { font-size: 14.5px; line-height: 1.8; color: var(--text-secondary); margin: 0 0 14px; }
.legal-page strong { color: var(--text-primary); font-weight: 600; }
.legal-page a {
  color: var(--accent-primary); text-decoration: none;
  border-bottom: 1px solid rgba(108, 99, 255, 0.4);
}
.legal-page a:hover { border-bottom-color: var(--accent-primary); }
.legal-page ul, .legal-page ol { list-style: none; padding: 0; margin: 0 0 16px; }
.legal-page ul li, .legal-page ol li {
  position: relative; padding: 10px 0 10px 28px;
  font-size: 14.5px; line-height: 1.7; color: var(--text-secondary);
  border-bottom: 0.5px solid rgba(37, 37, 53, 0.5);
}
.legal-page ul li:last-child, .legal-page ol li:last-child { border-bottom: none; }
.legal-page ul li::before {
  content: ''; position: absolute; left: 10px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}
.legal-page ol { counter-reset: legal-list; }
.legal-page ol li { counter-increment: legal-list; }
.legal-page ol li::before {
  content: counter(legal-list); position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(108, 99, 255, 0.12); color: var(--accent-primary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.legal-box {
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
  border: 0.5px solid var(--border); border-radius: 16px;
  padding: 20px 24px; margin: 24px 0;
  position: relative; overflow: hidden;
}
.legal-box::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-primary-2));
}
.legal-box p { margin: 0; color: var(--text-primary); font-size: 14px; line-height: 1.7; }
.legal-box.warning {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.05) 0%, rgba(255, 181, 71, 0.02) 100%);
  border-color: rgba(255, 181, 71, 0.25);
}
.legal-box.warning::before { background: var(--accent-gold); }
.legal-box.warning p { color: #FFD68C; }
.legal-box.warning strong { color: var(--accent-gold); }
.legal-box.contact {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.08) 0%, rgba(34, 158, 217, 0.02) 100%);
  border-color: rgba(34, 158, 217, 0.3);
  text-align: center; padding: 28px 24px;
}
.legal-box.contact::before { background: #229ED9; }
.legal-box.contact p { font-size: 16px; color: var(--text-primary); }
.legal-box.contact a {
  color: #229ED9; font-weight: 600;
  border-bottom-color: rgba(34, 158, 217, 0.4);
}
.legal-box.contact a:hover { border-bottom-color: #229ED9; }

.legal-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 20px 0 16px;
}
.legal-plan {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; text-align: center;
}
.legal-plan .name {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px;
}
.legal-plan .price {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text-primary); margin-bottom: 4px;
}
.legal-plan .desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.legal-plan.free  .price { color: var(--text-secondary); }
.legal-plan.basic .name  { color: var(--accent-secondary); }
.legal-plan.prem  .name  { color: var(--accent-primary); }
.legal-plan.vip   .name  { color: var(--accent-gold); }

.legal-footnote {
  margin-top: 56px; padding-top: 28px;
  border-top: 0.5px solid var(--border);
  text-align: center; font-size: 13px;
  color: var(--text-muted); font-style: italic; line-height: 1.7;
}

@media (max-width: 600px) {
  .legal-page { padding: 24px 18px 80px; }
  .legal-page h1 { font-size: 30px; letter-spacing: -1px; }
  .legal-page h2 { font-size: 18px; }
  .legal-page h2 .num { font-size: 12px; padding: 3px 8px; }
  .legal-intro { font-size: 15px; }
  .legal-box { padding: 16px 18px; }
  .legal-box.contact { padding: 22px 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LANG DROPDOWN — selettore lingue nella navbar
   ═══════════════════════════════════════════════════════════════════════ */

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 100;
  animation: langSlideIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-menu[hidden] { display: none; }

@keyframes langSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-item:hover {
  background: var(--bg3);
}
.lang-item.active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}
.lang-item.active::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
}

.lang-flag-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-flag-icon svg {
  border-radius: 2px;
  display: block;
}
.lang-name {
  font-size: 13px;
}

/* Su mobile, il menu prende un po' più di spazio */
@media (max-width: 600px) {
  .lang-menu {
    min-width: 200px;
    right: -8px;
  }
}