/* =========================================================
   INFOSECURITY SOLUÇÕES DIGITAIS — Design System
   Conceito: "Hub de Sistemas" — a Infosecurity como núcleo
   central conectado a cada produto (ERP, WEB, FOOD, etc.)
   por linhas de dados vivas. Paleta noturna de datacenter
   com gradiente ciano→violeta e destaque âmbar para ação.
   ========================================================= */

:root{
  /* --- cor --- */
  --bg:            #070B14;
  --bg-soft:       #0B1120;
  --surface:       rgba(255,255,255,0.045);
  --surface-strong:rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);

  --cyan:    #22D3EE;
  --violet:  #7C6CF6;
  --indigo:  #4F5FF5;
  --amber:   #F5A623;
  --amber-2: #FFC163;

  --text-hi:  #EEF2FA;
  --text-mid: #AEB8CC;
  --text-low: #6C7690;

  --grad-brand: linear-gradient(120deg, var(--cyan) 0%, var(--indigo) 55%, var(--violet) 100%);
  --grad-amber: linear-gradient(120deg, var(--amber) 0%, var(--amber-2) 100%);

  /* --- tipografia --- */
  --f-display: "Space Grotesk", "Inter", sans-serif;
  --f-body:    "Inter", sans-serif;
  --f-mono:    "JetBrains Mono", monospace;

  /* --- layout --- */
  --maxw: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(124,108,246,0.20), transparent 60%),
    radial-gradient(900px 500px at 8% 8%, rgba(34,211,238,0.13), transparent 55%),
    var(--bg);
  color:var(--text-mid);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit;}
::selection{background:var(--indigo); color:#fff;}

h1,h2,h3,h4{
  font-family:var(--f-display);
  color:var(--text-hi);
  margin:0;
  letter-spacing:-0.01em;
  font-weight:600;
}
.eyebrow{
  font-family:var(--f-mono);
  font-size:12.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--cyan);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--cyan);
  display:inline-block;
}

.container{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
.section{padding:120px 0;}
.section-head{max-width:640px; margin-bottom:64px;}
.section-head h2{font-size:clamp(28px,4vw,42px); margin-top:14px; line-height:1.15;}
.section-head p{margin-top:16px; font-size:17px; color:var(--text-mid);}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

/* reveal-on-scroll */
[data-reveal]{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{opacity:1; transform:translateY(0);}
[data-reveal-stagger] > *{
  opacity:0; transform:translateY(24px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal-stagger].is-visible > *{opacity:1; transform:translateY(0);}

/* =============== BOTÕES =============== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--grad-amber);
  color:#1A1206;
  box-shadow:0 10px 30px -8px rgba(245,166,35,0.55);
}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 38px -8px rgba(245,166,35,0.65);}
.btn-ghost{
  background:var(--surface);
  color:var(--text-hi);
  border-color:var(--border-strong);
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{background:var(--surface-strong); transform:translateY(-2px);}
.btn-sm{padding:10px 18px; font-size:13px;}
.btn svg{width:16px; height:16px;}

/* =============== HEADER =============== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  padding:12px 0;
  background:rgba(7,11,20,0.78);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom-color:var(--border);
}
.site-header .container{display:flex; align-items:center; justify-content:space-between; gap:24px;}
.brand{display:flex; align-items:center; gap:11px; font-family:var(--f-display); font-weight:700; font-size:18px; color:var(--text-hi);}
.brand .mark{
  width:34px; height:34px; border-radius:9px;
  background:var(--grad-brand);
  display:grid; place-items:center;
  position:relative;
  box-shadow:0 0 0 1px rgba(255,255,255,0.12) inset;
}
.brand .mark svg{width:19px; height:19px;}
.brand small{display:block; font-family:var(--f-mono); font-weight:500; font-size:9.5px; color:var(--text-low); letter-spacing:.14em; margin-top:1px;}

.nav-desktop{display:flex; align-items:center; gap:2px;}
.nav-desktop > li > a{
  padding:10px 16px; font-size:14px; color:var(--text-mid); font-weight:500;
  border-radius:999px; transition:color .25s, background .25s;
}
.nav-desktop > li > a:hover{color:var(--text-hi); background:var(--surface);}
.nav-desktop .has-mega{position:relative;}
.mega{
  position:absolute; top:120%; left:50%; transform:translate(-50%,8px);
  width:560px; padding:18px;
  background:rgba(13,18,32,0.97);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-md);
  display:grid; grid-template-columns:repeat(2,1fr); gap:4px;
  opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
}
.has-mega:hover .mega{opacity:1; pointer-events:auto; transform:translate(-50%,0);}
.mega a{
  display:flex; align-items:center; gap:10px;
  padding:11px 12px; border-radius:10px; font-size:13.5px; color:var(--text-mid);
  transition:background .2s, color .2s;
}
.mega a:hover{background:var(--surface); color:var(--text-hi);}
.mega a .dot{width:7px; height:7px; border-radius:50%; background:var(--grad-brand); flex:none;}

.header-actions{display:flex; align-items:center; gap:12px;}
.burger{display:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); align-items:center; justify-content:center; cursor:pointer;}
.burger span{width:16px; height:1.5px; background:var(--text-hi); position:relative; display:block;}
.burger span::before,.burger span::after{content:""; position:absolute; width:16px; height:1.5px; background:var(--text-hi); left:0;}
.burger span::before{top:-5px;} .burger span::after{top:5px;}

/* mobile nav */
.mobile-nav{
  position:fixed; inset:0; z-index:200; background:rgba(6,9,16,0.98);
  backdrop-filter:blur(10px);
  display:flex; flex-direction:column;
  padding:24px 24px 40px;
  transform:translateX(100%); transition:transform .45s var(--ease);
}
.mobile-nav.open{transform:translateX(0);}
.mobile-nav-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:32px;}
.mobile-nav a{display:block; padding:16px 4px; font-size:20px; color:var(--text-hi); font-family:var(--f-display); border-bottom:1px solid var(--border);}
.mobile-nav .sub-links{padding-left:12px;}
.mobile-nav .sub-links a{font-size:15px; padding:12px 4px; color:var(--text-mid); border-bottom:1px solid rgba(255,255,255,0.05);}
.mobile-close{width:40px; height:40px; border-radius:10px; border:1px solid var(--border-strong); display:grid; place-items:center; color:var(--text-hi); cursor:pointer;}

/* =============== HERO =============== */
.hero{
  position:relative;
  padding:190px 0 120px;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;
}
.hero-copy .eyebrow{margin-bottom:22px;}
.hero-copy h1{
  font-size:clamp(38px,5.4vw,64px);
  line-height:1.05;
}
.hero-copy h1 em{
  font-style:normal;
  background:var(--grad-brand);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p.lede{
  margin-top:24px; font-size:18px; color:var(--text-mid); max-width:480px;
}
.hero-actions{display:flex; align-items:center; gap:16px; margin-top:38px; flex-wrap:wrap;}
.hero-note{display:flex; align-items:center; gap:9px; font-size:13px; color:var(--text-low); font-family:var(--f-mono);}
.hero-note .live-dot{width:7px; height:7px; border-radius:50%; background:#33E29B; box-shadow:0 0 0 4px rgba(51,226,155,0.18); animation:pulse-dot 2s infinite;}
@keyframes pulse-dot{0%,100%{opacity:1;}50%{opacity:.35;}}

.hero-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:36px;}
.hero-tags span{
  font-family:var(--f-mono); font-size:12px; color:var(--text-low);
  border:1px solid var(--border); padding:7px 12px; border-radius:999px;
}

/* --- diagrama hub-and-spoke (elemento assinatura) --- */
.hub-wrap{position:relative; aspect-ratio:1/1; max-width:520px; margin:0 auto;}
.hub-wrap svg{width:100%; height:100%; overflow:visible;}
.hub-line{
  fill:none; stroke:url(#lineGrad); stroke-width:1.4; opacity:.55;
  stroke-dasharray:6 8;
  animation:dash-flow 18s linear infinite;
}
@keyframes dash-flow{to{stroke-dashoffset:-500;}}
.hub-core{
  filter:drop-shadow(0 0 22px rgba(124,108,246,0.55));
}
.hub-core-circle{animation:core-pulse 3.4s ease-in-out infinite;}
@keyframes core-pulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.045); }
}
.hub-node{
  transition:transform .3s var(--ease);
  transform-origin:center;
  animation:node-float 6s ease-in-out infinite;
}
.hub-node:nth-child(odd){animation-delay:-2s;}
.hub-node:nth-child(3n){animation-delay:-4s;}
@keyframes node-float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
.hub-node-label{
  font-family:var(--f-mono); font-size:9.5px; fill:var(--text-mid); letter-spacing:.04em;
}
.hub-core-label{font-family:var(--f-display); font-weight:700; fill:var(--text-hi); font-size:12.5px;}
.hub-pulse{
  fill:none; stroke:var(--cyan); stroke-width:1.2; opacity:0;
  animation:pulse-ring 3.6s var(--ease) infinite;
}
.hub-pulse:nth-child(2){animation-delay:1.2s;}
.hub-pulse:nth-child(3){animation-delay:2.4s;}
@keyframes pulse-ring{
  0%{ r:56; opacity:.5; }
  100%{ r:190; opacity:0; }
}

/* =============== FAIXA DE STATS =============== */
.stats-strip{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.stats-strip .container{
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:44px 28px;
}
.stat{text-align:center; position:relative;}
.stat + .stat::before{
  content:""; position:absolute; left:0; top:8px; bottom:8px; width:1px; background:var(--border);
}
.stat .num{
  font-family:var(--f-display); font-weight:700; font-size:clamp(26px,3.4vw,38px);
  background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat .label{margin-top:6px; font-size:13px; color:var(--text-low); font-family:var(--f-mono); letter-spacing:.04em;}

/* =============== PRODUTOS =============== */
.products-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.product-card{
  position:relative;
  padding:26px 22px 24px;
  border-radius:var(--radius-md);
  background:var(--surface);
  border:1px solid var(--border);
  overflow:hidden;
  transition:transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.product-card::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(180px 120px at var(--mx,50%) var(--my,0%), rgba(124,108,246,0.22), transparent 70%);
  opacity:0; transition:opacity .4s;
}
.product-card:hover::before{opacity:1;}
.product-card:hover{transform:translateY(-6px); border-color:var(--border-strong); background:var(--surface-strong);}
.product-card .icon{
  width:44px; height:44px; border-radius:12px;
  background:var(--grad-brand); display:grid; place-items:center; margin-bottom:18px;
  box-shadow:0 8px 22px -8px rgba(79,95,245,0.6);
}
.product-card .icon svg{width:22px; height:22px; color:#0B1120;}
.product-card h3{font-size:17px; margin-bottom:6px; display:flex; align-items:center; gap:8px;}
.product-card h3 .tag{font-family:var(--f-mono); font-size:9.5px; color:var(--cyan); border:1px solid rgba(34,211,238,0.35); padding:2px 7px; border-radius:6px; font-weight:500;}
.product-card p{font-size:13.6px; color:var(--text-low); margin:0 0 16px;}
.product-card .go{font-size:13px; font-weight:600; color:var(--text-hi); display:inline-flex; align-items:center; gap:6px;}
.product-card .go svg{width:13px; height:13px; transition:transform .3s var(--ease);}
.product-card:hover .go svg{transform:translateX(4px);}

/* =============== POR QUE / FEATURES =============== */
.why-wrap{display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:start;}
.why-list{display:flex; flex-direction:column;}
.why-item{
  display:flex; gap:20px; padding:26px 0;
  border-top:1px solid var(--border);
}
.why-item:last-child{border-bottom:1px solid var(--border);}
.why-item .n{font-family:var(--f-mono); color:var(--text-low); font-size:13px; padding-top:3px;}
.why-item h4{font-size:17px; margin-bottom:8px;}
.why-item p{font-size:14.5px; color:var(--text-low); margin:0; max-width:480px;}
.why-visual{
  position:sticky; top:120px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  padding:8px;
  background:var(--surface);
}
.why-visual img{border-radius:calc(var(--radius-lg) - 8px); filter:saturate(0.85) brightness(0.85);}
.why-visual .glow{
  position:absolute; width:220px; height:220px; border-radius:50%;
  background:var(--violet); filter:blur(90px); opacity:.35; z-index:-1;
  top:-40px; right:-40px;
}

/* =============== SEGMENTOS (marquee) =============== */
.segments{overflow:hidden; position:relative;}
.segments::before,.segments::after{
  content:""; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none;
}
.segments::before{left:0; background:linear-gradient(90deg, var(--bg), transparent);}
.segments::after{right:0; background:linear-gradient(-90deg, var(--bg), transparent);}
.marquee-track{display:flex; gap:16px; width:max-content; animation:marquee 42s linear infinite;}
.segments:hover .marquee-track{animation-play-state:paused;}
@keyframes marquee{from{transform:translateX(0);} to{transform:translateX(-50%);}}
.seg-chip{
  display:flex; align-items:center; gap:12px;
  padding:14px 22px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface);
  font-size:14.5px; color:var(--text-hi); font-weight:500;
  white-space:nowrap;
}
.seg-chip .dot{width:6px; height:6px; border-radius:50%; background:var(--grad-amber);}

/* =============== CTA BANNER =============== */
.cta-banner{
  position:relative;
  border-radius:var(--radius-lg);
  padding:70px 60px;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(600px 300px at 85% 90%, rgba(124,108,246,0.22), transparent 60%),
    #0D1424;
  border:1px solid var(--border-strong);
  overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.cta-banner::before{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(circle at 50% 50%, black, transparent 75%);
}
.cta-banner h2{font-size:clamp(24px,3.2vw,34px); max-width:460px; position:relative;}
.cta-actions{display:flex; gap:14px; position:relative; flex-wrap:wrap;}

/* =============== CONTATO =============== */
.contact-wrap{display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px;}
.contact-info h2{font-size:clamp(26px,3.6vw,36px);}
.contact-info p{margin-top:16px; font-size:15.5px;}
.contact-cards{margin-top:34px; display:flex; flex-direction:column; gap:14px;}
.contact-card{
  display:flex; gap:16px; align-items:flex-start;
  padding:18px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface);
}
.contact-card .ic{width:38px; height:38px; border-radius:10px; background:var(--surface-strong); display:grid; place-items:center; flex:none; color:var(--cyan);}
.contact-card .ic svg{width:18px; height:18px;}
.contact-card strong{display:block; color:var(--text-hi); font-size:14.5px; margin-bottom:2px;}
.contact-card span, .contact-card a{font-size:13.6px;}

.form-card{
  border-radius:var(--radius-lg); border:1px solid var(--border); background:var(--surface);
  padding:36px;
}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:12.5px; font-family:var(--f-mono); letter-spacing:.04em; color:var(--text-low); margin-bottom:8px;}
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border-radius:10px;
  background:rgba(255,255,255,0.03); border:1px solid var(--border);
  color:var(--text-hi); font-family:var(--f-body); font-size:14.5px;
  transition:border-color .25s, background .25s;
}
.field select{appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center;}
.field textarea{resize:vertical; min-height:110px;}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--indigo); background:rgba(255,255,255,0.05);}
.form-foot{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:6px; flex-wrap:wrap;}
.form-msg{font-size:13.5px; font-family:var(--f-mono);}
.form-msg.ok{color:#33E29B;}
.form-msg.err{color:#FF6B6B;}
.btn-submit{border:none; cursor:pointer;}
.btn-submit[disabled]{opacity:.6; cursor:progress;}

/* =============== FOOTER =============== */
.site-footer{
  border-top:1px solid var(--border);
  padding:64px 0 28px;
  background:var(--bg-soft);
}
.footer-top{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px;}
.footer-brand p{margin-top:14px; font-size:14px; max-width:280px;}
.footer-social{display:flex; gap:10px; margin-top:20px;}
.footer-social a{width:38px; height:38px; border-radius:10px; border:1px solid var(--border); display:grid; place-items:center; transition:border-color .25s, background .25s;}
.footer-social a:hover{border-color:var(--border-strong); background:var(--surface);}
.footer-social svg{width:17px; height:17px; color:var(--text-hi);}
.footer-col h5{font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-low); margin-bottom:16px; font-weight:500;}
.footer-col a, .footer-col span{display:block; font-size:14px; color:var(--text-mid); padding:6px 0; transition:color .2s;}
.footer-col a:hover{color:var(--text-hi);}
.footer-bottom{
  border-top:1px solid var(--border); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:12.5px; color:var(--text-low); font-family:var(--f-mono);
}

/* =============== BACK TO TOP =============== */
.to-top{
  position:fixed; right:24px; bottom:24px; z-index:80;
  width:46px; height:46px; border-radius:50%;
  background:var(--surface-strong); border:1px solid var(--border-strong);
  display:grid; place-items:center; color:var(--text-hi);
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .3s, transform .3s;
  backdrop-filter:blur(8px);
}
.to-top.visible{opacity:1; pointer-events:auto; transform:translateY(0);}
.to-top svg{width:18px; height:18px;}

/* =============== RESPONSIVO =============== */
@media (max-width:1080px){
  .products-grid{grid-template-columns:repeat(2,1fr);}
  .why-wrap{grid-template-columns:1fr;}
  .why-visual{position:static;}
  .contact-wrap{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr 1fr;}
}
@media (max-width:900px){
  .nav-desktop, .header-actions .btn-ghost{display:none;}
  .burger{display:flex;}
  .hero-grid{grid-template-columns:1fr;}
  .hero{padding:150px 0 80px;}
  .hub-wrap{max-width:380px;}
  .stats-strip .container{grid-template-columns:repeat(2,1fr); row-gap:28px;}
  .stat + .stat::before{display:none;}
}
@media (max-width:640px){
  .section{padding:80px 0;}
  .products-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .cta-banner{padding:44px 26px;}
  .footer-top{grid-template-columns:1fr 1fr; gap:28px;}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}
