/* TgFlow — site styles */
:root {
  --bg: #0c0a10;
  --bg-2: #141019;
  --bg-3: #1c1626;
  --card: #17121f;
  --border: #2a2235;
  --text: #f4f1f7;
  --muted: #a99fb5;
  --magenta: #ff2f9f;
  --magenta-2: #b026ff;
  --glow: rgba(255, 47, 159, 0.35);
  --radius: 16px;
  --maxw: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background glow ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px circle at 78% -10%, rgba(176, 38, 255, 0.18), transparent 60%),
    radial-gradient(600px circle at 12% 8%, rgba(255, 47, 159, 0.16), transparent 55%);
  pointer-events: none;
}

/* ---------- Navbar ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  display: grid; place-items: center;
  box-shadow: 0 0 22px var(--glow);
  font-weight: 800; font-size: 17px; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  color: #fff;
  box-shadow: 0 8px 30px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px var(--glow); }
.btn-ghost { background: var(--bg-3); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); border-color: var(--magenta); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 70px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--magenta), var(--magenta-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--muted); max-width: 640px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Section ---------- */
section.block { padding: 70px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--magenta); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--magenta); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,47,159,.18), rgba(176,38,255,.18));
  border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; box-shadow: 0 0 18px var(--glow);
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(255,47,159,.12), rgba(176,38,255,.12));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.price {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
}
.price.popular { border-color: var(--magenta); box-shadow: 0 0 40px rgba(255,47,159,.12); position: relative; }
.price.popular::before {
  content: 'Più scelto'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2)); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}
.price h3 { font-size: 19px; margin-bottom: 6px; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 4px; }
.price .amount span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price .per { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price ul { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 11px; }
.price li { font-size: 15px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: '✓'; color: var(--magenta); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- Download page ---------- */
.dl-hero { padding: 70px 0 30px; text-align: center; }
.dl-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 40px; text-align: center;
}
.dl-card .platform { font-size: 48px; margin-bottom: 14px; }
.dl-card h3 { font-size: 22px; margin-bottom: 6px; }
.dl-card .ver { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.dl-meta { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.dl-meta div { text-align: center; }
.dl-meta .k { font-size: 13px; color: var(--muted); }
.dl-meta .v { font-weight: 600; font-size: 15px; }
.req-list { max-width: 560px; margin: 36px auto 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.req-list h4 { margin-bottom: 14px; font-size: 16px; }
.req-list ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.req-list li { color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.req-list li::before { content: '→'; color: var(--magenta); }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; max-width: 780px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--magenta); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 36px;
  margin-top: 40px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text); font-size: 15px; margin-bottom: 10px; opacity: .85; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--magenta); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted); font-size: 14px; }
.footer-bottom .pay { display: flex; align-items: center; gap: 10px; }
.footer-bottom .pay span { font-size: 13px; }
.chip { background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
