:root{--blue:#0577FD;--blue-d:#0360cc;--blue-l:#e8f2ff;--ink:#2b3445;--muted:#5d6779;--line:#dfe5ee;--bg:#f6f8fb;--radius:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:#fff;line-height:1.6;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.narrow{max-width:820px}
.wide{max-width:1440px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
h1,h2,h3{line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(2rem,4.5vw,3.1rem);font-weight:700}
h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:700}
h3{font-size:1.05rem;font-weight:600}
.eyebrow{color:var(--blue);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;margin:0 0 .6em}
.lead{font-size:1.1rem;color:var(--muted);max-width:40em}
.sub{color:var(--muted);margin-top:-.2em}
.small{font-size:.85rem;color:var(--muted)}
/* buttons */
.btn{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;font-weight:600;padding:.8em 1.4em;border-radius:999px;border:2px solid var(--blue);font:inherit;font-weight:600;cursor:pointer;transition:background .15s,transform .15s}
.btn:hover{background:var(--blue-d);border-color:var(--blue-d)}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:#fff;color:var(--blue)}
.btn-ghost:hover{background:var(--blue-l);border-color:var(--blue)}
.btn-sm{padding:.45em 1em;font-size:.9rem}
.btn-lg{padding:.95em 1.8em;font-size:1.05rem}
:focus-visible{outline:3px solid #8cc0ff;outline-offset:2px}
/* header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:66px}
.brand img{height:40px;width:auto}
.nav nav{display:flex;align-items:center;gap:22px}
.nav nav a:not(.btn){color:var(--ink);text-decoration:none;font-weight:500;font-size:.95rem}
.nav nav a:not(.btn):hover{color:var(--blue)}
/* hero */
.hero{background:linear-gradient(180deg,var(--blue-l),#fff);padding:72px 0 64px}
.hero-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:center}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 18px}
.ticks{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 22px;color:var(--muted);font-size:.92rem}
.ticks li::before{content:"✓";color:var(--blue);font-weight:700;margin-right:6px}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:0 20px 50px -25px rgba(5,119,253,.45)}
.vf{position:relative;width:120px;height:120px;margin:0 auto 26px}
.vf span{position:absolute;width:36px;height:36px;border:9px solid var(--blue)}
.vf span:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-top-left-radius:14px}
.vf span:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-top-right-radius:14px}
.vf span:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-bottom-left-radius:14px}
.vf span:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-bottom-right-radius:14px}
.vf i{position:absolute;width:28px;height:28px;border-radius:50%;background:var(--blue);top:46px;left:46px;animation:rec 2s ease-in-out infinite}
@keyframes rec{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.vf i{animation:none}html{scroll-behavior:auto}}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}
.hero-stats b{display:block;font-size:1.5rem;color:var(--ink)}
.hero-stats small{color:var(--muted);font-size:.78rem}
.hero-note{text-align:center;font-size:.8rem;color:var(--muted);margin:16px 0 0}
/* sections */
.section{padding:72px 0}
.alt{background:var(--bg)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-top:20px}
.g-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
label{display:flex;flex-direction:column;font-size:.85rem;font-weight:500;color:var(--muted);gap:6px}
input,select{font:inherit;font-size:.95rem;color:var(--ink);border:1px solid #c9d3e1;border-radius:8px;padding:.5em .6em;background:#fffdf3;width:100%;min-width:0}
input:focus,select:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(5,119,253,.18)}
input:disabled{background:#f1f3f6;color:#a0a8b5}
.table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.table-head h3{margin:0}
.table-actions{display:flex;gap:8px}
.table-scroll{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch}
table.cams{border-collapse:collapse;width:100%;font-size:.86rem}
.cams th{background:var(--ink);color:#fff;font-weight:500;font-size:.74rem;padding:8px 3px;text-align:center;line-height:1.25}
.cams th:first-child{border-top-left-radius:8px}.cams th:last-child{border-top-right-radius:8px}
.cams td{padding:5px 3px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}
.cams input,.cams select{font-size:.86rem;padding:.42em .35em}
.cams td.c-name{min-width:140px}
.cams td input[type=number]{width:58px;text-align:center}
.cams td .f-ovr{width:74px}
.cams .f-res{min-width:114px}.cams .f-codec{min-width:136px}.cams .f-act{min-width:90px}.cams .f-mode{min-width:108px}
.cams td.out{background:#eef8ee;font-weight:600;white-space:nowrap;min-width:62px}
.del{border:0;background:none;color:#9aa3b2;font-size:1.4rem;cursor:pointer;line-height:1;padding:4px 8px;border-radius:6px}
.del:hover{color:#d33;background:#fdeeee}
#add-row{margin-top:14px}
.results{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}
.r{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px}
.r small{display:block;color:var(--muted);font-size:.8rem}
.r b{font-size:1.55rem;font-weight:700}
.r em{font-style:normal;font-size:.85rem;font-weight:500;color:var(--muted)}
.r.hl{background:var(--blue);border-color:var(--blue);color:#fff}
.r.hl small,.r.hl em{color:#dceaff}
.disclaimer{margin-top:20px;font-size:.88rem;color:var(--muted);background:#fff8e6;border:1px solid #f3dfa6;border-radius:10px;padding:12px 16px}
.method{margin-top:14px}
.method summary,#faq summary{cursor:pointer;font-weight:600}
.method ul{color:var(--muted);font-size:.92rem}
/* template */
.tpl-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:center}
.feature-list{padding-left:1.1em}
.feature-list li{margin:.45em 0}
.price-row{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:24px}
.price{font-size:1.4rem;font-weight:700}
.tpl-shot{margin:0}
.tpl-shot img{border-radius:12px;border:1px solid var(--line);box-shadow:0 20px 50px -25px rgba(43,52,69,.5)}
.tpl-shot figcaption{font-size:.82rem;color:var(--muted);text-align:center;margin-top:10px}
/* faq */
#faq details{border-bottom:1px solid var(--line);padding:16px 0}
#faq details p{color:var(--muted);margin:.6em 0 0}
table.guide{border-collapse:collapse;margin:12px 0;min-width:340px}
.guide th,.guide td{border:1px solid var(--line);padding:8px 14px;text-align:left}
.guide th{background:var(--blue-l)}
/* footer */
.site-footer{background:var(--ink);color:#c8cfdb;padding:40px 0;text-align:center}
.site-footer img{margin:0 auto 10px;filter:brightness(0) invert(1)}
.site-footer p{margin:.3em 0}
.site-footer .small{color:#9aa4b5}
/* responsive */
@media (max-width:1180px){
  /* stack camera rows as cards */
  table.cams{min-width:0}
  .cams thead{display:none}
  .cams,.cams tbody,.cams tr{display:block;width:100%}
  .cams tr{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px 10px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px;position:relative}
  .cams td{display:flex;flex-direction:column;align-items:stretch;text-align:left;border:0;padding:0;font-size:.85rem}
  .cams td::before{content:attr(data-label);font-size:.72rem;color:var(--muted);font-weight:500;margin-bottom:3px}
  .cams td.c-name{grid-column:1/-1;min-width:0;padding-right:36px}
  .cams td input[type=number],.cams td .f-ovr,.cams td .f-qty{width:100%;text-align:left}
  .cams td.out{background:#eef8ee;border-radius:8px;padding:6px 8px}
  .cams td.c-del{position:absolute;top:8px;right:6px}
  .cams td.c-del::before{content:none}
  .cams .f-res,.cams .f-codec,.cams .f-act,.cams .f-mode{min-width:0}
}
@media (max-width:960px){
  .hero-grid,.tpl-grid{grid-template-columns:1fr}
  .g-grid{grid-template-columns:repeat(3,1fr)}
  .results{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .nav nav a:not(.btn){display:none}
  .hero{padding:44px 0}
  .section{padding:52px 0}
  .g-grid{grid-template-columns:repeat(2,1fr)}
  .results{grid-template-columns:1fr 1fr;gap:10px}
  .r b{font-size:1.25rem}
}
