/* ============================================
   FLIP TECH 3D — design tokens
   ============================================ */
:root{
  --bg:           #04050b;
  --bg-soft:      #090a11;
  --card:         #121420;
  --card-line:    #232a42;
  --blue:         #1f63e0;
  --blue-deep:    #0a2470;
  --blue-bright:  #4c8dff;
  --cyan:         #10a4c4;
  --white:        #f3f6fb;
  --muted:        #8a96a8;
  --muted-dark:   #5b6177;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container: 1180px;
  --radius: 14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

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

:focus-visible{
  outline:2px solid var(--blue-bright);
  outline-offset:3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{
  background:linear-gradient(135deg, var(--blue), var(--blue-bright));
  color:#06101f;
  box-shadow:0 10px 30px -10px rgba(31,99,224,.65);
}
.btn-primary:hover{ box-shadow:0 14px 36px -8px rgba(76,141,255,.55); }
.btn-ghost{
  background:transparent;
  border-color:var(--card-line);
  color:var(--white);
}
.btn-ghost:hover{ border-color:var(--blue-bright); color:var(--blue-bright); }
.btn-ghost--light{ border-color:rgba(243,246,251,.25); }
.btn-whats{
  background:rgba(76,141,255,.08);
  border:1px solid rgba(76,141,255,.35);
  color:var(--blue-bright);
}
.btn-whats:hover{ background:rgba(76,141,255,.16); }
.btn-sm{ padding:9px 16px; font-size:13px; }
.btn-block{ width:100%; }

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,11,22,.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.logo{ display:flex; align-items:center; }
.logo-img{ height:34px; width:auto; display:block; }
.logo--footer .logo-img{ height:30px; }
.main-nav{ display:flex; gap:32px; }
.main-nav a{
  font-family:var(--font-display);
  font-size:14.5px; font-weight:500;
  color:var(--muted);
  transition:color .15s ease;
}
.main-nav a:hover{ color:var(--white); }
.header-actions{ display:flex; align-items:center; gap:14px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px; height:38px;
  background:transparent;
  border:1px solid var(--card-line);
  border-radius:8px;
  cursor:pointer;
}
.nav-toggle span{
  display:block; height:2px; width:18px;
  background:var(--white); margin:0 auto;
  transition:transform .2s ease, opacity .2s 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); }

/* ============================================
   DOT GRID + SWEEP (signature texture, from brand's IG posts)
   ============================================ */
.hero-dotgrid{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  pointer-events:none;
}
.hero-dotgrid--soft{ opacity:.5; }
.hero-sweep{
  position:absolute; inset:0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(31,99,224,.35) 55%, rgba(76,141,255,.18) 70%, transparent 85%);
  pointer-events:none;
}

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 96px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(31,99,224,.25), transparent 60%),
    var(--bg);
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:48px;
  align-items:center;
}
.eyebrow{
  font-family:var(--font-display);
  font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--blue-bright);
  margin:0 0 16px;
}
.eyebrow-dark{ color:#7ea8ff; }
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight:800;
  line-height:1.08;
  margin:0 0 22px;
  letter-spacing:-.01em;
}
.text-cyan{ color:var(--blue-bright); }
.hero-sub{
  max-width:50ch;
  color:var(--muted);
  font-size:17px;
  margin:0 0 32px;
}
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:48px; }
.hero-stats{
  display:flex; gap:32px; flex-wrap:wrap;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.08);
}
.hero-stats div{ display:flex; flex-direction:column; gap:4px; }
.hero-stats strong{ font-family:var(--font-display); font-size:15px; }
.hero-stats span{ font-size:13px; color:var(--muted-dark); }

/* ---- Signature element: flipping cards (literal "Flip") ---- */
.hero-visual{ display:flex; justify-content:center; }
.flip-stage{
  position:relative;
  width:100%;
  max-width:340px;
  height:340px;
  perspective:1400px;
}
.flip-card{
  position:absolute;
  inset:0;
  margin:auto;
  width:280px; height:280px;
  transform-style:preserve-3d;
  animation: flip-spin 5.4s cubic-bezier(.6,.1,.3,1) infinite;
  animation-delay: var(--d, 0s);
}
.flip-card--2{ width:240px; height:240px; top:20px; left:-30px; }
.flip-card--3{ width:200px; height:200px; top:50px; left:55px; }
.face{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:22px;
  backface-visibility:hidden;
  font-family:var(--font-display);
  font-weight:700;
  font-size:22px;
  text-transform:lowercase;
  border:1px solid rgba(255,255,255,.14);
}
.face-front{
  background:linear-gradient(135deg, var(--blue-deep), var(--blue));
  color:var(--white);
}
.face-back{
  background:linear-gradient(135deg, var(--blue-bright), #2456b8);
  color:#06101f;
  transform:rotateY(180deg);
}
@keyframes flip-spin{
  0%, 38%{ transform:rotateY(0deg); }
  50%, 88%{ transform:rotateY(180deg); }
  100%{ transform:rotateY(360deg); }
}

/* ============================================
   SECTIONS (generic)
   ============================================ */
.section{ padding:104px 0; }
.section-dark{
  position:relative;
  background:var(--bg-soft);
  overflow:hidden;
}
.section-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  line-height:1.18;
  max-width:18ch;
  margin:0 0 16px;
  color:var(--white);
}
.section-title--light{ color:var(--white); }
.section-lead{
  position:relative;
  color:var(--muted);
  max-width:56ch;
  font-size:16px;
  margin:0 0 48px;
}

/* ============================================
   SERVICES
   ============================================ */
#servicos .eyebrow, #servicos .section-title{ position:relative; }
#servicos .section-title{ color:var(--white); margin-bottom:56px; }
.services-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
.service-card{
  background:var(--card);
  border:1px solid var(--card-line);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:transform .2s ease, border-color .2s ease;
}
.service-card:hover{ transform:translateY(-4px); border-color:rgba(76,141,255,.4); }
.service-icon{ width:48px; height:48px; margin-bottom:20px; }
.service-card h3{
  font-family:var(--font-display);
  font-size:17px;
  margin:0 0 10px;
}
.service-card p{
  font-size:14.5px;
  color:var(--muted);
  margin:0;
}

/* ============================================
   PRODUCTS
   ============================================ */
#produtos{ position:relative; }
#produtos .container{ position:relative; }
.products-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.product-card{
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--card-line);
  background:var(--card);
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-5px) scale(1.01);
  box-shadow:0 18px 40px -16px rgba(76,141,255,.35);
}
.product-card img{ width:100%; height:100%; aspect-ratio:1/1.04; object-fit:cover; }
.products-more{ margin-top:40px; text-align:center; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:64px;
  align-items:center;
}
.about-copy p{ color:var(--muted); font-size:16px; }
.about-copy .section-lead{ display:none; }
.about-list{ margin-top:24px; display:flex; flex-direction:column; gap:12px; }
.about-list li{
  position:relative;
  padding-left:28px;
  font-size:15px;
  color:var(--white);
  font-weight:500;
}
.about-list li::before{
  content:"";
  position:absolute; left:0; top:6px;
  width:14px; height:14px;
  border-radius:4px;
  background:linear-gradient(135deg, var(--blue), var(--blue-bright));
}
.about-visual{ display:flex; justify-content:center; }
.about-card{
  position:relative;
  width:100%;
  max-width:340px;
  aspect-ratio:1/1;
  border-radius:24px;
  background:radial-gradient(ellipse at 30% 20%, rgba(31,99,224,.5), var(--bg) 70%);
  border:1px solid var(--card-line);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.about-card-grid{
  position:absolute; inset:0;
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr);
  opacity:.5;
}
.about-card-grid span{ border:1px solid rgba(255,255,255,.06); }
.about-printer{ width:55%; height:55%; position:relative; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
.contact-channels{ display:flex; flex-direction:column; gap:14px; margin-top:36px; }
.contact-channel{
  display:flex; align-items:center; gap:16px;
  padding:16px 18px;
  background:var(--card);
  border:1px solid var(--card-line);
  border-radius:12px;
  color:var(--white);
  transition:border-color .2s ease, transform .2s ease;
}
.contact-channel:not(.contact-channel--static):hover{
  border-color:rgba(76,141,255,.45);
  transform:translateX(4px);
}
.contact-channel svg{ color:var(--blue-bright); flex-shrink:0; }
.contact-channel div{ display:flex; flex-direction:column; gap:2px; }
.contact-channel strong{ font-family:var(--font-display); font-size:14.5px; }
.contact-channel span{ font-size:13.5px; color:var(--muted); }

.contact-form{
  background:var(--card);
  border:1px solid var(--card-line);
  border-radius:18px;
  padding:34px;
  display:flex; flex-direction:column; gap:18px;
}
.contact-form label{
  display:flex; flex-direction:column; gap:8px;
  font-family:var(--font-display);
  font-size:13.5px; font-weight:500;
  color:var(--muted);
}
.contact-form input,
.contact-form textarea{
  font-family:var(--font-body);
  font-size:15px;
  color:var(--white);
  background:var(--bg-soft);
  border:1px solid var(--card-line);
  border-radius:10px;
  padding:13px 14px;
  resize:vertical;
  transition:border-color .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color:var(--blue-bright); }
.form-hint{
  font-size:12.5px;
  color:var(--muted-dark);
  text-align:center;
  margin:0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  background:var(--bg);
  border-top:1px solid rgba(255,255,255,.06);
  padding:48px 0 32px;
}
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.footer-tag{ color:var(--muted); font-size:14px; margin:0; }
.footer-links{ display:flex; gap:24px; margin:10px 0; }
.footer-links a{ font-size:13.5px; color:var(--muted); transition:color .15s ease; }
.footer-links a:hover{ color:var(--blue-bright); }
.footer-copy{ font-size:12.5px; color:var(--muted-dark); margin:0; }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whats-float{
  position:fixed;
  bottom:24px; right:24px;
  width:58px; height:58px;
  border-radius:50%;
  background:linear-gradient(135deg, #25D366, #1aa84f);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  box-shadow:0 12px 28px -8px rgba(37,211,102,.6);
  z-index:60;
  transition:transform .2s ease;
}
.whats-float:hover{ transform:scale(1.08); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .flip-stage{ max-width:280px; height:280px; margin:0 auto 16px; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .products-grid{ grid-template-columns:repeat(3,1fr); }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ order:-1; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .container{ padding:0 18px; }
  .main-nav{
    position:absolute; top:74px; left:0; right:0;
    background:var(--bg);
    flex-direction:column;
    padding:16px 24px 24px;
    border-bottom:1px solid rgba(255,255,255,.06);
    display:none;
    gap:18px;
  }
  .main-nav.is-open{ display:flex; }
  .nav-toggle{ display:flex; flex-shrink:0; }
  .header-actions{ gap:8px; }
  .btn-whats.btn-sm{ padding:9px 12px; }
  .header-actions .btn-whats span{ display:none; }
  .products-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:1fr; }
  .section{ padding:72px 0; }
  .hero{ padding:56px 0 64px; }
}
