/* IoT App Development page — 01 Hero */

@keyframes cw-iot-app-development-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-iot-app-development-hero {
  background:
    radial-gradient(700px 500px at 80% 40%, rgba(124, 245, 200, 0.1), transparent 70%),
    #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(48px, 6vw, 84px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-iot-app-development-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.cw-iot-app-development-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cw-iot-app-development-hero__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-iot-app-development-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.cw-iot-app-development-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #d4f53c;
  letter-spacing: -0.02em;
}

.cw-iot-app-development-hero__lead {
  margin: 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243, 239, 231, 0.8);
}

.cw-iot-app-development-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-iot-app-development-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-iot-app-development-hero__btn--primary {
  background: #d4f53c;
  color: #141210;
  font-weight: 700;
}

.cw-iot-app-development-hero__btn--primary:hover,
.cw-iot-app-development-hero__btn--primary:focus-visible {
  background: #fff;
  color: #141210;
}

.cw-iot-app-development-hero__btn--secondary {
  border: 1px solid rgba(243, 239, 231, 0.3);
  color: #f3efe7;
}

.cw-iot-app-development-hero__btn--secondary:hover,
.cw-iot-app-development-hero__btn--secondary:focus-visible {
  border-color: #d4f53c;
}

.cw-iot-app-development-hero__widget {
  position: relative;
  background: #1e1b18;
  border: 1px solid rgba(243, 239, 231, 0.08);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cw-iot-app-development-hero__widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-iot-app-development-hero__sectors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-iot-app-development-hero__sector-btn {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-iot-app-development-hero__online {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #7cf5c8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cw-iot-app-development-hero__online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cf5c8;
}

.cw-iot-app-development-hero__devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cw-iot-app-development-hero__device {
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.cw-iot-app-development-hero__device-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cw-iot-app-development-hero__device-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #e4ddd0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-iot-app-development-hero__toggle {
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}

.cw-iot-app-development-hero__toggle-knob {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s ease;
}

.cw-iot-app-development-hero__device-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cw-iot-app-development-hero__device-value {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  transition: color 0.3s ease;
}

.cw-iot-app-development-hero__device-unit {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #a39c90;
}

.cw-iot-app-development-hero__device-status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
}

.cw-iot-app-development-hero__spark-wrap {
  background: #141210;
  border-radius: 14px;
  padding: 12px;
}

.cw-iot-app-development-hero__spark-head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #a39c90;
  margin-bottom: 8px;
  gap: 8px;
}

.cw-iot-app-development-hero__spark {
  height: 70px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.cw-iot-app-development-hero__spark-bar {
  flex: 1;
  min-height: 4px;
  border-radius: 2px;
  transition: height 0.5s ease, background 0.3s ease;
}

.cw-iot-app-development-hero__alert {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #f3efe7;
  color: #141210;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: cw-iot-app-development-hero-in 0.3s ease both;
}

.cw-iot-app-development-hero__alert[hidden] {
  display: none !important;
}

.cw-iot-app-development-hero__alert-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #e0431c;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.cw-iot-app-development-hero__alert-copy {
  flex: 1;
  min-width: 0;
}

.cw-iot-app-development-hero__alert-title {
  font-weight: 700;
  font-size: 13.5px;
}

.cw-iot-app-development-hero__alert-desc {
  font-size: 12px;
  color: #4a443c;
}

.cw-iot-app-development-hero__alert-btn {
  border: none;
  background: #141210;
  color: #f3efe7;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cw-iot-app-development-hero__alert-btn:hover,
.cw-iot-app-development-hero__alert-btn:focus-visible {
  color: #d4f53c;
}
