:root {
  --gold: #e8c96a; --bg: #0a0d14; --bg2: #12151b; --bg3: #1a1711;
  --red: #f53b57; --green: #22c55e; --green2: #4ade80;
  --text: #ece8dc; --muted: #9aa0ab; --line: #262b36;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }
.kicker { font: 600 .8rem var(--mono); color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.sub, .lead { color: var(--muted); max-width: 720px; }
.lead { font-size: 1.15rem; }
.small { font-size: .85rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.3em; border-radius: 12px; font: 700 .95rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; color: var(--text); background: none; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.gold { background: var(--gold); color: #121212; box-shadow: 0 6px 24px #e8c96a33; }
.btn.ghost { border-color: var(--line); background: var(--bg2); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.green { background: var(--green2); color: #08150c; }
.btn.red { background: #2a0d12; border-color: var(--red); color: var(--red); }
.btn.sm { padding: .55em 1em; font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: #0a0d14e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 800; }
.brand em { font-style: normal; color: var(--gold); font-weight: 700; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 10px; }
select { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .5em .6em; font: 600 .88rem var(--sans); }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(900px 500px at 80% 10%, #e8c96a1f, transparent 60%), radial-gradient(700px 400px at 0% 100%, #f53b5712, transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.stats { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stats b { display: block; font: 700 1.8rem var(--mono); color: var(--gold); }
.stats span { font-size: .8rem; color: var(--muted); }
.hero-shots { position: relative; padding-bottom: 40px; }
.frame { margin: 0; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; box-shadow: 0 30px 80px #000a; }
.browser { border-radius: 14px; }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #0e1118; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #333a46; }
.browser .bar span { margin-left: 10px; font: .72rem var(--mono); color: var(--muted); }
.phone { border-radius: 28px; border: 6px solid #1c2029; width: 230px; }
.hero-shots .phone { position: absolute; right: -10px; bottom: 0; width: 34%; animation: float 6s ease-in-out infinite; }
.phone.sm { width: 220px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* sections */
.sec { padding: 88px 0; }
.sec.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-block: 1px solid #ffffff08; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px #0008; background: var(--bg2); }
.shot img, .frame img { width: 100%; }
.stack { display: grid; gap: 18px; }
.pair { display: flex; gap: 18px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.pair .shot { flex: 1 1 320px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 32px; }
.card { display: block; text-decoration: none; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.ic { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.three { grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.mini { background: var(--bg3); border: 1px solid #3a321d; border-radius: 16px; padding: 20px; }
.mini p { color: var(--muted); margin: 0; font-size: .95rem; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 18px; align-items: start; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 .8rem var(--mono); color: var(--gold); border: 1px solid #e8c96a55; background: var(--bg3); padding: 4px 10px; border-radius: 8px; }
.checks { padding: 0; list-style: none; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--green2); font-weight: 800; }

/* agitation demo */
.toggle { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 12px 0 24px; flex-wrap: wrap; }
.toggle button { border: 0; background: none; color: var(--muted); font: 700 .95rem var(--sans); padding: .7em 1.2em; border-radius: 10px; cursor: pointer; }
.toggle button[aria-selected="true"], .toggle button[aria-pressed="true"] { background: var(--gold); color: #121212; }
.agit-demo { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.agit-demo .shot { grid-column: 1 / -1; }
.tank-anim { text-align: center; }
.tank-svg { width: 180px; height: 180px; margin: auto; }
.tank-g { transform-origin: 100px 100px; animation: invert 4s ease-in-out infinite; }
.cont .tank-g { animation: spin 1.1s linear infinite; }
@keyframes invert { 0%, 60%, 100% { transform: rotate(0); } 70%, 80% { transform: rotate(180deg); } 90% { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.anim-cap { font-size: .8rem; color: var(--muted); }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.readout div { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.readout dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.readout dd { margin: 4px 0 0; font: 700 clamp(1.3rem, 3vw, 2rem) var(--mono); color: var(--gold); transition: color .3s; }
.readout dd.flash { animation: flash .6s; }
@keyframes flash { 0% { color: #fff; transform: scale(1.06); } }
.note { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 36px; }
.note img { border-radius: 14px; border: 1px solid var(--line); }

/* timer demo */
.timer-demo { background: #0d140f; border: 2px solid #1f4a2b; border-radius: 22px; padding: 22px; margin: 24px 0; }
.t-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pill { background: #12301c; color: #fff; border: 1px solid #2c6b3e; padding: 4px 12px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.t-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.t-box { background: #0a110c; border: 1px solid #1f3b27; border-radius: 16px; padding: 18px; min-width: 0; }
.t-box.agit { background: #0b1220; border-color: #23314d; transition: background .3s, border-color .3s; }
.t-box.agit.on { background: #221a08; border-color: #e8c96a88; }
.t-box.agit.beep { box-shadow: 0 0 0 3px #e8c96a66 inset; }
.t-lbl { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green2); margin: 0; }
.agit .t-lbl { color: #7aa7ff; }
.t-big { font: 700 clamp(3rem, 9vw, 5.5rem)/1.05 var(--mono); color: var(--green2); margin: .1em 0; font-variant-numeric: tabular-nums; }
.t-big.gold { color: var(--gold); font-size: clamp(2.4rem, 7vw, 4rem); }
.t-msg { color: var(--text); font-weight: 600; min-height: 1.6em; margin: 0; }
.prog { height: 8px; background: #16261b; border-radius: 9px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--green2); transition: width .2s linear; }
.t-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 8px; }
.vol { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
input[type=range] { accent-color: var(--gold); width: 110px; }

/* negatives demo */
.neg-demo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.viewer { position: relative; background: #1a1a1a; border-radius: 18px; border: 1px solid var(--line); height: 380px; display: grid; place-items: center; overflow: hidden; }
.neg-frame { height: 82%; aspect-ratio: 2 / 3; max-width: 92%; border: 2px solid var(--gold); position: relative; overflow: hidden; transition: aspect-ratio .4s; background: #000; }
.neg-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33.2%, #fff3 33.3%, transparent 33.6%, transparent 66.4%, #fff3 66.6%, transparent 66.8%), linear-gradient(0deg, transparent 33.2%, #fff3 33.3%, transparent 33.6%, transparent 66.4%, #fff3 66.6%, transparent 66.8%); pointer-events: none; }
.neg-img { width: 100%; height: 100%; display: block; filter: grayscale(1); transition: filter .5s; }
.neg-img.negative { filter: grayscale(1) invert(1) sepia(.6) hue-rotate(-20deg) saturate(1.4); }
.neg-lbl { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 600 .75rem var(--mono); color: var(--gold); background: #000a; border: 1px solid #e8c96a66; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.neg-ctrl { display: grid; gap: 14px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: .45em .8em; font: 600 .85rem var(--sans); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--gold); color: #121212; border-color: var(--gold); }
.small-t { margin: 0; }

/* sync demo */
.sync-demo { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.sinc { font: 800 1.2rem var(--sans); padding: .8em 2.4em; border-radius: 14px; border: 1px solid; cursor: default; transition: all .4s; }
.sinc.ok { background: #102416; border-color: var(--green); color: var(--green2); box-shadow: 0 0 30px #22c55e33; }
.sinc.dirty { background: #2a0d12; border-color: var(--red); color: var(--red); box-shadow: 0 0 30px #f53b5733; }
.sync-demo .t-msg { margin-top: 12px; }
.sync-demo .cta-row { justify-content: center; margin-bottom: 0; }

.final { text-align: center; background: radial-gradient(700px 300px at 50% 0%, #e8c96a1a, transparent 70%); }
.disclaimer { max-width: 640px; margin: 1.6em auto 0; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* safelight mode on the landing itself */
body.safelight { --gold: #f53b57; --green: #f53b57; --green2: #ff6b7f; --text: #ffb3bd; --muted: #c46a75; --line: #3a1218; }
body.safelight img { filter: sepia(1) hue-rotate(-50deg) saturate(3) brightness(.8); }
body.safelight .timer-demo { border-color: #5a1620; background: #140708; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 960px) {
  .links { display: none; }
  .hero-in, .split, .neg-demo, .note { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr; justify-items: center; }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-in { gap: 8px; }
  .brand em { display: none; }
  .nav-right .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-shots .phone { width: 40%; right: -4px; }
  .agit-demo { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .t-body { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .viewer { height: 320px; }
  .phone, .phone.sm { width: 200px; }
}
:lang(zh) .kicker, :lang(ja) .kicker, :lang(zh) .pill, :lang(ja) .pill { letter-spacing: 0; font-family: var(--sans); }
.gallery { grid-template-columns: 1fr 1fr 0.8fr; }
.note img { max-height: 520px; width: auto; justify-self: center; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr; } }

/* tutorial GIF */
.tuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.tut { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.tut h3 { margin-bottom: 12px; }
.tut-media { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #ffffff14; background: var(--bg); }
.tut-gif { width: 100%; }
.tut-play { position: absolute; right: 8px; bottom: 8px; padding: .35em .9em; border-radius: 999px; border: 1px solid var(--gold); background: #0a0d14d9; color: var(--gold); font: 700 .75rem var(--sans); cursor: pointer; }
.tut ol { margin: 14px 0 0; padding-left: 1.4em; color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.tut ol li::marker { color: var(--gold); font-weight: 700; }
@media (max-width: 1100px) { .tuts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tuts { grid-template-columns: 1fr; } .tut-media { max-width: 340px; margin-inline: auto; } }

/* contatti */
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-link { display: inline-flex; align-items: center; gap: .35em; vertical-align: bottom; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-links a { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .7em .8em; font: 400 1rem var(--sans); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; }
#contactStatus { margin: 0; min-height: 1.4em; }
#contactStatus.ok { color: var(--green2); }
#contactStatus.err { color: var(--red); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; gap: 24px; } }
