:root {
  --bg-dark: #0f1829;
  --bg-dark-2: #1a2643;
  --line: rgba(255,255,255,.12);
  --blue: #3f7cff;
  --blue-2: #5a92ff;
  --white: #ffffff;
  --text: #d8e4f7;
  --text-dark: #2a3a52;
  --heading: #f0f6ff;
  --heading-dark: #1f3d6d;
  --accent: #ffd700;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.15);
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.4);
  --transition: all .3s cubic-bezier(.4,.0,.2,1);
  /* Degradê do header (opção A): branco → azul-gelo */
  --header-bg: linear-gradient(90deg, #ffffff 0%, #f4f7fc 45%, #e3ecf8 100%);
  --header-bg-mobile: var(--header-bg);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Âncoras (#sobre, #contato...) param exatamente abaixo do header fixo.
     --header-h é medido pelo script.js (o header muda de altura no
     celular e com o menu aberto); 92px é só o valor até o JS rodar. */
  scroll-padding-top: var(--header-h, 92px);
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(83,112,171,.15), transparent 28%),
    linear-gradient(180deg, #0d1a2f 0%, #132341 50%, #161f3a 100%);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 1200px;
}

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Header claro com degradê suave; logo nas cores originais */
  background: var(--header-bg);
  border-bottom: 1px solid #d3deee;
  box-shadow: 0 6px 24px rgba(10, 20, 40, .18);
}

.nav-wrap {
  min-height: 90px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand img {
  display: block;
}

.brand:hover img {
  transform: scale(1.02);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 35px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav a {
  position: relative;
  color: #0f1f45;
  padding: 8px 0;
  white-space: nowrap;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

.nav a.active::before,
.nav a:hover::before {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.phone {
  font-weight: 700;
  color: #0f1f45;
  font-size: 1rem;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3f7cff 0%, #2f5ccc 100%);
  color: #fff;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(63, 124, 255, .3);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63, 124, 255, .4);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--blue-2);
  background: rgba(63, 124, 255, .1);
}

.btn-small {
  padding: 12px 20px;
  font-size: .95rem;
}

.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,16,31,.85) 0%, rgba(16,24,40,.55) 35%, rgba(18,28,48,.15) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1.15fr;
  align-items: center;
  gap: 40px;
  min-height: 600px;
  flex: 1;
  padding: 40px 0 60px;
}

.hero-copy {
  max-width: 560px;
  animation: fadeInUp .8s ease-out .2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: #5a92ff;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.4rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  color: var(--heading);
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 520px;
  margin: 24px 0 36px;
  color: rgba(239,246,255,.92);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease-out .4s both;
}

.hero-visual {
  animation: fadeIn .8s ease-out .3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-visual img {
  width: 100%;
  max-width: 100%;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.35)) drop-shadow(0 2px 8px rgba(63,124,255,.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-highlights {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-bottom: 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(25,40,75,.6) 0%, rgba(20,32,60,.8) 100%);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  min-height: 130px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease;
}

.highlight-card:last-child {
  border-right: none;
}

.highlight-card:hover {
  background: rgba(63,124,255,.08);
}

.highlight-card strong {
  display: block;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.highlight-card span {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 500;
}

.icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(63,124,255,.08);
  flex-shrink: 0;
}

/* Sections
   (sem scroll-margin-top: ele SOMAVA com o scroll-padding-top do html —
   100px + 120px — e o link parava ~130px antes da seção, mostrando um
   pedaço da seção de cima) */

.section-light {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(241,245,252,.98) 100%);
  color: var(--text-dark);
}

.section-dark {
  background:
    radial-gradient(circle at center, rgba(64,92,148,.12), transparent 40%),
    linear-gradient(180deg, #131f36 0%, #162540 100%);
}

.section-dark-alt {
  background: linear-gradient(180deg, #1a2a42 0%, #162444 100%);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0;
}

.about h2,
.contact h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--heading-dark);
  margin-bottom: 24px;
}

.about p,
.contact p,
.services-grid p,
.section-heading p,
.product-body p {
  line-height: 1.85;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 56px rgba(26,39,66,.25);
  transition: transform .3s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.check-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 32px;
  position: relative;
  margin: 18px 0;
  font-weight: 500;
  color: var(--text-dark);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.section-heading {
  padding: 100px 0 32px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  color: #fff;
  margin-bottom: 16px;
}

.section-heading p {
  margin-top: 16px;
  color: rgba(233,240,255,.8);
  font-size: 1.1rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 40px 0 120px;
}

.product-card {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(50,65,100,.6) 0%, rgba(15,25,50,.8) 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(63,124,255,.4);
  box-shadow: 0 24px 60px rgba(63,124,255,.2);
  background: linear-gradient(135deg, rgba(63,124,255,.15) 0%, rgba(25,40,75,.9) 100%);
}

.product-media {
  aspect-ratio: 1.2 / .78;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.08);
}

.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
}

.product-body p {
  margin: 0;
  color: rgba(233,240,255,.82);
  font-weight: 500;
}

.product-link {
  margin-top: auto;
  color: #5a92ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(90,146,255,.2);
  padding-top: 12px;
}

.product-link:hover {
  color: var(--accent);
  border-top-color: rgba(255,215,0,.3);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 32px 0 120px;
}

.service-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  background: rgba(63,124,255,.12);
  border-color: rgba(63,124,255,.4);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: rgba(233,240,255,.8);
  font-weight: 500;
}

/* Contact */
.contact-copy {
  max-width: 500px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--heading-dark);
  font-size: 1.05rem;
}

.contact-item a {
  color: var(--blue);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 40px;
  background: #fff;
  border: 1px solid rgba(36,66,120,.1);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(42,57,89,.12);
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: .95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 2px solid #e0e8f0;
  background: #f9fbff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(63,124,255,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0a0f1f;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  align-items: center;
}

.footer-wrap p {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.6);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 1280px) and (min-width: 1081px) {
  /* Evita "Sobre nós" e o telefone quebrarem em duas linhas */
  .nav {
    gap: 22px;
    font-size: 1.2rem;
  }
  .nav-wrap {
    grid-template-columns: 200px 1fr auto;
  }
}

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    padding: 16px 0;
  }

  .header-actions {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .product-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 8vw, 4rem);
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .highlight-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .highlight-card:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    color: #0f1f45;
    border: 2px solid rgba(15,31,69,.25);
    border-radius: 10px;
    width: 46px;
    height: 46px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    /* Três barras desenhadas em CSS, sempre centradas.
       O caractere ☰ fica escondido (font-size: 0) mas continua no HTML. */
    font-size: 0;
    background-color: transparent;
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor);
    background-size: 20px 2px;
    background-repeat: no-repeat;
    background-position:
      center calc(50% - 6px),
      center 50%,
      center calc(50% + 6px);
  }

  .menu-toggle:hover {
    border-color: var(--blue);
  }

  .topbar,
  .flow-topbar,
  .measure-topbar {
    background: var(--header-bg-mobile);
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    justify-content: start;
    gap: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid rgba(15,31,69,.12);
    margin-top: 12px;
  }

  .nav.open {
    display: flex;
    /* Painel do menu aberto claro de ponta a ponta. box-shadow + clip-path
       estendem o fundo para a largura toda sem mexer no layout do .container */
    background: #f4f7fc;
    box-shadow: 0 0 0 100vmax #f4f7fc;
    clip-path: inset(0 -100vmax -15px); /* -15px = padding inferior do .nav-wrap (14px) + borda do header (1px) */
  }

  .nav a {
    font-size: 1.1rem;
  }

  .brand img {
    width: 160px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .section-heading,
  .about-grid,
  .contact-grid {
    padding-top: 60px;
  }

  .product-grid,
  .services-grid {
    padding-bottom: 60px;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-wrap p {
    font-size: .9rem;
  }
}

@media (max-width: 600px) {
  .nav-wrap {
    grid-template-columns: auto 1fr;
  }

  .brand img {
    width: 140px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .eyebrow,
  .section-label {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .highlight-card {
    padding: 20px 16px;
    min-height: auto;
    gap: 14px;
  }

  .highlight-card strong {
    font-size: 1.6rem;
  }

  .icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .product-body h3 {
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .contact-form {
    padding: 20px;
  }

  .form-group label {
    font-size: .9rem;
  }
}
