/* DigiSecurity v0.4 — CCTV landing. Self-hosted font, no external deps, CSP-safe. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F1B2A;
  --navy-2: #172739;
  --navy-3: #22364D;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --ink: #0F1B2A;
  --text: #3A4A5C;
  --muted: #6B7A8C;
  --line: #E1E6EC;
  --signal: #F5B82E;
  --signal-hover: #E6A61A;
  --signal-soft: #FDF1D3;
  --on-dark: #E8EEF4;
  --on-dark-muted: #9FB0C2;
  --rec: #E5483B;
  --scene: #7E948A;
  --ok: #7FD1A0;
  --err: #F4A29A;

  --font: "Manrope", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-osd: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .06), 0 6px 20px rgba(15, 27, 42, .06);
  --shadow-lg: 0 2px 6px rgba(15, 27, 42, .08), 0 18px 40px rgba(15, 27, 42, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--signal); color: var(--ink); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  padding: .95rem 1.35rem; border-radius: 10px; border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--signal); color: var(--navy); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-primary:hover .ico { transform: translateX(2px); }
.btn-ghost { border-color: rgba(232, 238, 244, .35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: .65rem 1rem; font-size: .92rem; border-radius: 8px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 27, 42, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--on-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.75rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--on-dark-muted); transition: color .15s; }
.nav a:hover { color: #fff; }
.lang { display: flex; gap: .15rem; font-size: .82rem; font-weight: 700; }
.lang a { text-decoration: none; padding: .3rem .5rem; border-radius: 6px; color: var(--on-dark-muted); }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 960px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .header-cta { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(245, 184, 46, .10), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(80, 140, 200, .12), transparent 60%),
    var(--navy);
  color: var(--on-dark);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(6rem, 11vw, 8.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--signal); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(229, 72, 59, .2); }
.hero h1 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 36em; margin: 1.25rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .92rem; font-weight: 600; color: var(--on-dark); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .ico { width: 18px; height: 18px; color: var(--signal); }

/* NVR monitor */
.monitor {
  background: #0A131E; border-radius: 14px; padding: 8px 8px 22px; position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3);
}
.monitor::after { content: ""; position: absolute; right: 16px; bottom: 8px; width: 6px; height: 6px; border-radius: 50%; background: #4FBF7A; box-shadow: 0 0 8px #4FBF7A; }
.monitor::before { content: "NVR"; position: absolute; left: 14px; bottom: 4px; font: 700 .6rem/1 var(--font-osd); letter-spacing: .15em; color: #4A5B6D; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 8px; overflow: hidden; }
.cam { position: relative; aspect-ratio: 16 / 9; background: #1E2A33; overflow: hidden; }
.cam svg { width: 100%; height: 100%; }
.cam svg * { fill: none; stroke: var(--scene); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.cam .fill { fill: #26333C; stroke: none; }
.osd {
  position: absolute; inset: 0; padding: .4rem .5rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-osd); font-size: clamp(.55rem, 1.05vw, .7rem); line-height: 1.2;
  color: #E6EDE8; text-shadow: 0 0 2px #000; pointer-events: none;
}
.osd .rec { display: inline-flex; align-items: center; gap: .3em; }
.osd .rec::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--rec); animation: rec 2s steps(1) infinite; }
.osd .cam-name { position: absolute; left: .5rem; bottom: .4rem; }
@keyframes rec { 50% { opacity: 0; } }

/* Trust strip overlapping the hero */
.trust { position: relative; z-index: 2; margin-top: -3.25rem; }
.trust ul {
  list-style: none; margin: 0; padding: 1.25rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.trust li { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.trust li span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--signal-soft); color: #9A6A00;
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #B07A00; margin-bottom: .6rem; }
.section-head p { color: var(--muted); margin: .9rem 0 0; font-size: 1.08rem; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D2D9E1; }
.card h3 { margin: 1.1rem 0 .45rem; }
.card p { margin: 0; color: var(--text); font-size: .98rem; }
.section-alt .card { background: var(--bg); box-shadow: none; }
.section-alt .card:hover { background: var(--card); box-shadow: var(--shadow-lg); }

/* Why us (dark band) */
.dark { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: var(--on-dark-muted); }
.dark .kicker { color: var(--signal); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why li { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 1.75rem; }
.why .icon-tile { background: rgba(245, 184, 46, .12); color: var(--signal); }
.why h3 { margin: 1.1rem 0 .5rem; }
.why p { margin: 0; color: var(--on-dark-muted); }

/* Audience */
.audience .card { padding: 1.75rem; }
.audience .card > p { color: var(--muted); margin-top: .15rem; }
.checks { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; color: var(--ink); font-weight: 500; }
.checks .ico { width: 18px; height: 18px; color: #1E9E5A; margin-top: .2rem; }

/* Camera types */
.camcard { padding: 0; overflow: hidden; }
.camcard .illus { background: linear-gradient(180deg, #EEF2F6, #E4EAF0); padding: 1.25rem; display: grid; place-items: center; height: 150px; color: var(--navy-3); border-bottom: 1px solid var(--line); }
.camcard .illus svg { width: 150px; height: 105px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.camcard .illus .acc { stroke: #C98B00; }
.camcard .body { padding: 1.25rem 1.5rem 1.5rem; }
.camcard h3 { margin: 0 0 .4rem; }
.brands { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.brands p { margin: 0; flex: 1 1 18rem; color: var(--text); font-size: .98rem; }
.brand-names { display: flex; gap: 2rem; flex-wrap: wrap; }
.brand-names span { font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: #8795A5; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--signal); color: var(--navy); font-weight: 800; font-size: 1rem;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--card);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: -.75rem; border-top: 2px dashed #CBD3DC; }
.steps h3 { margin: 1.1rem 0 .45rem; }
.steps p { margin: 0; color: var(--text); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
@media (max-width: 860px) { .privacy-card { grid-template-columns: 1fr; gap: 1.5rem; } }
.privacy-card .icon-tile { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.25rem; background: #E6F4EC; color: #1E7A48; }
.privacy-card .icon-tile .ico { width: 28px; height: 28px; }
.privacy-card p { color: var(--text); margin: 1rem 0 0; }
.privacy-card .note { font-size: .9rem; color: var(--muted); }
.privacy-card .checks { margin: 0; padding: 0; border: 0; gap: .9rem; }
.privacy-card .checks li { padding: .9rem 1rem; background: var(--bg); border-radius: 10px; }

/* FAQ */
.faq { max-width: 52rem; display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s; }
.section-alt .faq details { background: var(--bg); }
.faq details[open] { box-shadow: var(--shadow); background: var(--card); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--text); max-width: 44rem; }

/* Contact */
.contact { background: var(--navy); color: var(--on-dark); }
.contact h2 { color: #fff; }
.contact .kicker { color: var(--signal); }
.contact .section-head p { color: var(--on-dark-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .icon-tile { background: rgba(255, 255, 255, .07); color: var(--signal); }
.contact-list small { display: block; color: var(--on-dark-muted); font-size: .82rem; font-weight: 600; }
.contact-list b, .contact-list a { color: #fff; font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { color: var(--signal); }

.form-card { background: var(--card); color: var(--text); border-radius: 18px; padding: clamp(1.5rem, 3.5vw, 2.25rem); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.form-card h3 { margin-bottom: 1.25rem; font-size: 1.3rem; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem; transition: border-color .15s, background-color .15s;
}
.contact-form input, .contact-form select { height: 3rem; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9AA7B5; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #C9D2DC; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: none; border-color: var(--signal); background: #fff; box-shadow: 0 0 0 4px rgba(245, 184, 46, .25); }
.contact-form textarea { resize: vertical; min-height: 7.5rem; }
.contact-form .btn { justify-self: start; }
.field-hint { margin: -.35rem 0 0; font-size: .85rem; color: var(--muted); }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-note a { color: var(--ink); }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1E7A48; }
.form-status.is-error { color: #B42318; }
.form-flash { display: none; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 10px; font-weight: 600; }
.form-flash.is-ok { background: #E6F4EC; color: #1E7A48; }
.form-flash.is-error { background: #FDECEA; color: #B42318; }
.form-flash a { color: inherit; }
.form-flash:target { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #0A131E; color: #7F8FA1; font-size: .88rem; padding: 1.75rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: #C3CED9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer span a + a { margin-left: 1.25rem; }

/* Document pages (privacy) */
.doc-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.doc-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.doc { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.doc h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0; max-width: 46rem; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; }
.notfound p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .osd .rec::before { animation: none; }
  .card, .btn, .faq summary .ico { transition: none; }
  .card:hover { transform: none; }
}
