/* =========================================================
   SKYLAB — ASSISTÊNCIA TÉCNICA
   Liquid glass · diagnostic-panel system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* background */
  --void:#050810;

  /* glass — tuned per breakpoint below so low-end phones stay smooth */
  --border:rgba(166,206,255,0.14);
  --border-hover:rgba(79,168,255,0.45);
  --glass-bg:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  --glass-blur:blur(20px) saturate(150%);
  --orb-blur:90px;

  /* brand blue — lifted from the logo gradient */
  --blue-deep:#11308f;
  --blue-core:#2b62e8;
  --blue-bright:#49a3ff;
  --ice:#bfe6ff;

  /* whatsapp */
  --wa:#25d366;
  --wa-glow:rgba(37,211,102,0.35);

  /* text */
  --text-1:#f3f7fc;
  --text-2:#93a4c2;
  --text-3:#5a6c8c;

  /* type */
  --f-display:'Bricolage Grotesque', 'Manrope', sans-serif;
  --f-body:'Manrope', -apple-system, sans-serif;
  --f-mono:'JetBrains Mono', monospace;

  /* shape */
  --r-m:18px;
  --r-l:28px;

  --ease:cubic-bezier(.22,.61,.36,1);
  --container:1160px;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--void);
  color:var(--text-1);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  position:relative;
}

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

a, button{
  color:inherit;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent; /* kills the gray flash Android leaves on tap */
  touch-action:manipulation;               /* removes the 300ms tap delay on phones */
}
ul{ list-style:none; }
button{ font:inherit; background:none; border:none; cursor:pointer; }
.mono{ font-family:var(--f-mono); letter-spacing:.04em; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

/* ---------- ambient background ---------- */
.noise{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb{
  position:fixed; z-index:0; border-radius:50%;
  filter:blur(var(--orb-blur)); pointer-events:none;
  opacity:.55;
  will-change:transform;
}
.orb--a{
  width:560px; height:560px; top:-180px; left:-120px;
  background:radial-gradient(circle, var(--blue-deep), transparent 70%);
  animation:drift-a 26s ease-in-out infinite;
}
.orb--b{
  width:520px; height:520px; top:280px; right:-200px;
  background:radial-gradient(circle, var(--blue-core), transparent 70%);
  animation:drift-b 32s ease-in-out infinite;
}
.orb--c{
  width:420px; height:420px; bottom:-160px; left:30%;
  background:radial-gradient(circle, var(--blue-bright), transparent 72%);
  opacity:.3;
  animation:drift-a 38s ease-in-out infinite reverse;
}
@keyframes drift-a{
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(40px,30px); }
}
@keyframes drift-b{
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(-50px,40px); }
}

/* ---------- glass surface (shared by nav, cards, panels, footer) ---------- */
.glass{
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
  position:relative;
}
.glass::before{
  content:'';
  position:absolute; inset:0;
  border-radius:inherit;
  background:radial-gradient(120% 70% at 12% -10%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events:none;
}

/* ---------- reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay:calc(var(--index, 0) * 90ms);
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- banner ---------- */
.banner{
  position:relative; z-index:40;
  display:flex; align-items:center; justify-content:center; gap:14px;
  padding:10px 44px 10px 16px;
  background:linear-gradient(90deg, var(--blue-deep), var(--blue-core));
  font-size:.82rem; font-weight:600; letter-spacing:.01em;
  text-align:center;
  transition:max-height .4s var(--ease), opacity .4s var(--ease), padding .4s var(--ease);
}
.banner__dot{
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background:#fff; margin-right:6px; vertical-align:middle;
  box-shadow:0 0 0 0 rgba(255,255,255,.6);
  animation:pulse-dot 1.8s ease-in-out infinite;
}
.banner__close{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; opacity:.8; transition:opacity .2s var(--ease), background .2s var(--ease);
}
.banner.is-hidden{ max-height:0; padding-top:0; padding-bottom:0; opacity:0; overflow:hidden; }

@keyframes pulse-dot{
  0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,.5); }
  50%{ box-shadow:0 0 0 5px rgba(255,255,255,0); }
}

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:30;
  padding:14px 0;
  transition:padding .35s var(--ease);
}
.nav__inner{
  max-width:var(--container);
  margin-inline:auto;
  padding:8px 14px 8px 18px;
  display:flex; align-items:center; gap:20px;
  background:rgba(10,17,36,0.5);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
  border-radius:var(--r-l);
  transition:background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled .nav__inner{
  background:rgba(8,13,28,0.78);
  box-shadow:0 18px 40px -24px rgba(0,0,0,.7);
}

/* brand lockup — small mark + wordmark, side by side, like the original */
.nav__brand{
  display:flex; align-items:center; gap:9px;
  font-family:var(--f-display); font-weight:700; font-size:1.05rem;
  margin-right:auto;
}
.nav__brand-mark{ width:30px; height:30px; border-radius:8px; object-fit:cover; }
.nav__brand-fallback{
  display:none; width:30px; height:30px; border-radius:8px;
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  align-items:center; justify-content:center; font-size:.7rem; font-weight:800;
}
.nav__brand-text em{ font-style:normal; color:var(--blue-bright); }

.nav__links{ display:flex; gap:26px; font-size:.92rem; font-weight:500; color:var(--text-2); }
.nav__links a{ transition:color .2s var(--ease); position:relative; }
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:1px;
  background:var(--blue-bright); transition:width .25s var(--ease);
}

.nav__right{ display:flex; align-items:center; gap:14px; }
.status-pill{
  display:flex; align-items:center; gap:7px;
  font-size:.76rem; font-family:var(--f-mono); color:var(--text-2);
  padding:6px 12px; border-radius:999px; border:1px solid var(--border);
}
.status-pill__dot{
  width:6px; height:6px; border-radius:50%; background:#3ddc84;
  box-shadow:0 0 0 0 rgba(61,220,132,.6);
  animation:pulse-dot 1.8s ease-in-out infinite;
}

.nav__toggle{
  display:none; flex-direction:column; gap:5px; width:28px; padding:6px;
}
.nav__toggle span{ height:2px; width:100%; background:var(--text-1); border-radius:2px; transition:transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2){ opacity:0; }
.nav__toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav__mobile{
  display:none;
  flex-direction:column; gap:4px;
  max-width:var(--container); margin:8px auto 0; padding:14px 16px 16px;
  background:rgba(8,13,28,0.88);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border); border-radius:var(--r-m);
  font-size:.95rem;
}
.nav__mobile a{ padding:11px 4px; color:var(--text-2); border-bottom:1px solid rgba(255,255,255,.06); }
.nav__mobile.is-open{ display:flex; }

.nav__mobile-ctas{
  display:flex; flex-direction:column; gap:10px;
  margin-top:14px;
}
.nav__mobile-ctas .btn{ width:100%; justify-content:center; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 22px; border-radius:999px;
  font-weight:600; font-size:.92rem;
  border:1px solid transparent;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.96); } /* the feedback that matters on touch */

.btn--whatsapp{
  background:linear-gradient(135deg, #1fb959, var(--wa));
  color:#06140c;
  box-shadow:0 14px 32px -16px var(--wa-glow);
}

.btn--glass{
  background:rgba(255,255,255,0.05);
  border-color:var(--border);
  color:var(--text-1);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.btn--ghost{
  color:var(--text-2);
  padding:13px 18px;
}

.btn--nav{
  padding:9px 18px; font-size:.84rem;
  background:linear-gradient(135deg, var(--blue-core), var(--blue-bright));
  box-shadow:0 10px 24px -12px rgba(43,98,232,.6);
}

/* hover-only refinements — gated behind (hover:hover) so touchscreens never
   get a "stuck" hover state after a tap (this was the main source of the
   janky feel on Android) */
@media (hover:hover) and (pointer:fine){
  .nav__links a:hover{ color:var(--text-1); }
  .nav__links a:hover::after{ width:100%; }
  .banner__close:hover{ opacity:1; background:rgba(255,255,255,.12); }
  .btn--whatsapp:hover{ transform:translateY(-2px); box-shadow:0 18px 38px -16px var(--wa-glow); }
  .btn--glass:hover{ border-color:var(--border-hover); background:rgba(79,168,255,0.1); transform:translateY(-2px); }
  .btn--ghost:hover{ color:var(--text-1); }
  .btn--nav:hover{ transform:translateY(-1px); }
  .social:hover{ color:var(--blue-bright); border-color:var(--border-hover); transform:translateY(-2px); }
  .card:hover{
    transform:translateY(-6px);
    border-color:var(--border-hover);
    box-shadow:0 30px 60px -28px rgba(43,98,232,.4);
  }
  .card:hover::after{ opacity:1; animation:scan 1.8s ease-in-out infinite; }
}

/* ---------- hero ---------- */
.hero{ position:relative; z-index:1; padding:88px 0 60px; }
.hero__grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:7px;
  font-size:.8rem; font-weight:600; color:var(--blue-bright);
  text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:18px;
}

.hero__title{
  font-family:var(--f-display); font-weight:700;
  font-size:clamp(2.4rem, 4.6vw, 3.8rem);
  line-height:1.06; letter-spacing:-.01em;
  margin-bottom:22px;
}
.grad{
  background:linear-gradient(100deg, var(--blue-bright), var(--ice) 60%, var(--blue-core));
  background-size:200% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:sheen 7s ease-in-out infinite;
}
@keyframes sheen{
  0%,100%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
}

.hero__lead{
  font-size:1.08rem; color:var(--text-2); max-width:46ch; margin-bottom:34px;
}

.hero__ctas{ display:flex; flex-direction:column; gap:14px; margin-bottom:30px; }
.hero__ctas-top{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.hero__ctas-bottom{ display:flex; flex-wrap:wrap; gap:12px; }

.hero__brand-badge{
  width:54px; height:54px; border-radius:50%;
  object-fit:cover;
  border:1px solid var(--border-hover);
  box-shadow:0 12px 28px -14px rgba(43,98,232,.6), inset 0 1px 0 rgba(255,255,255,.25);
  flex-shrink:0;
}
.hero__brand-badge-fallback{
  display:none; width:54px; height:54px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  align-items:center; justify-content:center;
  font-family:var(--f-display); font-weight:800; font-size:.78rem; color:#fff;
  flex-shrink:0;
}

.hero__trust{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  font-size:.72rem; color:var(--text-3);
}
.hero__trust-sep{ opacity:.5; }

/* ---------- diagnostic panel (signature element) ---------- */
.hero__panel{ position:relative; }
.diag{
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
  border-radius:var(--r-l);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 30px 70px -30px rgba(0,0,0,.7);
  padding:26px 26px 22px;
  position:relative;
  overflow:hidden;
}
.diag::before{
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:radial-gradient(120% 70% at 10% -10%, rgba(255,255,255,.18), transparent 55%);
  pointer-events:none;
}
.diag__head{
  display:flex; align-items:center; gap:9px;
  font-size:.72rem; color:var(--text-2); letter-spacing:.08em;
  margin-bottom:22px;
}
.diag__dot{
  width:7px; height:7px; border-radius:50%; background:var(--blue-bright);
  box-shadow:0 0 10px 2px rgba(79,168,255,.7);
  animation:pulse-dot 1.6s ease-in-out infinite;
}

.diag__device{
  display:flex; justify-content:center; margin-bottom:24px;
}
.diag__device-frame{
  position:relative;
  width:148px; height:280px;
  border-radius:26px;
  border:2px solid rgba(166,206,255,.25);
  background:linear-gradient(160deg, rgba(20,32,62,.9), rgba(8,13,28,.95));
  overflow:hidden;
  box-shadow:0 25px 50px -22px rgba(0,0,0,.8);
}
.diag__notch{
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:46px; height:6px; border-radius:4px; background:rgba(255,255,255,.12);
}
.diag__beam{
  position:absolute; left:0; right:0; height:46%;
  background:linear-gradient(180deg, transparent, rgba(79,168,255,.35) 45%, rgba(191,230,255,.55) 50%, rgba(79,168,255,.35) 55%, transparent);
  animation:scan 3.2s ease-in-out infinite;
}
@keyframes scan{
  0%{ top:-46%; }
  50%{ top:100%; }
  100%{ top:-46%; }
}

.diag__readout{ display:flex; flex-direction:column; gap:11px; }
.diag__readout li{
  display:flex; justify-content:space-between;
  font-size:.74rem; color:var(--text-3);
  padding-bottom:10px; border-bottom:1px dashed rgba(255,255,255,.08);
}
.diag__readout li:last-child{ border-bottom:none; padding-bottom:0; }
.diag__readout span:last-child{ color:var(--text-2); font-weight:500; }
.is-ok{ color:#3ddc84 !important; }
.is-live{ color:var(--blue-bright) !important; }

/* ---------- divider ---------- */
.divider{
  height:1px; max-width:var(--container); margin:10px auto 0; padding-inline:24px;
  background:linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---------- section heads ---------- */
.section-head{ max-width:640px; margin-bottom:48px; }
.section-title{
  font-family:var(--f-display); font-weight:700;
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing:-.01em; margin-bottom:14px;
}
.section-text{ color:var(--text-2); font-size:1rem; max-width:52ch; }

/* ---------- services ---------- */
.services{ position:relative; z-index:1; padding:90px 0; }
.cards{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;
}
.card{
  padding:28px 24px;
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
  border-radius:var(--r-m);
  position:relative; overflow:hidden;
  transition:transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before{
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:radial-gradient(120% 70% at 12% -10%, rgba(255,255,255,.16), transparent 55%);
  pointer-events:none;
}
.card::after{
  content:'';
  position:absolute; left:0; right:0; top:-40%; height:40%;
  background:linear-gradient(180deg, transparent, rgba(79,168,255,.5), transparent);
  opacity:0; transition:opacity .3s var(--ease);
}

.card__code{
  position:absolute; top:22px; right:24px;
  font-size:.66rem; color:var(--text-3); letter-spacing:.06em;
}
.card__icon{
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(43,98,232,.25), rgba(79,168,255,.1));
  color:var(--blue-bright);
  margin-bottom:20px;
}
.card__title{ font-family:var(--f-display); font-size:1.06rem; font-weight:600; margin-bottom:10px; }
.card__text{ font-size:.88rem; color:var(--text-2); line-height:1.55; }

/* ---------- why ---------- */
.why{ position:relative; z-index:1; padding:30px 0 100px; }
.why__strip{
  display:grid; grid-template-columns:repeat(3, 1fr);
  border-radius:var(--r-l);
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
  overflow:hidden;
}
.why__item{
  padding:38px 32px;
  border-left:1px solid var(--border);
}
.why__item:first-child{ border-left:none; }
.why__code{
  display:block; font-size:.74rem; color:var(--blue-bright); margin-bottom:14px;
}
.why__item h3{ font-family:var(--f-display); font-size:1.08rem; font-weight:600; margin-bottom:10px; }
.why__item p{ font-size:.88rem; color:var(--text-2); line-height:1.6; }

/* ---------- footer ---------- */
.footer{ position:relative; z-index:1; padding:0 0 50px; }
.footer__panel{
  padding:42px;
  border-radius:var(--r-l);
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--border);
}
.footer__main{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.footer__brand{ display:flex; align-items:center; gap:16px; }
.footer__logo-frame{ flex-shrink:0; }
.footer__logo{
  display:block;
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(79,168,255,0.35);
}
.footer__logo-fallback{
  display:none;
  width:48px; height:48px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  align-items:center; justify-content:center;
  font-weight:800; font-family:var(--f-display);
  font-size:.8rem; color:#fff;
  border:2px solid rgba(79,168,255,0.35);
}
.footer__brand-name{ font-family:var(--f-display); font-weight:700; font-size:1.08rem; margin-bottom:4px; }
.footer__brand-text{ font-size:.86rem; color:var(--text-2); }

.footer__divider{ height:1px; background:var(--border); margin:32px 0 24px; }

.footer__row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.footer__location{ display:flex; align-items:center; gap:8px; font-size:.78rem; color:var(--text-2); }

.footer__socials{ display:flex; gap:10px; }
.social{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); color:var(--text-2);
  transition:color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.footer__copyright{ font-size:.72rem; color:var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero__grid{ grid-template-columns:1fr; gap:48px; }
  .hero__panel{ max-width:340px; margin-inline:auto; }
  .cards{ grid-template-columns:repeat(2, 1fr); }
  .why__strip{ grid-template-columns:1fr; }
  .why__item{ border-left:none; border-top:1px solid var(--border); }
  .why__item:first-child{ border-top:none; }
}

@media (max-width:760px){
  .nav__links, .nav__right{ display:none; }
  .nav__toggle{ display:flex; }
  .footer__main{ flex-direction:column; align-items:flex-start; }
  .footer__cta{ width:100%; justify-content:center; }
}

@media (max-width:600px){
  .cards{ grid-template-columns:1fr; }
  .hero__title{ font-size:2.2rem; }
  .footer__panel{ padding:28px 22px; }
  .container{ padding-inline:18px; }
}

/* ---------- light-device performance pass ----------
   Heavy backdrop-filter blur is the single biggest cost on mid-range
   Android GPUs (e.g. Galaxy A-series). Trimming it here is what actually
   fixes the choppy/blurry feel during scroll and taps — visually almost
   identical, far cheaper to render. */
@media (max-width:760px){
  :root{
    --glass-blur:blur(10px) saturate(130%);
    --orb-blur:50px;
  }
  .orb{ opacity:.35; }
  .orb--a, .orb--b, .orb--c{ animation-duration:42s; }
}

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

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--blue-bright);
  outline-offset:3px;
  border-radius:6px;
}
