/* ============================================================
   INTELIGÊNCIA DAS COISAS — Estilos Específicos
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.iot-hero {
  position: relative;
  background: linear-gradient(150deg, #060B27 0%, #332800 45%, #5C4A00 100%);
  padding: 140px 0 100px;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.iot-hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.iot-hero-wave svg { width: 100%; height: 60px; }

.iot-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,209,0,.5) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(22,64,214,.6) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0,180,120,.3) 0%, transparent 35%);
  background-size: 100% 100%;
}

.iot-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(22,64,214,0.25)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='35'/%3E%3Cline x1='40' y1='5' x2='40' y2='75'/%3E%3Cline x1='5' y1='40' x2='75' y2='40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: .3;
}

.iot-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.iot-hero-text h1 {
  color: #fff;
  margin: 12px 0 20px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.iot-hero-text p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.75;
}

.iot-hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ── Hero Visual Card ─────────────────────────────────────── */
.iot-hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  backdrop-filter: blur(10px);
}

.iot-hero-nodes {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.iot-node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.iot-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iot-node-center {
  width: 64px; height: 64px;
  background: rgba(22,64,214,.25);
  border: 1px solid rgba(22,64,214,.5);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.iot-node-1 {
  width: 44px; height: 44px;
  background: rgba(255,209,0,.12);
  border: 1px solid rgba(255,209,0,.3);
  top: 18%; left: 14%;
}

.iot-node-2 {
  width: 44px; height: 44px;
  background: rgba(255,209,0,.12);
  border: 1px solid rgba(255,209,0,.3);
  top: 14%; right: 12%;
}

.iot-node-3 {
  width: 44px; height: 44px;
  background: rgba(255,209,0,.12);
  border: 1px solid rgba(255,209,0,.3);
  bottom: 16%; right: 20%;
}

.iot-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.iot-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.iot-stat span {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.iot-stat strong {
  color: #FFD100;
  font-size: 18px;
  font-weight: 700;
}

/* ── About Division Section ───────────────────────────────── */
.iot-about-section {
  background: #fff;
}

.iot-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iot-about-text h2 {
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 10px 0 20px;
}

.iot-about-text p {
  color: rgba(6,11,39,.6);
  font-size: 15px;
  line-height: 1.8;
}

.iot-about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.iot-pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--light);
  border: 1px solid rgba(6,11,39,.06);
  border-radius: 14px;
  transition: border-color .2s;
}

.iot-pillar:hover {
  border-color: rgba(0,52,196,.25);
}

.iot-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,214,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iot-pillar h4 {
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.iot-pillar p {
  color: rgba(6,11,39,.5);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ── Products Section ─────────────────────────────────────── */
.iot-products {
  background: var(--light);
}

.section-sub {
  color: rgba(6,11,39,.55);
  font-size: 16px;
  max-width: 560px;
  margin: 12px auto 0;
  line-height: 1.7;
  text-align: center;
}

.iot-product-row {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 64px;
  align-items: center;
  padding: 16px 0 48px;
}

.iot-product-row-reverse {
  grid-template-columns: 1fr 460px;
}

.iot-product-row-reverse .iot-product-visual { order: 2; }
.iot-product-row-reverse .iot-product-info   { order: 1; }

/* Visual side */
.iot-product-visual {
  position: relative;
}

.iot-product-img-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 380px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
  border: 1px solid rgba(22,64,214,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.iot-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.iot-product-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Screenshots/renders em paisagem (Anefus, Amater.ai) — não são foto de produto físico,
   então usam proporção 16:9 em vez da caixa quadrada de retrato dos sensores */
.iot-product-img-wrap--wide {
  height: auto;
  aspect-ratio: 16 / 9;
}

.iot-product-img-wrap--wide .iot-product-img {
  object-fit: cover;
  padding: 0;
}

.iot-product-badge {
  position: absolute;
  top: -12px;
  right: calc(50% - 230px + -8px);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
}

.iot-product-logo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  z-index: 2;
}

.iot-product-logo-badge img {
  height: 40px;
  width: auto;
  display: block;
}

/* Info side */
.iot-product-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.iot-product-info h2 {
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

.iot-product-lead {
  font-size: 17px;
  color: rgba(6,11,39,.7);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}

.iot-product-info > p:not(.iot-product-lead) {
  color: rgba(6,11,39,.55);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.iot-product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.iot-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.iot-feature svg { flex-shrink: 0; margin-top: 2px; }

.iot-feature span {
  font-size: 14.5px;
  color: rgba(6,11,39,.65);
  line-height: 1.5;
}

.iot-divider {
  height: 1px;
  background: rgba(6,11,39,.08);
  margin: 16px 0 48px;
}

/* ── CTA Section ──────────────────────────────────────────── */
.iot-cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0D1E5C 100%);
  padding: 80px 0;
}

.iot-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.iot-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}

.iot-cta-inner p {
  color: rgba(255,255,255,.6);
  font-size: 16px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .iot-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .iot-hero-ctas { justify-content: center; }
  .iot-hero-visual { display: none; }

  .iot-product-row,
  .iot-product-row-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iot-product-row-reverse .iot-product-visual { order: unset; }
  .iot-product-row-reverse .iot-product-info   { order: unset; }

  .iot-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .iot-product-img-wrap { width: 220px; height: 220px; }
  .iot-product-img-wrap--wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .iot-product-badge { right: calc(50% - 110px + -8px); }
}
