/* ============================================================
   Averon Security — Main Stylesheet
   Paleta: #f69827 laranja | #14283d navy | #4a5663 slate
   Fontes: Barlow Condensed (display) | Barlow (body) | Space Mono (mono)
   ============================================================ */

:root {
  --orange:        #f69827;
  --orange2:       #e07e10;
  --navy:          #14283d;
  --navy2:         #0c1e30;
  --slate:         #4a5663;
  --cream:         #f6f1df;
  --black:         #080c12;
  --glass-bg:      rgba(20, 40, 61, 0.45);
  --glass-border:  rgba(246, 152, 39, 0.18);
  --glass-light:   rgba(246, 241, 223, 0.06);
  --text:          #f0ede4;
  --muted:         #8a9aaa;
  --muted2:        #4a5663;
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --font-mono:     'Space Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ── Custom Cursor ── */
.cur {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--orange);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: width .15s, height .15s;
}
.cur-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(246, 152, 39, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .09s ease;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  transition: all .4s;
}
nav.scrolled {
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(246, 152, 39, 0.12);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; filter: brightness(1.1); }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; background: var(--orange);
  padding: 10px 24px; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background .2s, transform .15s;
  cursor: none;
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 56px 100px;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246, 152, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 152, 39, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-slash {
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 130%;
  background: linear-gradient(160deg, rgba(20, 40, 61, 0.9) 0%, rgba(8, 12, 18, 0) 60%);
  pointer-events: none;
}
.blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.b1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(246,152,39,0.1) 0%, transparent 70%); top: -200px; right: -100px; }
.b2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(20,40,61,0.6) 0%, transparent 70%); bottom: 50px; left: 5%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--orange); margin-bottom: 24px;
  opacity: 0; animation: up .6s .2s forwards;
}
.hero-eyebrow::before { content: '//'; opacity: 0.5; }
.hero-eyebrow::after { content: ''; display: block; width: 40px; height: 1px; background: var(--orange); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(68px, 10vw, 130px);
  font-weight: 800; line-height: 0.88;
  letter-spacing: -0.01em; text-transform: uppercase;
  max-width: 780px;
  opacity: 0; animation: up .7s .35s forwards;
}
.hero-title .line2 {
  -webkit-text-stroke: 2px var(--orange);
  color: transparent; display: block;
}
.hero-title .line3 { color: var(--orange); display: block; }

.hero-sub {
  font-size: 17px; color: var(--muted); font-weight: 300;
  max-width: 500px; margin-top: 32px; line-height: 1.8;
  opacity: 0; animation: up .7s .5s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 24px; margin-top: 48px;
  opacity: 0; animation: up .7s .65s forwards;
}
.hero-stats {
  display: flex; gap: 56px; margin-top: 80px;
  padding-top: 40px; border-top: 1px solid rgba(246, 152, 39, 0.15);
  opacity: 0; animation: up .7s .8s forwards;
}
.stat-num {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1;
}
.stat-num span { color: var(--orange); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: #000;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 18px 36px; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: all .2s; cursor: none;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--muted2);
  padding: 17px 28px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all .2s; cursor: none;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── Ticker ── */
.ticker { background: var(--orange); overflow: hidden; padding: 11px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; animation: tick 28s linear infinite; white-space: nowrap; }
.ticker-item {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #000; padding: 0 24px; display: flex; align-items: center; gap: 10px;
}
.ticker-sep { width: 3px; height: 3px; background: rgba(0,0,0,0.35); border-radius: 50%; }

/* ── Shared section utilities ── */
section { position: relative; z-index: 2; }
.pad { padding: 110px 56px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}
.tag::before { content: '['; opacity: 0.5; }
.tag::after  { content: ']'; opacity: 0.5; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.01em;
  text-transform: uppercase; line-height: 1;
  max-width: 700px; margin-bottom: 16px;
}
.sec-desc { color: var(--muted); font-size: 15px; font-weight: 300; max-width: 460px; line-height: 1.9; }

/* ── Services ── */
#servicos { background: var(--navy2); }
.svc-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.svc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  padding: 40px 32px 56px;
  position: relative; overflow: hidden;
  transition: border-color .3s, background .3s;
  cursor: none;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0; transition: opacity .35s;
}
.svc-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(180deg, rgba(246,241,223,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.svc-card:hover { border-color: rgba(246,152,39,0.4); background: rgba(20,40,61,0.65); }
.svc-card:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted2); margin-bottom: 24px;
}
.svc-icon {
  width: 48px; height: 48px;
  background: rgba(246,152,39,0.1);
  border: 1px solid rgba(246,152,39,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.svc-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
}
.svc-desc { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.85; }
.svc-arrow {
  position: absolute; bottom: 32px; right: 32px;
  width: 30px; height: 30px; border: 1px solid var(--muted2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); transition: all .25s;
}
.svc-card:hover .svc-arrow { background: var(--orange); border-color: var(--orange); color: #000; }

/* ── Why Averon ── */
#por-que { background: var(--black); }
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.why-visual { position: relative; height: 500px; }
.why-panel {
  position: absolute; top: 0; left: 0; right: 60px; bottom: 90px;
  background: linear-gradient(135deg, rgba(20,40,61,0.7) 0%, rgba(8,12,18,0.5) 100%);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(246,152,39,0.15);
  border-top: 1px solid rgba(246,241,223,0.12);
  padding: 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.why-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,241,223,0.3), transparent);
}
.why-panel-logo { position: absolute; top: 30px; right: 30px; opacity: 0.07; width: 120px; }
.why-panel-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--orange); margin-bottom: 14px; text-transform: uppercase;
}
.why-panel h3 {
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--text); line-height: 1.05;
}
.why-float {
  position: absolute; bottom: 0; right: 0; width: 220px;
  background: var(--orange); padding: 28px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.why-float-val {
  font-family: var(--font-display); font-size: 52px; font-weight: 800;
  color: #000; letter-spacing: -0.04em; line-height: 1;
}
.why-float-lbl { font-size: 12px; color: rgba(0,0,0,0.65); margin-top: 6px; font-weight: 500; }
.scanline {
  position: absolute; top: 30px; left: 60%; width: 1px; height: 160px;
  background: linear-gradient(180deg, transparent, var(--orange), transparent);
  animation: scan 3s ease-in-out infinite;
}
.why-points { list-style: none; margin-top: 36px; }
.why-points li {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid rgba(246,152,39,0.08);
  font-size: 15px; color: var(--muted); font-weight: 300;
  align-items: flex-start; transition: color .2s;
}
.why-points li:hover { color: var(--text); }
.why-points li::before { content: '►'; color: var(--orange); flex-shrink: 0; font-size: 10px; margin-top: 5px; }

/* ── Clients ── */
#clientes { background: var(--navy2); }
.clients-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 60px; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.client-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; transition: all .3s; cursor: none;
  position: relative; overflow: hidden;
}
.client-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(246,241,223,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.client-card:hover { border-color: rgba(246,152,39,0.4); background: rgba(20,40,61,0.65); }
.client-slot { width: 100px; height: 44px; display: flex; align-items: center; justify-content: center; }
.client-slot img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1) brightness(1.8); transition: filter .3s;
}
.client-card:hover .client-slot img { filter: grayscale(0) brightness(1); }
.client-placeholder {
  width: 100%; height: 100%;
  background: rgba(74,86,99,0.3);
  border: 1px dashed rgba(74,86,99,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--muted2); text-transform: uppercase;
}
.client-name {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2);
}

/* ── Process ── */
#processo { background: var(--black); }
.proc-layout { display: grid; grid-template-columns: 320px 1fr; gap: 100px; align-items: start; }
.proc-steps { display: flex; flex-direction: column; }
.proc-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 0 20px; padding: 26px 0;
  border-bottom: 1px solid rgba(246,152,39,0.08);
  cursor: none; transition: all .2s;
}
.proc-step:hover .p-num { color: var(--orange); }
.p-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted2); padding-top: 4px; transition: color .2s;
}
.p-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); margin-bottom: 8px;
}
.p-desc { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.75; }

/* ── Contact / CTA ── */
#contato {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--black) 100%);
  border-top: 1px solid rgba(246,152,39,0.12);
}
.cta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.95; margin-bottom: 24px;
}
.cta-title em { font-style: normal; color: var(--orange); }
.cta-sub { color: var(--muted); font-weight: 300; font-size: 15px; line-height: 1.9; margin-bottom: 36px; }
.cta-checks { display: flex; flex-direction: column; gap: 12px; }
.cta-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cta-check::before { content: '✓'; color: var(--orange); font-weight: 700; }
.cta-form {
  background: rgba(20,40,61,0.4);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(246,241,223,0.08);
  border-top: 1px solid rgba(246,241,223,0.15);
  padding: 40px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.cta-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,241,223,0.25), transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-input, .f-select {
  background: rgba(8,12,18,0.8);
  border: 1px solid rgba(74,86,99,0.4);
  color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  padding: 14px 18px; outline: none;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: border-color .2s;
  width: 100%;
}
.f-input::placeholder { color: var(--muted2); }
.f-input:focus, .f-select:focus { border-color: var(--orange); }
.f-select { cursor: none; }
.f-select option { background: var(--navy); }
.btn-send {
  background: var(--orange); color: #000;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 18px 36px; border: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: none; transition: all .2s; align-self: flex-start; margin-top: 4px;
}
.btn-send:hover { background: var(--orange2); transform: translateY(-2px); }

/* ── Footer ── */
footer {
  background: var(--black); padding: 44px 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(246,152,39,0.1);
}
.foot-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-logo img { height: 28px; filter: brightness(1.1); }
.foot-logo-txt {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.foot-links { display: flex; gap: 24px; list-style: none; }
.foot-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color .2s;
}
.foot-links a:hover { color: var(--orange); }
.foot-copy { font-family: var(--font-mono); font-size: 11px; color: var(--muted2); }

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: translateY(0); }
.rv2 { transition-delay: .12s; }
.rv3 { transition-delay: .22s; }

/* ── Keyframes ── */
@keyframes up   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scan { 0%,100% { opacity:.3; transform:translateY(0); } 50% { opacity:.9; transform:translateY(20px); } }

/* ── Mobile ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 110px 24px 70px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .pad { padding: 70px 24px; }
  .svc-grid, .clients-grid { grid-template-columns: 1fr 1fr; }
  .svc-header, .clients-top { flex-direction: column; gap: 24px; align-items: flex-start; }
  .why-layout, .proc-layout, .cta-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { height: 300px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  body { cursor: auto; }
  .cur, .cur-ring { display: none; }
}
