/* brOS landing · nero, linee sottili, nessun framework */
/* Geist (Vercel), licenza SIL OFL 1.1: file ridotti al latino in fonts/ */
@font-face { font-family: "Geist"; src: url("fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Pixel"; src: url("fonts/GeistPixel.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --panel-2: #111113;
  --line: #1f1f22;
  --line-2: #2c2c30;
  --text: #ededed;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #ff7a1a;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "Geist Pixel", "Geist Mono", ui-monospace, monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: #ff7a1a; color: #000; }
img { max-width: 100%; display: block; }

/* Lingua: mostra solo quella attiva */
html[data-lang="it"] [lang="en"], html[data-lang="en"] [lang="it"] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Navigazione */
.nav {
  position: sticky; top: 0; z-index: 20; height: 56px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { text-decoration: none; font: 400 22px/1 var(--pixel); letter-spacing: 0; }
.logo b { font-weight: 400; color: #fff; }
/* Link di ritorno: visibile solo quando la pagina è dentro il portfolio (iframe) */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px;
  padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 8px; border-right: 0; }
.back[hidden] { display: none; }
.back:hover { color: var(--text); background: #111113; }
.back:not([hidden]) + .logo { padding-left: 14px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.lang { cursor: pointer; display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang button {
  font: 500 12px var(--font); letter-spacing: .04em; padding: 5px 10px;
  background: none; color: var(--muted); border: 0; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: #000; }

/* Hero */
.hero { position: relative; }
.hero-stage { position: relative; overflow: hidden; padding: 96px 0 0; }
#shader {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; opacity: .9;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
  mask-image: linear-gradient(#000 55%, transparent 96%);
}
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 40%, rgba(0,0,0,.92), rgba(0,0,0,.45) 60%, transparent 85%);
}
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; gap: 8px; align-items: center; text-decoration: none;
  font-size: 13px; color: var(--muted); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10,10,10,.7);
  transition: color .15s, border-color .15s;
}
.pill:hover { color: var(--text); border-color: var(--accent); }
.pill i { font-style: normal; color: var(--dim); }
h1 {
  margin: 28px 0 0; font-weight: 650; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(40px, 7.4vw, 88px);
  color: #fff;
}
.lead { margin: 24px 0 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 19px); color: #c4c4c9; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 500 15px var(--font); padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn.primary { background: var(--text); color: #000; }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-2); background: rgba(10,10,10,.6); }
.btn.ghost:hover { border-color: #55555a; }
.btn:focus-visible, .nav a:focus-visible, .lang button:focus-visible, .pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.meta { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
.hero-shot { position: relative; margin-top: 64px; }
.hero-shot .win-body { aspect-ratio: 2240 / 1480; }

/* Finestra / screenshot */
.shot { margin: 0; }
.win { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 30px 80px -20px rgba(0,0,0,.9), 0 0 100px -30px rgba(255,122,26,.22); }
.win-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0d0d0e; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.win-body { position: relative; aspect-ratio: 16 / 10; background: #0b0b0c; overflow: hidden; }
.small .win-body { aspect-ratio: 4 / 3; }
.win-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.win-body > img.on { opacity: 1; }
.win-body > canvas.px { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ph { position: absolute; right: 12px; bottom: 10px; font: 11px var(--mono); color: var(--dim); }
.shot.has-img .mock, .shot.has-img .ph, .shot.has-img .win-bar { display: none; }
.shot.has-img .win { border-radius: 12px; }
.shot.has-img .win-body { aspect-ratio: auto; }
.shot.has-img .win-body > img { position: static; height: auto; display: block; }

/* Segnaposto animati (schemi, non screenshot) */
.mock { position: absolute; inset: 0; padding: 18px; color: var(--muted); font-size: 12px; }
.mock-ws { display: grid; grid-template-columns: 30% 1fr; gap: 16px; }
.ws-tree { border-right: 1px solid var(--line); padding-right: 14px; display: flex; flex-direction: column; gap: 4px; }
.t { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.t.sel { background: #17171a; color: var(--text); }
.t.sub { margin-left: 18px; }
.t b { width: 11px; height: 11px; border-radius: 3px; background: #2e2e33; flex: none; }
.t b.f { background: #4a4a50; }
.t em { margin-left: auto; font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.ws-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 12px; align-content: start; }
.ws-grid.one { grid-template-columns: repeat(2, 1fr); }
.ws-grid.one .tile { aspect-ratio: 16 / 11; }
.tile { aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(160deg, #141416, #0e0e10); }
.tile.new { animation: arrive 5.5s ease-in-out infinite; }
@keyframes arrive {
  0%, 12% { opacity: 0; transform: translate(-60px, 0) scale(.92); border-color: var(--line); }
  26% { opacity: 1; transform: none; border-color: var(--accent); box-shadow: 0 0 24px -6px rgba(255,255,255,.3); }
  50%, 100% { opacity: 1; transform: none; border-color: var(--line); box-shadow: none; }
}
.mock-rows { display: flex; flex-direction: column; gap: 8px; padding-top: 26px; }
.r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #0e0e10; transition: all .3s; }
.r b { width: 14px; height: 14px; border-radius: 4px; background: #2e2e33; flex: none; }
.r s { height: 7px; width: 34%; border-radius: 4px; background: #232327; }
.r u { height: 18px; border-radius: 999px; background: #1a1a1e; margin-left: auto; width: 56px; }
.r u + u { margin-left: 0; }
.r u.c1 { background: #1e1e21; } .r u.c2 { background: #252528; } .r u.c3 { width: 40px; background: #1a1a1d; }
.r.pick { animation: pick 6s ease-in-out infinite; }
.r.pick:nth-of-type(3) { animation-delay: .35s; } .r.pick:nth-of-type(4) { animation-delay: .7s; }
@keyframes pick {
  0%, 10% { border-color: var(--line); background: #0e0e10; }
  22%, 70% { border-color: var(--accent); background: #161618; }
  90%, 100% { border-color: var(--line); background: #0e0e10; }
}
.folder-pop { position: absolute; right: 22px; bottom: 20px; width: 92px; height: 66px; border-radius: 10px; border: 1px solid #4a4a50; background: #1b1b1e;
  animation: pop 6s ease-in-out infinite; }
@keyframes pop { 0%, 55% { opacity: 0; transform: translateY(16px) scale(.9); } 70%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mock-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start; padding-top: 22px; }
.mock-icons i { aspect-ratio: 1; border-radius: 12px; background: #151518; border: 1px solid var(--line); }
.mock-icons i:nth-child(3) { animation: glow 4s ease-in-out infinite; }
.mock-list { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.mock-list i { height: 26px; border-radius: 6px; background: #121215; border: 1px solid var(--line); }
.mock-list i:nth-child(2) { animation: glow 4s ease-in-out infinite .5s; }
.mock-snaps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; padding-top: 22px; }
.mock-snaps i { aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(150deg, #1a1b20, #0e0e10); }
.mock-snaps i:nth-child(4) { animation: glow 4s ease-in-out infinite 1s; }
@keyframes glow { 0%, 100% { border-color: var(--line); } 50% { border-color: var(--accent); } }
.mock-keep { padding-top: 22px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { display: inline-flex; gap: 14px; align-items: center; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #121215; color: var(--text); animation: tabclose 6s ease-in-out infinite; transform-origin: left; }
.tab x { color: var(--dim); }
@keyframes tabclose { 0%, 45% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; transform: scale(.7); width: 0; padding: 0; border-width: 0; margin-right: -8px; } }
.ws-list { display: flex; flex-direction: column; gap: 8px; }
.lr { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #0e0e10; }
.lr b { width: 14px; height: 14px; border-radius: 4px; background: #2e2e33; }
.lr s { height: 7px; width: 40%; border-radius: 4px; background: #232327; }
.lr em { margin-left: auto; font: 11px var(--mono); color: var(--accent); font-style: normal; }
.lr.gone { animation: rowgone 6s ease-in-out infinite; }
@keyframes rowgone { 0%, 55% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateX(14px); } }
.lr.keep { border-color: #3c3c42; }

/* Sezioni */
.section { padding: 112px 0 0; }
.eyebrow { margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
h2 { margin: 0; max-width: 760px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.sub { margin: 18px 0 0; max-width: 560px; color: var(--muted); }
h3 { margin: 12px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; line-height: 1.15; font-weight: 600; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 88px; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .f-text { order: 2; }
.feature p { color: var(--muted); margin: 16px 0 0; }
.num { font: 400 16px var(--pixel); color: var(--accent); }
.feature.wide { grid-template-columns: 1fr; gap: 36px; }
.feature.wide .f-text { max-width: 560px; }
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.views figcaption { margin-top: 12px; font-size: 13px; color: var(--dim); text-align: center; }

kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; margin: 0 2px;
  font: 500 13px var(--mono); color: var(--text);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #111113;
}
p kbd { height: 22px; min-width: 22px; font-size: 12px; vertical-align: 1px; }

/* Scorciatoie */
.keys { margin-top: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.k { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.k:first-child { border-top: 0; }
.k p { margin: 0; color: var(--muted); }
.kk { display: flex; flex-wrap: wrap; gap: 2px; }
.k:hover { background: #0e0e10; }
.k:hover kbd { border-color: #4a4a50; }

/* Celle */
.cells { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cell { background: var(--panel); padding: 26px 22px; }
.cell strong { display: block; font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.cell p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Installa */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; max-width: 640px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.steps p { margin: 0; color: var(--text); }
.n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 400 14px var(--pixel); background: var(--text); color: #000; }
code { font: 13px var(--mono); background: #151518; border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.note { margin: 22px 0 0; max-width: 640px; color: var(--muted); font-size: 14px; }
.note a, .foot a { text-decoration-color: #555; text-underline-offset: 3px; }
.note a:hover, .foot a:hover { text-decoration-color: var(--text); }
#install .cta-row { justify-content: flex-start; margin-top: 28px; }

/* Footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--dim); font-size: 13px; }
.foot-in { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 560px; }
.foot .links { display: flex; gap: 18px; }

/* Apparizione allo scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Telefono */
@media (max-width: 860px) {
  .nav-links a:not(:last-child) { display: none; }
  .nav-links { margin-left: auto; }
  .hero-stage { padding-top: 64px; }
  .hero-shot { margin-top: 44px; padding: 0 12px; }
  .section { padding-top: 80px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feature.flip .f-text { order: 0; }
  .views { grid-template-columns: 1fr; }
  .k { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .cells { grid-template-columns: 1fr 1fr; }
  .mock { padding: 12px; font-size: 10px; }
  .foot-in { flex-direction: column; gap: 20px; }
}
h1 { text-wrap: balance; }
h1 em { font-style: normal; }
@media (max-width: 520px) {
  h1 br { display: none; }
  .cells { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; }
}



/* Sezioni "Le basi": celle attaccate, linee sottili, illustrazioni e icone pixel */
.sec-h { margin: 80px 0 0; max-width: 760px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sec-h em { display: block; font-style: normal; font-weight: 400; font-size: 16px; letter-spacing: 0; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.sec-h em a { text-decoration-color: #555; text-underline-offset: 3px; }
.sec-h em a:hover { text-decoration-color: var(--text); }
.tri { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tri-c { margin: 0; background: var(--panel); display: flex; flex-direction: column; }
.tri-c figcaption { padding: 20px 22px 24px; color: var(--muted); font-size: 15px; }
.tri-c figcaption strong { color: var(--text); font-weight: 600; }
.ill { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #050505; }
.ill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ill > img.on { opacity: 1; }
.ill > canvas.px { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.fgrid { margin-top: 28px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fgrid-4 { grid-template-columns: repeat(4, 1fr); }
.fc { background: var(--panel); padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 18px; transition: background .2s; }
.fc:hover { background: #0e0e10; }
.fc p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.fc strong { color: var(--text); font-weight: 600; }
.fc kbd { height: 20px; min-width: 20px; padding: 0 5px; margin: 0 1px; font-size: 11px; vertical-align: 1px; }
@media (max-width: 1000px) { .fgrid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .tri { grid-template-columns: 1fr; } .sec-h { margin-top: 64px; } }
@media (max-width: 520px) { .fgrid-4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Icone: quelle del sito di Search (tratto sottile, 24x24). In hover si "pixelano" per un attimo. */
.icw { position: relative; display: block; width: 28px; height: 28px; color: var(--text); transition: color .2s; }
.ic { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icw canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.fc:hover .icw { color: #ff7a1a; }

.meta.rel { margin-top: 4px; }

/* Dithering: bande che sfumano tra le sezioni e sopra il footer, bagliore nelle celle */
.section { position: relative; }
.dband { position: absolute; left: 0; right: 0; top: 0; height: 100px; pointer-events: none; z-index: 0; }
.dband canvas, .dglow { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.dband-end { position: relative; height: 180px; margin-top: 40px; }
.foot { margin-top: 0; background: #ff7a1a; border-top: 0; color: #1a0b00; }
.foot a { color: #1a0b00; text-decoration-color: rgba(26,11,0,.45); }
.foot a:hover { text-decoration-color: #1a0b00; }
.dband-end { margin-bottom: -1px; }
.nav-links .ext { font-style: normal; color: var(--dim); font-size: 12px; }
.section > .wrap { position: relative; z-index: 1; }
.fc, .k { position: relative; overflow: hidden; }
.fc > *:not(.dglow), .k > *:not(.dglow) { position: relative; z-index: 1; }
.dglow { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .5s steps(5, end); }
.fc:hover .dglow, .k:hover .dglow { opacity: 1; }

/* Scritta gigante a tutta larghezza nel footer: stesso font del logo in navbar (Geist Pixel) */
.foot { padding-bottom: 0; overflow: hidden; }
.giant { margin: 140px auto 0; max-width: var(--wrap); padding: 0 20px; line-height: 1; white-space: nowrap; user-select: none; height: .78em; overflow: hidden; font-size: 30vw; }
.gw { display: inline-block; font-family: var(--pixel); font-weight: 400; color: #1a0b00; line-height: 1; letter-spacing: 0; }
.gw b, .gw u { font: inherit; text-decoration: none; }

.foot { position: relative; }
.foot-dither { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 0; }
.foot-in, .giant { position: relative; z-index: 1; }

.giant { position: relative; }
.giant-cv { position: absolute; left: 20px; top: 0; image-rendering: pixelated; pointer-events: none; }
