  :root {
  --navy: #14304f; --navy-deep: #0b1a2b; --teal: #19b5c8; --teal-2: #1597aa;
  --bg: #f5fafc; --panel: #ffffff; --border: #d6e3ea; --text: #15222f; --muted: #5d6f7f;
  --soft: #e3f3f7;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b141e; --panel: #122030; --border: #22364a; --text: #e4edf3; --muted: #93a7b8; --soft: #12293a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 26, 43, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 34px; height: 34px; }
nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
nav ul a { color: #c5dbe5; text-decoration: none; font-size: 14px; font-weight: 500; }
nav ul a:hover { color: #fff; }
@media (max-width: 720px) { nav ul { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; color: #eef6f9; background: radial-gradient(1200px 500px at 70% -10%, rgba(25,181,200,0.35), transparent 60%), linear-gradient(160deg, #0b1a2b 0%, #14304f 55%, #1a5670 100%); padding: 80px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.hero-logo { width: 112px; height: 112px; filter: drop-shadow(0 10px 30px rgba(25,181,200,0.35)); }
.eyebrow { display: inline-block; margin-top: 18px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: 1px; color: #8fe3ee; border: 1px solid rgba(143,227,238,0.35); border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 18px 0 14px; font-weight: 800; letter-spacing: -1.5px; }
h1 span { background: linear-gradient(90deg, #5fe0ef, #19b5c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: #bcd3de; max-width: 680px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 11px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #04202a; box-shadow: 0 8px 26px rgba(25,181,200,0.35); }
.btn-primary:hover { background: #3ccbdc; }
.btn-ghost { color: #e6f2f6; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn svg { width: 18px; height: 18px; }
.meta { margin-top: 14px; font-size: 13px; color: #8fb0c0; }
.shot { margin: 56px auto 0; max-width: 1000px; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); border-bottom: none; box-shadow: 0 -10px 60px rgba(0,0,0,0.4); }
.shot img { display: block; width: 100%; height: auto; }

/* sections */
section { padding: 86px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; letter-spacing: -0.8px; line-height: 1.15; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.kicker { font-family: "JetBrains Mono", monospace; color: var(--teal-2); font-size: 13px; letter-spacing: 1px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .step .n { background: var(--teal); color: #04202a; } }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: border-color 0.15s, transform 0.15s; }
.feat:hover { border-color: var(--teal); transform: translateY(-2px); }
.feat .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--teal-2); margin-bottom: 14px; }
.feat .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

.alt { background: var(--soft); }
.providers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }

.phr { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.phr h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 8px 0 12px; letter-spacing: -0.6px; line-height: 1.15; }
.phr p { color: var(--muted); font-size: 16.5px; }
.demo { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; font-size: 14px; box-shadow: 0 10px 40px rgba(20,48,79,0.08); }
.demo-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.box { width: 17px; height: 17px; border-radius: 4px; border: 2px solid var(--border); }
.box.on { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--panel); }
.seg { font-size: 11.5px; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; display: inline-flex; }
.seg b, .seg i { padding: 3px 8px; font-style: normal; font-weight: 600; }
.seg b { background: var(--teal); color: #04202a; }
.seg i { color: var(--muted); font-weight: 500; }
.off { color: var(--muted); }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dl.rec { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,181,200,0.15); }
.dl .os { display: flex; align-items: center; gap: 12px; }
.dl .os svg { width: 34px; height: 34px; fill: currentColor; }
.dl h3 { margin: 0; font-size: 21px; }
.dl .sub { color: var(--muted); font-size: 14px; margin: 0; }
.dl .btn { justify-content: center; margin-top: 6px; }
.dl .note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.help { margin-top: 28px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.help > * { min-width: 0; }
.help-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.help-card h3 { margin: 0 0 6px; font-size: 20px; }
.help-card p, .help-card li { color: var(--muted); font-size: 15px; }
.help-card ol { padding-left: 20px; margin: 10px 0 14px; }
.help-card li { margin-bottom: 6px; }
.help-card b { color: var(--text); }
.help-card img { width: 100%; border-radius: 10px; border: 1px solid var(--border); margin: 6px 0 14px; display: block; }
.help-card pre { background: var(--navy-deep); color: #e6f4f8; border-radius: 10px; padding: 12px 14px; font: 13px/1.5 "JetBrains Mono", monospace; white-space: pre-wrap; word-break: break-all; margin: 8px 0 12px; }
.help-card .btn { margin-top: 8px; }
.manual-card { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border: none; }
.manual-card h3 { color: #fff; }
.manual-card p, .manual-card li { color: #c6d8e6; }
.manual-card ul { padding-left: 20px; margin: 10px 0 18px; }
.manual-card .btn { margin-top: auto; align-self: flex-start; }
.manual-cover { display: block; width: 62%; max-width: 260px; margin: 4px auto 22px; transform: rotate(-2deg); }
.manual-cover img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.dl code { font-family: "JetBrains Mono", monospace; font-size: 12px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.badge-rec { display: none; font-size: 11px; font-weight: 700; color: var(--teal-2); letter-spacing: 0.5px; text-transform: uppercase; }
.dl.rec .badge-rec { display: inline; }

.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy div { padding: 4px 0; }
.privacy h3 { margin: 0 0 6px; font-size: 17px; }
.privacy p { margin: 0; color: var(--muted); }

footer { background: var(--navy-deep); color: #8fa9b8; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { font-size: 16px; }
footer .brand img { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .steps, .features, .downloads, .privacy, .help { grid-template-columns: 1fr; }
  .help-card { padding: 22px 18px; }
  .phr { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ---- 2.1: lingue, contatori, file XML, RTL ---- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: #c5dbe5; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 6px 10px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.lang-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 6px; margin: 0; list-style: none; min-width: 170px; box-shadow: 0 14px 40px rgba(0,0,0,0.25); display: block; }
.lang-menu ul a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.lang-menu ul a:hover { background: var(--soft); }
.lang-menu ul a[aria-current] { font-weight: 700; color: var(--teal-2); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.dl-count { font-size: 12.5px; color: var(--muted); margin: -4px 0 0; }
.dl-count[hidden] { display: none; }
.manual-langs, .xml-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 16px; }
.manual-lang { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 14px; }
.manual-lang:hover { background: rgba(255,255,255,0.14); }
.manual-lang span { color: #9fc0d0; font-size: 12px; white-space: nowrap; }
.xml-lang { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; background: var(--panel); border: 1px solid var(--border); font-size: 14.5px; }
.xml-lang:hover { border-color: var(--teal); }
.xml-lang span { color: var(--muted); font-size: 12px; font-family: "JetBrains Mono", monospace; white-space: nowrap; }
.xml-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.xml-grid h3 { margin: 0 0 8px; font-size: 19px; }
.xml-grid p, .xml-grid li { color: var(--muted); font-size: 15.5px; }
.xml-grid ol { padding-inline-start: 20px; }
.xml-grid pre { background: var(--navy-deep); color: #e6f4f8; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.6 "JetBrains Mono", monospace; overflow-x: auto; direction: ltr; text-align: left; }
.xml-langs { grid-template-columns: repeat(4, 1fr); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news .feat { border-color: var(--teal); }
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, Inter, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] .sec-head h2 { letter-spacing: 0; }
[dir="rtl"] .help-card ol, [dir="rtl"] .manual-card ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .help-card pre, [dir="rtl"] code { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .manual-cover { transform: rotate(2deg); }
@media (max-width: 900px) { .news, .xml-grid { grid-template-columns: 1fr; } .xml-langs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .nav-right { gap: 0; } }
