/* ═══════════════════════════════════════════
   SECURIFY — Shared Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=Barlow+Condensed:ital,wght@0,300;0,600;0,700;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #070707;
  --bg2:     #0E0E0E;
  --bg3:     #141414;
  --bg4:     #1A1A1A;
  --orange:  #E04D00;
  --orange2: #FF6520;
  --steel:   #9A9A92;
  --steel2:  #C8C8C0;
  --off:     #EDECE8;
  --dim:     #3A3A36;
  --line:    rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--off);
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
.label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange);
}

.big-head {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px; line-height: 0.93;
  color: var(--off);
}

hr.rule { border: none; border-top: 1px solid var(--line); }

/* ── BUTTONS ── */
.btn-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px;
  background: var(--orange); color: var(--bg);
  padding: 14px 28px; border-radius: 4px;
  text-decoration: none; display: inline-block; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-main:hover { background: var(--orange2); transform: translateY(-1px); }
.btn-main:disabled { background: var(--dim); cursor: default; transform: none; color: var(--steel); }

.btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--steel); border: 1px solid var(--dim);
  padding: 14px 28px; border-radius: 4px;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--steel); color: var(--off); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(7,7,7,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
@media(max-width:768px){ nav { padding: 0 20px; } }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { height: 36px; }

.nav-right { display: flex; align-items: center; gap: 36px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  color: var(--steel); text-decoration: none; letter-spacing: 0.3px;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--orange);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--off); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-btn {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--bg); background: var(--orange);
  border: none; padding: 9px 20px; border-radius: 4px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.nav-btn:hover { background: var(--orange2); }

.ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.ham span { display: block; width: 22px; height: 1.5px; background: var(--off); transition: 0.3s; }
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media(max-width:900px){
  .nav-links { display: none; }
  .ham { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7,7,7,0.98);
    border-bottom: 1px solid var(--line);
    padding: 20px; gap: 16px;
  }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 120px 48px 80px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
@media(max-width:768px){ .page-hero { padding: 100px 24px 60px; } }

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,77,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,77,0,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black, transparent);
}

.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero .label { margin-bottom: 16px; display: block; }
.page-hero .big-head { font-size: clamp(4rem, 9vw, 9rem); }
.page-hero p {
  font-size: 1rem; color: var(--steel); line-height: 1.8;
  font-weight: 300; max-width: 560px; margin-top: 20px;
}

/* ── TICKER ── */
.ticker {
  background: var(--orange); overflow: hidden; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-track {
  display: flex; animation: ticker-move 28s linear infinite; width: max-content;
}
.ticker-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--bg); white-space: nowrap; padding: 0 36px;
}
.ticker-track span::before { content: '—'; margin-right: 36px; opacity: 0.4; }
@keyframes ticker-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NUMBERS BAR ── */
.numbers-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--line);
}
@media(max-width:600px){ .numbers-bar { grid-template-columns: repeat(2,1fr); } }

.num-item {
  padding: 44px 36px; border-right: 1px solid var(--line);
}
.num-item:last-child { border-right: none; }
@media(max-width:600px){ .num-item:nth-child(2){ border-right: none; } }

.num-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.6rem; line-height: 1; color: var(--off);
}
.num-val em { font-style: normal; color: var(--orange); }
.num-desc { font-size: 0.78rem; color: var(--steel); margin-top: 6px; line-height: 1.5; }

/* ── SECTION WRAPPERS ── */
.section-pad { padding: 100px 48px; }
@media(max-width:768px){ .section-pad { padding: 70px 24px; } }

.section-pad-sm { padding: 70px 48px; }
@media(max-width:768px){ .section-pad-sm { padding: 50px 24px; } }

.bg2 { background: var(--bg2); }
.bg3 { background: var(--bg3); }
.border-top { border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); }

/* ── GRID CELLS (square sections) ── */
.cell-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.cell-grid-3 { grid-template-columns: repeat(3,1fr); }
.cell-grid-4 { grid-template-columns: repeat(4,1fr); }
.cell-grid-2 { grid-template-columns: repeat(2,1fr); }

@media(max-width:900px){ .cell-grid-3,.cell-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:520px){ .cell-grid-3,.cell-grid-4,.cell-grid-2 { grid-template-columns: 1fr; } }

.cell {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.cell:hover { background: rgba(224,77,0,0.04); }

.cell-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 24px;
}
.cell h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--off); letter-spacing: 0.3px; margin-bottom: 12px;
}
.cell p { font-size: 0.84rem; color: var(--steel); line-height: 1.8; font-weight: 300; }

.cell-big-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem; line-height: 1; color: var(--dim);
  margin-bottom: 14px; transition: color 0.3s;
}
.cell:hover .cell-big-num { color: var(--orange); }

/* ── SPLIT ── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line); min-height: 460px;
}
@media(max-width:768px){ .split { grid-template-columns: 1fr; } }

.split-visual {
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
  padding: 60px 48px; border-right: 1px solid var(--line);
  position: relative; overflow: hidden;
}
@media(max-width:768px){ .split-visual { min-height: 280px; border-right: none; border-bottom: 1px solid var(--line); } }

.mesh-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,77,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,77,0,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: mesh-drift 12s linear infinite;
}
@keyframes mesh-drift {
  0%{ background-position: 0 0; }
  100%{ background-position: 18px 18px; }
}

.split-content {
  padding: 70px 56px; display: flex; flex-direction: column; justify-content: center;
}
@media(max-width:768px){ .split-content { padding: 48px 24px; } }

.split-content .big-head { font-size: clamp(2.6rem, 4vw, 4.5rem); margin: 14px 0 20px; }
.split-content p { font-size: 0.9rem; color: var(--steel); line-height: 1.9; font-weight: 300; margin-bottom: 28px; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.87rem; color: var(--steel2); font-weight: 400;
}
.check-list li::before {
  content: ''; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px;
  border: 1px solid var(--orange); border-radius: 2px;
  background: rgba(224,77,0,0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='%23E04D00' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 10px;
}

/* ── SPEC TABLE ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 16px 0; font-size: 0.86rem; vertical-align: top; }
.spec-table td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--steel); width: 45%;
}
.spec-table td:last-child { color: var(--off); font-weight: 500; }

/* ── CONTACT FORM ── */
.form-wrap { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:520px){ .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--steel);
}

input, textarea, select {
  width: 100%; font-family: 'Space Grotesk', sans-serif;
  background: var(--bg3); border: 1px solid var(--dim);
  border-radius: 4px; color: var(--off);
  padding: 13px 16px; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,77,0,0.1);
}
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { resize: vertical; min-height: 130px; }
select { color: var(--steel); cursor: pointer; }
select option { background: var(--bg3); color: var(--off); }

.form-note {
  font-size: 0.78rem; color: var(--dim); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px;
}

/* ── SUCCESS STATE ── */
.form-success {
  display: none;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 6px; padding: 28px 24px; text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-size: 1.1rem; font-weight: 700; color: #4ade80; margin-bottom: 8px; }
.form-success p { font-size: 0.86rem; color: var(--steel); }

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].vis { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="left"].vis { transform: none; }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="right"].vis { transform: none; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding: 72px 48px 56px;
  border-bottom: 1px solid var(--line);
}
@media(max-width:900px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media(max-width:520px){ .footer-top { grid-template-columns: 1fr; padding: 48px 24px 40px; } }

.footer-brand svg { height: 40px; margin-bottom: 18px; display: block; }
.footer-brand p { font-size: 0.82rem; color: var(--steel); line-height: 1.8; font-weight: 300; max-width: 260px; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--steel2); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 0.84rem; color: var(--steel); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--off); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px; flex-wrap: wrap; gap: 12px;
}
@media(max-width:768px){ .footer-bottom { padding: 22px 24px; flex-direction: column; align-items: flex-start; } }
.footer-bottom p { font-size: 0.76rem; color: var(--dim); }
.footer-bottom span { color: var(--orange); }

/* ── ALARM ANIMATION (home only) ── */
.alarm-wrap {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--orange); animation: ring-out 3s ease-out infinite; opacity: 0;
}
.ring:nth-child(1){ animation-delay:0s; }
.ring:nth-child(2){ animation-delay:0.75s; }
.ring:nth-child(3){ animation-delay:1.5s; }
.ring:nth-child(4){ animation-delay:2.25s; }
@keyframes ring-out {
  0%{ width:80px; height:80px; opacity:0.8; }
  100%{ width:320px; height:320px; opacity:0; }
}
.device {
  position: relative; z-index: 5;
  width: 100px; height: 68px;
  background: var(--bg3); border: 1.5px solid rgba(224,77,0,0.6);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 40px rgba(224,77,0,0.2);
}
.device::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(224,77,0,0.8),transparent);
}
.device-led {
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 12px var(--orange); animation: led-blink 1.2s ease-in-out infinite;
}
@keyframes led-blink{ 0%,100%{opacity:1;} 50%{opacity:0.15;} }
.device-bars { display: flex; gap: 3px; align-items: center; }
.device-bars span { display: block; width: 3px; background: var(--orange); border-radius: 2px; animation: bar-a 1.2s ease infinite; }
.device-bars span:nth-child(1){ height:10px; animation-delay:0s; }
.device-bars span:nth-child(2){ height:18px; animation-delay:0.15s; }
.device-bars span:nth-child(3){ height:24px; animation-delay:0.3s; }
.device-bars span:nth-child(4){ height:16px; animation-delay:0.45s; }
.device-bars span:nth-child(5){ height:10px; animation-delay:0.6s; }
@keyframes bar-a{ 0%,100%{transform:scaleY(1);opacity:1;} 50%{transform:scaleY(0.35);opacity:0.4;} }

.triggered-tag {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  background: var(--orange); color: var(--bg);
  padding: 5px 14px; border-radius: 3px; white-space: nowrap;
  animation: tag-flash 3s ease-in-out infinite;
  box-shadow: 0 2px 20px rgba(224,77,0,0.4);
}
@keyframes tag-flash{
  0%,24%,44%,100%{opacity:0; transform:translateX(-50%) translateY(-4px);}
  28%,40%{opacity:1; transform:translateX(-50%) translateY(0);}
}

.fence-svg-wrap {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  animation: fence-shiver 4s ease-in-out infinite; transform-origin: bottom center;
}
@keyframes fence-shiver{
  0%,25%,100%{ transform:translateX(-50%) rotate(0); }
  27%{ transform:translateX(calc(-50% + 5px)) rotate(0.4deg); }
  29%{ transform:translateX(calc(-50% - 5px)) rotate(-0.4deg); }
  31%{ transform:translateX(calc(-50% + 3px)) rotate(0.2deg); }
  33%{ transform:translateX(calc(-50% - 3px)) rotate(-0.2deg); }
  35%{ transform:translateX(-50%) rotate(0); }
}

/* ── MOBILE BACK-TO-TOP ── */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--bg);
  border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(224,77,0,0.35);
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-2px); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 48px;
  font-size: 0.75rem; color: var(--dim);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2);
}
@media(max-width:768px){ .breadcrumb { padding: 14px 20px; } }
.breadcrumb a { color: var(--steel); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--off); }

/* ── TOOLTIP ── */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg4); color: var(--off);
  font-size: 0.75rem; white-space: nowrap;
  padding: 6px 12px; border-radius: 4px;
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ACCORDION (FAQ) ── */
.accordion { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.3px;
  color: var(--off); background: none; border: none; width: 100%;
  text-align: left; transition: background 0.2s;
}
.acc-head:hover { background: rgba(224,77,0,0.04); }
.acc-head .acc-icon { font-size: 1rem; color: var(--orange); transition: transform 0.3s; flex-shrink: 0; }
.acc-item.open .acc-head .acc-icon { transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 28px;
}
.acc-item.open .acc-body { max-height: 300px; padding: 0 28px 22px; }
.acc-body p { font-size: 0.88rem; color: var(--steel); line-height: 1.9; font-weight: 300; }

/* ── COOKIE BANNER ── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--bg3); border-top: 1px solid var(--line);
  padding: 18px 48px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.4s ease;
}
@media(max-width:768px){ #cookieBanner { padding: 18px 20px; } }
#cookieBanner.show { transform: translateY(0); }
#cookieBanner p { font-size: 0.82rem; color: var(--steel); max-width: 600px; }
#cookieBanner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  font-size: 0.8rem; font-weight: 700;
  background: var(--orange); color: var(--bg);
  border: none; padding: 9px 18px; border-radius: 4px; cursor: pointer;
}
.cookie-decline {
  font-size: 0.8rem; font-weight: 500; color: var(--steel);
  background: none; border: 1px solid var(--dim);
  padding: 9px 18px; border-radius: 4px; cursor: pointer;
}
