:root {
  --ink: #070a12; --ink2: #0b1226; --card: #101626; --card2: #141c31; --line: #232d46; --line2: #33405f;
  --text: #e8ecf5; --muted: #9aa5bf; --accent: #7cc4ff; --accent-ink: #05121f; --warm: #ffc21a; --good: #5be38a;
  --radius: 16px; --max: 1040px;
  --g1: rgba(124,196,255,.35); --g2: rgba(160,110,255,.30); --g3: rgba(255,194,26,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.65; color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124,196,255,.07), transparent 60%), radial-gradient(900px 500px at 0% 40%, rgba(255,194,26,.04), transparent 60%), var(--ink);
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* one language at a time */
body[data-lang="it"] .en { display: none !important; }
body[data-lang="en"] .it { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,10,18,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.nav.scrolled { border-color: var(--line); background: rgba(7,10,18,.9); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); display: block; }
.brand .lab { color: var(--accent); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: .92rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); background: rgba(124,196,255,.1); text-decoration: none; }
.lang { display: flex; gap: 4px; }
.lang button { font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .1em; padding: 7px 12px; border-radius: 10px; cursor: pointer; background: rgba(7,10,18,.7); color: var(--text); border: 1px solid var(--line); }
.lang button:hover { border-color: var(--line2); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 640px) { .menu { display: none; } .lang { margin-left: auto; } }

/* home hero */
.hero-home { position: relative; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 56px 20px 90px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #1a2a52 0%, #0b1226 45%, transparent 80%); }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: 0; filter: blur(60px); opacity: .55; pointer-events: none;
  background: radial-gradient(40% 50% at 25% 40%, var(--g1), transparent 70%), radial-gradient(35% 45% at 70% 30%, var(--g2), transparent 70%), radial-gradient(30% 40% at 55% 70%, var(--g3), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .5; animation: tw 4s ease-in-out infinite; }
@keyframes tw { 0%,100% { opacity: .15; } 50% { opacity: .9; } }
.shoot { position: absolute; width: 220px; height: 3px; border-radius: 2px; z-index: 0; opacity: 0; background: linear-gradient(90deg, #fff, rgba(124,196,255,.4) 40%, transparent); filter: drop-shadow(0 0 6px rgba(160,210,255,.9)); transform: rotate(-28deg); animation: shoot 7s linear infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate3d(0,0,0) rotate(-28deg); } 3% { opacity: 1; } 16% { opacity: 0; transform: translate3d(-620px, 330px, 0) rotate(-28deg); } 100% { opacity: 0; } }
.hero-inner { position: relative; z-index: 1; max-width: 740px; }
.mark { display: block; width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 26px; border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(124,196,255,.07), 0 0 40px rgba(124,196,255,.25); animation: float 6s ease-in-out infinite; background: var(--ink2); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-home h1 { margin: 0; font-size: clamp(2.3rem, 9vw, 4.6rem); letter-spacing: .14em; text-transform: uppercase; font-weight: 800; background: linear-gradient(180deg, #fff 30%, #b9dcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-home h1 .lab { -webkit-text-stroke: 1.5px var(--accent); }
.tag { font-size: 1.15rem; margin: 18px auto 28px; color: var(--muted); max-width: 560px; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; box-shadow: 0 8px 28px rgba(124,196,255,.28); transition: transform .2s, box-shadow .2s; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124,196,255,.4); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.warm { background: var(--warm); color: #1b1300; box-shadow: 0 8px 28px rgba(255,194,26,.22); }
.hero-apps { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-apps a { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); transition: transform .2s, border-color .2s; display: block; }
.hero-apps a:hover { transform: translateY(-4px) scale(1.06); border-color: var(--accent); }
.hero-apps img { width: 100%; height: 100%; display: block; object-fit: cover; }
.scrollhint { position: absolute; bottom: 20px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 2px solid rgba(232,236,245,.35); border-radius: 12px; z-index: 1; }
.scrollhint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* sections */
main { display: block; }
section { max-width: var(--max); margin: 0 auto; padding: 60px 20px 8px; }
h2 { display: flex; align-items: center; gap: 14px; letter-spacing: .12em; text-transform: uppercase; font-size: 1.05rem; color: var(--accent); margin: 0 0 20px; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.lead { max-width: 740px; font-size: 1.08rem; margin: 0 0 14px; }
.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(124,196,255,.45); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.chip { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--warm); color: var(--warm); }
.chip.ok { border-color: var(--accent); color: var(--accent); }
.chip.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }

/* apps */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.featured:hover { transform: translateY(-3px); border-color: rgba(124,196,255,.45); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.featured .pic { min-height: 260px; background: linear-gradient(180deg, rgba(7,10,18,.1), rgba(7,10,18,.5)), url("img/cover1.jpg") center / cover no-repeat; transition: transform .6s; }
.featured:hover .pic { transform: scale(1.04); }
.featured .pic-wrap { overflow: hidden; }
.featured .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured h3 { margin: 0; font-size: 1.7rem; font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.featured h3 em { color: transparent; -webkit-text-stroke: 1px var(--warm); font-style: italic; }
.featured p { margin: 0; color: var(--muted); }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.app { display: flex; flex-direction: column; gap: 10px; }
.app h3 { font-size: 1.25rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.app h3 img { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line2); }
@media (max-width: 720px) { .featured { grid-template-columns: 1fr; } .featured .pic { min-height: 190px; } }

/* app pages */
.page-hero { max-width: var(--max); margin: 0 auto; padding: 44px 20px 8px; display: flex; gap: 28px; align-items: center; }
.page-hero img.icon { width: 136px; height: 136px; border-radius: 30px; border: 1px solid var(--line2); flex: none; background: var(--card); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.page-hero h1.brk { font-style: italic; }
.page-hero h1.brk .less { color: transparent; -webkit-text-stroke: 1.5px var(--warm); }
.page-hero p { margin: 0 0 16px; color: var(--muted); font-size: 1.1rem; max-width: 600px; }
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 640px) { .page-hero { flex-direction: column; text-align: center; } .page-hero .cta { justify-content: center; } }
.crumbs { max-width: var(--max); margin: 0 auto; padding: 18px 20px 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { margin: 0 8px; opacity: .5; }
.cover-band { max-width: var(--max); margin: 26px auto 0; padding: 0 20px; }
.cover-band div { height: min(44vw, 420px); border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(7,10,18,.05), rgba(7,10,18,.5)), url("img/cover1.jpg") center / cover no-repeat; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shots img { height: 420px; width: auto; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; flex: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.more-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.more-apps a { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--text); transition: border-color .2s, transform .2s; }
.more-apps a:hover { border-color: rgba(124,196,255,.5); transform: translateY(-2px); text-decoration: none; }
.more-apps img { width: 44px; height: 44px; border-radius: 11px; }
.more-apps small { display: block; color: var(--muted); }

/* legal documents */
.doc { max-width: 780px; margin: 0 auto; padding: 28px 20px 8px; }
.doc h1 { letter-spacing: .02em; margin: 8px 0 4px; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.doc h2 { margin: 2.2em 0 .6em; font-size: 1.05rem; }
.doc h3 { margin: 1.4em 0 .3em; font-size: 1rem; }
.doc li { margin: .35em 0; }
.doc .updated { color: var(--muted); margin: 0 0 18px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 6px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
.doc .note { background: rgba(255,194,26,.07); border: 1px solid rgba(255,194,26,.35); border-radius: 12px; padding: 12px 16px; margin: 18px 0; color: var(--text); }

/* contact */
.contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact .mail { font-size: 1.1rem; font-weight: 700; }
.copy { font: inherit; font-size: .8rem; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--accent); }

footer { max-width: var(--max); margin: 70px auto 0; padding: 30px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
footer .col { display: flex; flex-direction: column; gap: 4px; }
footer b { color: var(--text); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aurora, .shoot, .mark, .scrollhint::after, .sky i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media print { .nav, .scrollhint, .aurora, .sky, .shoot, .lang { display: none; } body { background: #fff; color: #000; } a { color: #000; } }

/* ---- v3: app tiles (whole tile clickable) ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tile:hover, .tile:focus-within { transform: translateY(-6px); border-color: rgba(124,196,255,.55); box-shadow: 0 20px 56px rgba(0,0,0,.55), 0 0 0 1px rgba(124,196,255,.1); }
.tile-art { position: relative; height: 188px; background-color: var(--ink2); background-size: cover; background-position: center top; overflow: hidden; }
.tile-art[style*="cover1"] { background-position: center; }
.tile-art::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .7s; }
.tile:hover .tile-art::before { transform: scale(1.06); }
.tile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,.05) 35%, var(--card) 100%); }
.tile-art .chip { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(7,10,18,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile-icon { position: absolute; left: 22px; top: 150px; width: 76px; height: 76px; border-radius: 19px; border: 3px solid var(--card); box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 3; background: var(--card); object-fit: cover; }
.tile-body { padding: 46px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile h3 { margin: 0; font-size: 1.3rem; letter-spacing: .02em; }
.tile h3 a { color: var(--text); }
.tile h3 a:hover { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile .go { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.tile .go i { display: inline-block; font-style: normal; transition: transform .25s; }
.tile:hover .go i { transform: translateX(5px); }
.tile .links { position: relative; z-index: 2; margin-top: 4px; }
.tile .links a { font-size: .88rem; }
.tile .sub { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---- v3: app pages in the style of the home ---- */
.hero-app { position: relative; overflow: hidden; padding: 56px 20px 78px; background: radial-gradient(ellipse at 50% 130%, #1a2a52 0%, #0b1226 45%, transparent 80%); }
.hero-app-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: flex; gap: 40px; align-items: center; }
.hero-app .icon { flex: none; width: 176px; height: 176px; border-radius: 40px; border: 2px solid var(--accent); box-shadow: 0 0 0 7px rgba(124,196,255,.07), 0 0 50px rgba(124,196,255,.22); animation: float 6s ease-in-out infinite; background: var(--ink2); object-fit: cover; }
.hero-app h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 7vw, 3.8rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.08; font-weight: 800; background: linear-gradient(180deg, #fff 30%, #b9dcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-app h1.brk { font-style: italic; }
.hero-app h1 .less { -webkit-text-stroke: 1.5px var(--warm); }
.hero-app .tagline { margin: 0 0 20px; color: var(--muted); font-size: 1.15rem; max-width: 560px; }
.hero-app .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body[data-app="brakeless"] { --g1: rgba(230,40,55,.38); --g2: rgba(255,194,26,.28); --g3: rgba(124,196,255,.14); }
body[data-app="data-crawler"] { --g1: rgba(50,60,255,.42); --g2: rgba(225,35,45,.30); --g3: rgba(124,196,255,.16); }
body[data-app="meower"] { --g1: rgba(235,240,255,.22); --g2: rgba(124,196,255,.26); --g3: rgba(160,110,255,.16); }
@media (max-width: 700px) { .hero-app-in { flex-direction: column; text-align: center; } .hero-app .tagline { margin-left: auto; margin-right: auto; } .hero-app .cta { justify-content: center; } .hero-app .icon { width: 140px; height: 140px; border-radius: 32px; } }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.panel h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .95rem; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
.phone { flex: none; width: 214px; padding: 7px; border-radius: 32px; background: #000; border: 3px solid #1c2640; box-shadow: 0 16px 44px rgba(0,0,0,.5); scroll-snap-align: start; transition: transform .25s, border-color .25s; cursor: zoom-in; }
.phone:hover { transform: translateY(-5px); border-color: var(--accent); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.phone.land { width: min(440px, 80vw); border-radius: 22px; padding: 6px; }
.phone.land img { border-radius: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(4,6,12,.92); padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: 0 20px 80px rgba(0,0,0,.7); }

.band { margin: 56px auto 0; max-width: var(--max); padding: 0 20px; }
.band > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(120deg, rgba(124,196,255,.12), rgba(160,110,255,.1)), var(--card); }
.band h3 { margin: 0 0 4px; font-size: 1.25rem; }
.band p { margin: 0; color: var(--muted); }
